I'm a complete novice coder and I'm trying to modify the built in ATR indicator in Ninjatrader 8 to remove the weighted average of the period and get a simple average instead.
I think line 61 is where I need to make a change but I've had no luck trying to figure it out on my own.
Here's line 61:
Value[0] = ((Math.Min(CurrentBar + 1, Period) - 1 ) * Value[1] + trueRange) / Math.Min(CurrentBar + 1, Period);
Can anyone confirm whether this is where I should be making modifications and, if so, what the correct syntax is if I don't want a weighted average?
Thanks in advance for any asistance.
Comment