I have troubles passing DataSeries to Indicators
Take a look at the attached cs file
Varying the last element of the DataSeries, why I cannot obtain the correct SMA Value, but always the same result as if I never changed the DataSeries?
This is the Output from the Print() function in the code:
(1+2+3+0)/4 = SMA: 1,5
(1+2+3+1)/4 = SMA: 1,5
(1+2+3+2)/4 = SMA: 1,5
(1+2+3+3)/4 = SMA: 1,5
(1+2+3+4)/4 = SMA: 1,5
Can you tell where I'm wrong or if you know any tips to fix this issue?
Thanks in advance
Antonio Raso

Comment