Add(PeriodType.Day, 1);
And this line in my OnBarUpdate() section:
if (BarsInProgress == 1 && CurrentBars[1] >= 0)
{
DrawTextFixed("ATR",("Daily ATR("+ATR_period+"): "+ (ATR(ATR_period)[0]).ToString("N2")), TextPosition.BottomRight);
}
When I run the strategy, I don't get the ATR value ... I know this because the "DrawTextFixed" command doesn't execute. Any thoughts?
Comment