wrong output from iMA() - page 2

 
William Roeder #:

Your screenshots show the indicators are “Smoothed”. Your code is reading “simple” (SMA). That is the difference.

Never any reason to use the SMMA(L) it's equivalent to the EMA(2L-1).
          The Smoothed Moving Average or SMMA - How to Avoid It - NinjaTrader Programming | futures.io (2019)

Thats it, that was silly i thought SMA is the smoothed and didn't even bother check the documentation for it, so sorry guys if i wasted your time:(


Thank you William, Thank you Fernando.