I have an indicator and a strategy for calculating the SMA(5) and display it in output window. Both would must to display the same results, I think.
But it doesn't. I don't know where is the problem. Could you help me, please ? Thanks very much.
This is the code for the indicator:
This is the code for the strategy:
This is the output: (only the first outputs are matching).
Comment