Simple Moving Average (MA) of N periods.


Average instruction can be extend with a second parameter under brackets to modify the arithmetic calculation of the average :

Where M can be set with any of these values, to return the specific moving average calculation:

0 = SMA

1 = EMA

2 = WMA

3 = Wilder

4 = Triangular

5 = End point

6 = Time series

7 = Hull (PRT v11 only)

8 = ZeroLag  (PRT v11 only)


Simple representation of 2 Simple Moving Average :

Fast EMA and Slow Triangular moving average:

Any moving average can also be use to smooth a value within its period :


Share this