Split 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

Split Moving Average

Postby Apprentice » Sat Dec 23, 2023 3:27 am

1.png

Instead of a moving average of all data points,
we calculate the moving average of up and down changes.

Will be calculated only if a current data point is up for Up trend
and vice versa.
Split Moving Average.lua
(6.84 KiB) Downloaded 149 times

2.png

The trailing variant is calculated regardless of whether the current data point is up or down.
Trailing Split Moving Average.lua
(6.65 KiB) Downloaded 146 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36171
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Return to Custom Indicators

Who is online

Users browsing this forum: No registered users and 10 guests