(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