ITrend moving average

Custom MT4 expert advisors published here.

Moderator: admin

ITrend moving average

Postby Alexander.Gettinger » Wed Oct 09, 2013 5:32 pm

Instantaneous Trendline by J.Ehlers.

Formulas:
ITrend[i] = (Price[i]+2*Price[i-1]+Price[i-2])/4 for i<=7,
ITrend[i] = c1*Price[i]+c2*Price[i-1]-c3*Price[i-2]+c4*ITrend[i-1]-c5*ITrend[i-2] for i>7, where
c1 = Alpha-0.25*Alpha*Alpha,
c2 = 0.5*Alpha*Alpha,
c3 = Alpha-0.75*Alpha*Alpha,
c4 = 2*(1-Alpha),
c5 = (1-Alpha)*(1-Alpha),
Alpha=2/(Length+1).

ITrendMA_MQL.PNG


Download:
ITrendMA.mq4
(1.93 KiB) Downloaded 603 times


TS2/Marketscope/Lua version
Alexander.Gettinger
FXCodeBase: Confirmed User
 
Posts: 3785
Joined: Wed Mar 31, 2010 9:40 pm
Location: Russia, Omsk

Return to MT4 Expert Advisors

Who is online

Users browsing this forum: No registered users and 10 guests