TMA - triangular moving average
ANYONE WHO CAN MAKE THIS SCRIPT FOR PROTRADER, PLEASE?
THANKS
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
Replies
Hi, kanbiomec!
You are free to get TMA from our codebase. I had added it today especially for your needs:
https://protrader.org/codebase/indicators/triangular-moving-average-indicator
Regards,
Join PTMC community to post your replies on forum