I have modified the system ATR Indicator by changing line 61 to "" Value[0] = Math.Ceiling(((Math.Min(CurrentBar + 1, Period) - 1) * Value[1] + trueRange) / Math.Min(CurrentBar + 1, Period)); '''
I hope to round up the ATR Value to the nearest Whole Number.
I have created a New Indicator and name it ATRr, I have save the full Original system ATR indicator and just changing the above line 61.
When I tried to compile I have error as in the attached.
Please advise how to resolve this issue. I am totally new to coding.
Thank you.
CW

Comment