ANYONE WHO CAN MAKE THIS SCRIPT FOR PROTRADER, PLEASE?
Triangular Moving Average Calculation
The triangular moving average (TMA) is an average of an average, of the last N prices (P).
First, calculate the simple moving average (SMA):
- SMA = (P1 + P2 + P3 + P4 + ... + PN) / N
Then, take the average of all the SMA values to get TMA values.
- TMA = (SMA1 + SMA2 + SMA3 + SMA4 + ... SMAN) / N
The TMA can also be expressed as: TMA = SUM (SMA values) / N