Can somebody clarify if there is a difference between the following codes? And can we use ma_shift other than zero in EA's?
Thanks.
Inserted Code
for (int i = limit; i >= 0; i--) { MA = iMA(NULL, 0, period, [color=red]0[/color], MODE_SMA, PRICE_TYPICAL,[color=red] i + 2[/color]); }
Inserted Code
for (int i = limit; i >= 0; i--) { MA = iMA(NULL, 0, period, [color=red]2[/color], MODE_SMA, PRICE_TYPICAL, [color=red]i[/color] ); }
Thanks.
Free Programmer for Profitable Strategies