Triangular Moving Average

Here you can post and download custom indicators. PLEASE: Do not start topics unless you are posting your own indicator, they will be moved to appropriate section even if you do.

Moderator: admin

Triangular Moving Average

Postby Apprentice » Thu Dec 01, 2022 5:00 am

ETHUSD H1 (12-01-2022 1059).png

The Triangular Moving Average (TMA) is similar to other moving averages (exponential and weighted) except it uses a different weighting scheme. Exponential and weighted moving averages assign the majority of the weight to the most recent data. Simple moving averages assign the weight equally across all the data. With a triangular moving average, it is double smoother (it is averaged twice) so the majority of the weight is assigned to the middle portion of the data.

The triangular moving average (TMA) is a weighted average of the last n prices (P), whose result is equivalent to a double-smoothed simple moving average:

SMA = (P1 + P2 + P3 + P4 + ... + Pn) / n
TMA = (SMA1 + SMA2 + SMA3 + SMA4 + ... SMAn) / n
Triangular Moving Average.lua
Triangular Moving Average, TMA
(6.78 KiB) Downloaded 84 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re-Averaged Moving Average

Postby Apprentice » Thu Dec 01, 2022 12:34 pm

ETHUSD H1 (12-01-2022 1831).png

ETHUSD H1 (12-01-2022 1837).png

Re-Averaged Moving Average will allow you to Re-Averaged the data as many times as you want.

Number of Re-Averaging
1 - Regular MA
MA of Price
2 - Triangular Moving Average
MA of MA of Price
3 - MA of MA of MA of Price
...
Re-Averaged Moving Average.lua
(7.05 KiB) Downloaded 75 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re-Averaged Moving Average Band

Postby Apprentice » Thu Dec 01, 2022 1:27 pm

ETHUSD H1 (12-01-2022 1920).png

ETHUSD H1 (12-01-2022 1921).png

ETHUSD H1 (12-01-2022 1924).png

To Declutter the chart this version will only show
the maximum, and minimum value of the Re-Averaged Moving Averages.
Mean value between maximum and minimum,
and the Last Re-Averaged Moving Average

Individual components are still here as an option.

ETHUSD H1 (12-01-2022 1949).png

Triangular Moving Average only

Re-Averaged Moving Average Band.lua
(9.35 KiB) Downloaded 74 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia


Return to Custom Indicators

Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot] and 43 guests