Source: https://fxcodebase.com/code/viewtopic.php?f=38&t=66535
Forum: 38 · Topic 66535 · 3 post(s)
Apprentice · Fri Aug 17, 2018 7:03 am

Based on lua original. viewtopic.php?f=17&t=2430
This indicator is a collection of moving averages.
MVA - Simple Moving Average MVA[i]=(Price[i]+Price[i-1]+…+Price[i-N])/N, where N-period
EMA - Exponential Moving Average EMA[i]=EMA[i-1]+2*(Price[i]-EMA[i-1])/(1+N)
Wilder - Wilder Exponential Moving Average Wilder[i]=Wilder[i-1]+(Price[i]-Wilder[i-1])/N
LWMA - Linear Weighted Moving Average LWMA[i]=Sum/Weight, where Sum=Price[i]N+Price[i-1](N-1)+…+Price[i-N+1](1), Weight=N+(N-1)+…+1=N(N+1)/2.
SineWMA - Sine Weighted Moving Average Please, install the ‘SineWMA’ indicator: viewtopic.php?f=38&t=63064 SineWMA[i]=Sum/Weight, where Sum=Price[i-N+1]sin(PI(N)/(N+1))+Price[i-N+2]sin(PI(N-1)/(N+1))+…+Price[i]sin(PI1/(N+1)) Weight= sin(PI(N)/(N+1))+ sin(PI(N-1)/(N+1))+…+ sin(PI*1/(N+1)).
TriMA - Triangular Moving Average Please, install the ‘TriMA’ indicator: viewtopic.php?f=38&t=59627 TriMA[i]=(MVA(i,len)+MVA(i-1,len)+…+MVA(i-len+1,len))/len, where MVA(i,N) – Simple Moving Average, len=(N+1)/2.
LSMA - Least Square Moving Average Please, install the ‘LSMA’ indicator: viewtopic.php?f=38&t=59628 LSMA[i]=Sum/(N(N+1)), where Sum=(1-(N+1)/3)Price[i-N+1]+(2-(N+1)/3)Price[i-N+2]+…+(N-(N+1)/3)Price[1].
SMMA - Smoothed Moving Average SMMA[i]=(Sum-SMMA[i-1]+Price[i])/N, where Sum=Price[i-1]+Price[i-2]+…+Price[i-N].
HMA - Hull Moving Average by Alan Hull Please, install the ‘HMA’ indicator: viewtopic.php?f=38&t=59630 HMA[i]=LWMA(i,len,(2*LWMA(i,N/2,Price)-LWMA(i,N,Price))), where len=Sqrt(N), LWMA(i,N,Price) - Linear Weighted Moving Average
ZeroLagEMA - Zero-Lag Exponential Moving Average Please, install the ‘ZeroLagEMA’ indicator: viewtopic.php?f=38&t=59634 ZeroLagEMA[i]=Alpha(2Price[i]-Price[i-lag])+(1-Alpha)* ZeroLagEMA[i-1], where Alpha=2/(N+1), Lag=(N-1)/2.
Apprentice · Mon Jan 07, 2019 5:45 pm
DEMA - Double Exponential Moving Average by Patrick Mulloy Please, install the ‘DEMA’ indicator: viewtopic.php?f=38&t=20396 DEMA[i]=2D1[i]-D2[i], where D1[i]=D1[i-1]+2(Price[i]-D1[i-1])/(1+N), D2[i]=D2[i-1]+2*(D1[i]-D2[i-1])/(1+N).
T3 - T3 by T.Tillson Please, install the ‘T3_MA’ indicator: viewtopic.php?f=38&t=63063 T3[i]=DEMA(i,DEMA2), where DEMA2[i]=DEMA(i,DEMA1), DEMA1[i]=DEMA(i,Price), DEMA - Double Exponential Moving Average
ITrend - Instantaneous Trendline by J.Ehlers Please, install the ‘ITrendMA’ indicator: viewtopic.php?f=38&t=59635 ITrend[i]=(Price[i]+2Price[i-1]+Price[i-2])/4 for i<=7, ITrend[i]=(Alpha-0.25AlphaAlpha)Price[i]+0.5AlphaAlphaPrice[i-1]-(Alpha-0.75AlphaAlpha)Price[i-2]+2(1-Alpha)ITrend[i-1]-(1-Alpha)(1-Alpha)ITrend[i-2] for i>7, where Alpha=2/(N+1)
Median - Moving Median Please, install the ‘MedianMA’ indicator: viewtopic.php?f=38&t=20876 Set of the prices (Price[i], Price[i-1], …, Price[i-N]) is sorted (on increase or decrease) and take value from of the set (N/2).
GeoMean - Geometric Mean Please, install the ‘GeoMin_MA’ indicator: viewtopic.php?f=38&t=20877 GeoMean[i]=Price[i]^(1/N)Price[i-1]^(1/N)…*Price[i-N+1]^(1/N).
REMA - Regularized EMA by Chris Satchwell Please, install the ‘REMA’ indicator: viewtopic.php?f=38&t=59636 REMA[i]=(REMA[i-1](1+2Lambda)+Alpha(Price[i]-REMA[i-1])-LambdaREMA[i-2])/(1+Lambda), where Alpha=2/(N+1), Lambda=0.5.
ILRS - Integral of Linear Regression Slope Please, install the ‘ILRS_MA’ indicator: viewtopic.php?f=38&t=59963 ILRS[i]=(NSum1-SumSumy)/(SumSum-NSum2)+MVA(I,N), where Sum=N(N-1)0.5, Sum2=N(N-1)(2N-1)/6, Sum1=1Price[i-1]+2Price[i-2]+…+(N-1)Price[i-N+1], Sumy=Price[i]+Price[i-1]+…+Price[i-N+1], MVA(i,N) – Simple Moving Average.
IE/2 - Combination of LSMA and ILRS Please, install the ‘IE2_MA’ indicator: viewtopic.php?f=38&t=59964 IE/2=(ILRS+LSMA)/2
TriMAgen - Triangular Moving Average generalized by J.Ehlers Please, install the ‘TriMAgen’ indicator: viewtopic.php?f=38&t=59965 TriMAgen[i]=Sum/(len+1), where Sum=MVA(i,len)+MVA(i-1,len)+…+MVA(i-len,len), where MVA(i,N) – Simple Moving Average, len=(N+1)/2.
JSmooth - Smoothing by Mark Jurik Please, install the ‘JSmooth_MA’ indicator: viewtopic.php?f=38&t=59966 JSmooth[i]=J5[i], where J5[i]=J5[i-1]+J4[i], J4[i]=(J3[i]-J5[i-1])(1-Alpha)(1-Alpha)+J4[i-1]AlphaAlpha, J3[i]=J1[i]+J2[i], J2[i]=(Price[i]-J1[i])(1-Alpha)+J2[i-1]Alpha, J1[i]=Price[i](1-Alpha)+J1[i-1]Alpha, Alpha=0.45N/(0.45(N-1)+2).
Apprentice · Mon Jan 07, 2019 5:46 pm
by Artem.dev » Sat Oct 20, 2018 12:08 pm
In this version for MT4, all indicators are called up using iCustom(). Where to get these indicators?
Please re-download.