Trend Regularity Adaptive Moving Average, TRAMA
Haasscript port by Bunka and some help of Pshai
Original by LuxAlgo (TV)
The moving average is calculated using exponential averaging, using as smoothing factor the squared simple moving average of the number of highest high/lowest low previously made, highest high/lowest low are calculated using rolling maximums/minimums.
Using higher values of length will return fewer highest high/lowest low which explains why the moving average is smoother for higher length values. Squaring allows the moving average to penalize lower values, thus appearing more stationary during ranging markets, it also allows to have some consistency regarding the length setting.
Mandala Trading Competition Promotion Type: contest Expires: June 9, 2023Trading volume competition, win up to $10,000 USDT and bounties.
Earn Up to 200 BMEX Tokens Promotion Type: contest Expires: March 31, 202315 BMEX @ $20,000, 25 BMEX @ $50,000, 50 [email protected] $200,000, 100 BMEX @ $400,000, 200 BMEX @ $600,000 in monthly derivatives volume