Forum

Need a Better Moving Average? Try the NMA

Hey guys, I wrote these indicators using Jim Sloman's formulas, which you can read about in his "Ocean Book". The first is call the natural moving average, based on 20 bar calculation. The second is using the natural market river formula and moving average based on the river data. Entry rules -

Ema

How would one modify the tutorial to make an ema with a constant .1 instead of the average between high and low? For some strange reason the ema goes straight down 3-4 bars before the last bar. Any idea why? Update: Ok I think it's because the if the current bar - last bar returns a negative value