Initialize:
Add("^TICK", PeriodType.Minute, 1);
StrategyPlot(1).Value.Set(Closes[1][0]);
It's apparent that the strategy indicator is somehow out of sync with the chart. BTW, I have not added an SMA or any type of averaging.
This is how it looks like if I change the PeriodType to 'Seconds':
Works great that way. My problem is that I need to build a 60min chart based indicator that gets back-tested for several months. I cannot set the PeriodType to seconds as I can only get about 2 weeks worth of Second interval data from eSignal. So, I need to find a way to make a PeriodType.Minute line up with the chart data. If the indicator somehow uses data that limps behind then my strategy won't work.
BTW, I tried to be smart and set the PeriodType to 60 minutes - just like the chart:
Add("^TICK", PeriodType.Minute, 30);
Suffice to say I'm a bit confused...
Any help would be GREATLY appreciated. If I cannot solve this problem I will have to look for a different type of environment to build my strategy in. Many thanks in advance for any pointers. I'm new to NinjaScript btw - so please forgive me if I'm doing something dumb here 
Thanks,
Michael

Comment