Trend Regularity Adaptive Moving Average, TRAMA

0 132 Views No Comments 2 months ago
HTS CLOUD
  • 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.

    • This topic was modified 1 month ago by bunka.
    • This topic was modified 1 month ago by bunka.
    HaasScript Code
    Sign in or Register to download for free
Login or Register to Comment

Unlock your crypto trading potential

Create a free account and enjoy everything we have to offer.

Join for Free