Try to understand how trend work
#1
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?
  Reply
#2
(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
  Reply
#3
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
  Reply


Forum Jump:


Users browsing this thread: