Distance from the moving average

Custom MT4 expert advisors published here.

Moderator: admin

Distance from the moving average

Postby Alexander.Gettinger » Mon Mar 09, 2015 3:54 pm

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

Formulas:
Dist = Price-MA(Price) with [Length1] number of periods and [Method1] type,
Smoothed = MA(Dist) with [Length2] number of periods and [Method2] type.

Distance_From_MA_MQL.PNG


Download:
Distance_From_MA.mq4
(2.14 KiB) Downloaded 476 times
Alexander.Gettinger
FXCodeBase: Confirmed User
 
Posts: 3237
Joined: Wed Mar 31, 2010 9:40 pm
Location: Russia, Omsk

Re: Distance from the moving average

Postby nookie » Sun May 06, 2018 4:24 am

Is it possible an Alert to be added ? and also Volume weighted MA ?

// 0 - SMA
// 1 - EMA
// 2 - SMMA
// 4 VWMA
nookie
FXCodeBase: Initiate
 
Posts: 184
Joined: Tue May 24, 2011 12:50 pm

Re: Distance from the moving average

Postby Apprentice » Mon May 07, 2018 7:30 am

Your request is added to the development list under Id Number 4135
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 18703
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Distance from the moving average

Postby Apprentice » Thu May 10, 2018 3:54 am

Try it now.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 18703
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia


Return to MT4 Expert Advisors

Who is online

Users browsing this forum: Google [Bot] and 5 guests