I have a 5 minute chart with data.
In the indicator I add daily data in the Initialize() section
Add (PeriodType.Day, 1);
So I want to take the ATR and StdDev of a defined user variable called "numPeriods" off the daily data and use it for calculations to plot an indicator on the 5 minute.
I have no idea how to get it to work. I think I am making it too difficult. I have tried all kinds of nesting combinations with BarsInProgress == 0 and 1 and CurrentBars[0] and [1] and I can't get it to work.
It seems like it should be simple, can anyone help? I have calculate on bar close to true so it calculates and plots on the 5 minute at the end of the bar.
Thanks
Comment