Moving Average Trend Indicator

Custom MT4 expert advisors published here.

Moderator: admin

Moving Average Trend Indicator

Postby Apprentice » Tue Feb 28, 2017 3:46 am

MA_Trend_Indicator.png

LUA Original: viewtopic.php?f=17&t=3481

Description:

The original LUA concept is quite interesting. If the trader wants to analyze the typical position of price (above or below) relative to a moving average, this indicator does that, but in a statistical way: It compares 50 different MA-Periods according to the Start_Period and the Steps (difference between each of those periods) and makes a final Sum of +1 and -1 depending whether price is above or below. This way, the trader knows when a trend is weakening and a new trend is under construction going from positive to negative and vice versa.

Indicator analyses [Count_MA] moving averages with first period [Start_Period] and step [Step_Period].

MA_Trend=Sum(S)/Count_MA, where:

S(i)=1 if Price>MA(i) and S(i)=-1 if Price<MA(i).
MA_Trend_Indicator.mq4
(5.88 KiB) Downloaded 837 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36435
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Return to MT4 Expert Advisors

Who is online

Users browsing this forum: Bing [Bot] and 14 guests