I am running a 5 minute chart
I tried using barsarry
Add(PeriodType.Day, 1);
double AtrValue = (ATR(BarsArray[1], 14)[1]);
Strategy stops returning any trades when I add this.
I am guessing it is looking at today and since today is not complete there is no value to return.
When I change Day to Minute it works fine except that doesn't return the value I need.
I want to use the value in my calculation for a stop loss.
Any help with the coding would be much appreciated.
Comment