Gekko Forum
Try to understand how trend work - Printable Version

+- Gekko Forum (https://forum.gekko.wizb.it)
+-- Forum: Gekko (https://forum.gekko.wizb.it/forum-13.html)
+--- Forum: Strategy Development (https://forum.gekko.wizb.it/forum-12.html)
+--- Thread: Try to understand how trend work (/thread-50.html)



Try to understand how trend work - joyNstay - 01-18-2018

Hello, I am trying to understand CCI strategy and I have some questions that I cannot answer.

In every strategy there is this code

Code:
 this.trend = {
   direction: 'undefined',
   duration: 0,
   persisted: false,
   adviced: false
 };

My problem is that I cannot be sure what persisted and advice do exactly.
Can anyone help me?


RE: Try to understand how trend work - mutenroch - 09-01-2018

(01-18-2018, 12:26 PM)joyNstay Wrote: Hello, I am trying to understand CCI strategy and I have some questions that I cannot answer.

In every strategy there is this code

Code:
 this.trend = {
   direction: 'undefined',
   duration: 0,
   persisted: false,
   adviced: false
 };

My problem is that I cannot be sure what persisted and advice do exactly.
Can anyone help me?

Persisted means that Will become true (and then trigger another function as buy or sell) if the condition of the indicator is true for x candles (that you define in settings) stating that is not an accidental buy/sell signal

About "adviced" is a variable that you can use in that scope to set if you are in or out of a trade so you can advise to go long or short if your are not already or do nothing if you are


RE: Try to understand how trend work - askmike - 09-02-2018

Make sure you understand the difference between Gekko and strategies! That object comes from a strategy and everything related to that is defined in that strategy. If you are unsure watch this tutorial video: https://www.youtube.com/watch?v=6-74ZhrG0BE