Zero Lag indicator

Here you can post and download custom indicators written in JavaScript.

Moderator: admin

Zero Lag indicator

Postby Alexander.Gettinger » Fri Jun 23, 2017 2:36 pm

Zero Lag indicator is described in November 2010 issue of Stocks & Commodities.

The formula of the indicator is:
ZL = α * (EMA + Gain * (Close - ZL[1])) + (1 - α) * ZL[1]

The formula is similar to EMA, except that new term Gain * (Close - ZL[1]) is introduced.
'Gain' represents the value which is chosen from [-GainLimit, GainLimit] interval to minimize
the error for current data sample, (Close - ZL) → min

Zerolag_JS.PNG


Download:
ZeroLag_JS.jsl
(2.21 KiB) Downloaded 490 times
Alexander.Gettinger
FXCodeBase: Confirmed User
 
Posts: 3785
Joined: Wed Mar 31, 2010 9:40 pm
Location: Russia, Omsk

Return to JavaScript Indicators and Strategies

Who is online

Users browsing this forum: No registered users and 6 guests