Moving Average - page 35

EthanHunt
214
EthanHunt  
igorad:
New version(v2.2) of AllAverages is ready.

// List of MAs:

// MA_Method= 0: SMA - Simple Moving Average

// MA_Method= 1: EMA - Exponential Moving Average

// MA_Method= 2: Wilder - Wilder Exponential Moving Average

// MA_Method= 3: LWMA - Linear Weighted Moving Average

// MA_Method= 4: SineWMA - Sine Weighted Moving Average

// MA_Method= 5: TriMA - Triangular Moving Average

// MA_Method= 6: LSMA - Least Square Moving Average (or EPMA, Linear Regression Line)

// MA_Method= 7: SMMA - Smoothed Moving Average

// MA_Method= 8: HMA - Hull Moving Average by Alan Hull

// MA_Method= 9: ZeroLagEMA - Zero-Lag Exponential Moving Average

// MA_Method=10: DEMA - Double Exponential Moving Average by Patrick Mulloy

// MA_Method=11: T3 - T3 by T.Tillson

// MA_Method=12: ITrend - Instantaneous Trendline by J.Ehlers

// MA_Method=13: Median - Moving Median

// MA_Method=14: GeoMean - Geometric Mean

// MA_Method=15: REMA - Regularized EMA by Chris Satchwell

// MA_Method=16: ILRS - Integral of Linear Regression Slope

// MA_Method=17: IE/2 - Combination of LSMA and ILRS

// MA_Method=18: TriMAgen - Triangular Moving Average generalized by J.Ehlers

// MA_Method=19: VWMA - Volume Weighted Moving Average

// List of Prices:

// Price = 0 - Close

// Price = 1 - Open

// Price = 2 - High

// Price = 3 - Low

// Price = 4 - Median Price = (High+Low)/2

// Price = 5 - Typical Price = (High+Low+Close)/3

// Price = 6 - Weighted Close = (High+Low+Close*2)/4

// Price = 7 - Heiken Ashi Close

// Price = 8 - Heiken Ashi Open

// Price = 9 - Heiken Ashi High

// Price =10 - Heiken Ashi Low

As you can see 2 MAs and 4 prices(HeikenAshi) are added.

Moreover color mode is added too.

Thank you igorad, flawless !!!

Cheers

fxbs
3203
fxbs  
igorad:
New version(v2.2) of AllAverages is ready.

// List of MAs:

// MA_Method= 0: SMA - Simple Moving Average

// MA_Method= 1: EMA - Exponential Moving Average

// MA_Method= 2: Wilder - Wilder Exponential Moving Average

// MA_Method= 3: LWMA - Linear Weighted Moving Average

// MA_Method= 4: SineWMA - Sine Weighted Moving Average

// MA_Method= 5: TriMA - Triangular Moving Average

// MA_Method= 6: LSMA - Least Square Moving Average (or EPMA, Linear Regression Line)

// MA_Method= 7: SMMA - Smoothed Moving Average

// MA_Method= 8: HMA - Hull Moving Average by Alan Hull

// MA_Method= 9: ZeroLagEMA - Zero-Lag Exponential Moving Average

// MA_Method=10: DEMA - Double Exponential Moving Average by Patrick Mulloy

// MA_Method=11: T3 - T3 by T.Tillson

// MA_Method=12: ITrend - Instantaneous Trendline by J.Ehlers

// MA_Method=13: Median - Moving Median

// MA_Method=14: GeoMean - Geometric Mean

// MA_Method=15: REMA - Regularized EMA by Chris Satchwell

// MA_Method=16: ILRS - Integral of Linear Regression Slope

// MA_Method=17: IE/2 - Combination of LSMA and ILRS

// MA_Method=18:TriMAgen - Triangular Moving Average generalized by J.Ehlers

// MA_Method=19: VWMA - Volume Weighted Moving Average

// List of Prices:

// Price = 0 - Close

// Price = 1 - Open

// Price = 2 - High

// Price = 3 - Low

// Price = 4 - Median Price = (High+Low)/2

// Price = 5 - Typical Price = (High+Low+Close)/3

// Price = 6 - Weighted Close = (High+Low+Close*2)/4

// Price = 7 - Heiken Ashi Close

// Price = 8 - Heiken Ashi Open

// Price = 9 - Heiken Ashi High

// Price =10 - Heiken Ashi Low

As you can see 2 MAs and 4 prices(HeikenAshi) are added.

Moreover color modeis added too.

txnks Igorad

ha price (7-10):

haClose = (Open +High+Low+Close)/4;

haOpen = (Open[i+1]+Close)/2; (previous bar (Open+Close)/2)

haHigh = Max (High, Open, Close);

haLow = Min (Low, Open, Close) ;

fxbs
3203
fxbs  

Igor, why did you used mtf barshift f-la?

thank you

svirgo
140
svirgo  

price - moving average alert

Is there an indicator that gives an alert when price touches the moving average on a particular timeframe?

Thanks

Sergey Golubev
Moderator
113446
Sergey Golubev  

Just found this post about MA Distance https://www.mql5.com/en/forum

Not sure about alert sorry.

svirgo
140
svirgo  
newdigital:
Just found this post about MA Distance https://www.mql5.com/en/forum Not sure about alert sorry.

Thanks Newdigital. Your service is awesome!

TheDirtySerb
53
TheDirtySerb  

Rolling MA

Anyone know where I can find the Rolling moving average indicator? Is it one of the MA's in the AllAverages v2.2 just with a different name? Someone please let me know. Thanks

darkkiller
301
darkkiller  
igorad:
New version(v2.2) of AllAverages is ready.

// List of MAs:

// MA_Method= 0: SMA - Simple Moving Average

// MA_Method= 1: EMA - Exponential Moving Average

// MA_Method= 2: Wilder - Wilder Exponential Moving Average

// MA_Method= 3: LWMA - Linear Weighted Moving Average

// MA_Method= 4: SineWMA - Sine Weighted Moving Average

// MA_Method= 5: TriMA - Triangular Moving Average

// MA_Method= 6: LSMA - Least Square Moving Average (or EPMA, Linear Regression Line)

// MA_Method= 7: SMMA - Smoothed Moving Average

// MA_Method= 8: HMA - Hull Moving Average by Alan Hull

// MA_Method= 9: ZeroLagEMA - Zero-Lag Exponential Moving Average

// MA_Method=10: DEMA - Double Exponential Moving Average by Patrick Mulloy

// MA_Method=11: T3 - T3 by T.Tillson

// MA_Method=12: ITrend - Instantaneous Trendline by J.Ehlers

// MA_Method=13: Median - Moving Median

// MA_Method=14: GeoMean - Geometric Mean

// MA_Method=15: REMA - Regularized EMA by Chris Satchwell

// MA_Method=16: ILRS - Integral of Linear Regression Slope

// MA_Method=17: IE/2 - Combination of LSMA and ILRS

// MA_Method=18: TriMAgen - Triangular Moving Average generalized by J.Ehlers

// MA_Method=19: VWMA - Volume Weighted Moving Average

// List of Prices:

// Price = 0 - Close

// Price = 1 - Open

// Price = 2 - High

// Price = 3 - Low

// Price = 4 - Median Price = (High+Low)/2

// Price = 5 - Typical Price = (High+Low+Close)/3

// Price = 6 - Weighted Close = (High+Low+Close*2)/4

// Price = 7 - Heiken Ashi Close

// Price = 8 - Heiken Ashi Open

// Price = 9 - Heiken Ashi High

// Price =10 - Heiken Ashi Low

As you can see 2 MAs and 4 prices(HeikenAshi) are added.

Moreover color mode is added too.

thanks igorad,,maybe next version will be have BAR version with all moving average

Igor Durkin
6936
Igor Durkin  

It's so-called Wilder smoothing(MA_Method=2).

Wilder(or RMA) = MA[1] + 1/N*(P - MA[1])

where

P -price

N -Length(Period) of the Moving Average

TheDirtySerb:
Anyone know where I can find the Rolling moving average indicator? Is it one of the MA's in the AllAverages v2.2 just with a different name? Someone please let me know. Thanks
Malmesbury
21
Malmesbury  

MA text

Is there an indicator that presents MA's in text form?

Tks