I have been trying to plot an 8 period EMA from a 5 minute chart on a 6 range chart. Used the SampleStrategyPlot example and it works almost perfect. The average is exactly the same but shifted over one bar.
the only real line i code that i added was:
//StrategyPlot(0).Value.Set(High[0]);
//StrategyPlot(1).Value.Set(Highs[1][0]);
StrategyPlot(0).Value.Set(EMA(BarsArray[1],8)[0]); // this line was changed...
Is there a way to shift the moving average back one bar.
I have not been able to figure it out.
Any direction would be appreciated?
I've attached a JPG and the actual indicator/strategy...
Regards
Sammy

Comment