//ma_method Moving Average methods enumerations
//MODE_SMA 0 Simple moving average,
//MODE_EMA 1 Exponential moving average,
//MODE_SMMA 2 Smoothed moving average,
//MODE_LWMA 3 Linear weighted moving average.
And so I am carefully taking apart the Ninja Trader 7 Heiken Ashi Smooth code that was so kindly done (Thank you) and noticed that I am not seeing moving average type 3, Linear Weighted Moving Average.
Am I missing something or is that represented with a different name?
Also, as I am still very new to Ninja Trader 7 coding, could someone give me a hand with commenting this Heiken Ashi Smooth code? I have problems with understanding the second section
if (CurrentBar == 0)
{
Values[0].Set(0);
Values[1].Set(0);
Values[2].Set(0);
Values[3].Set(0);
ExtMapBuffer5.Set(Open[0]);
ExtMapBuffer6.Set(Close[0]);
ExtMapBuffer7.Set(High[0]);
ExtMapBuffer8.Set(Low[0]);
return;
}
etc.. ???
Thanks
David
Comment