Zero Lag indicator

Here you can post and download custom indicators. PLEASE: Do not start topics unless you are posting your own indicator, they will be moved to appropriate section even if you do.

Moderator: admin

Zero Lag indicator

Postby vstrelnikov » Mon Oct 25, 2010 8:15 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.png


Download the indicator:
ZeroLag.lua
(2.93 KiB) Downloaded 2026 times


ZeroLag With Alert.lua
(9.7 KiB) Downloaded 1149 times

This indicator provides Audio / Email Alerts on Price / MA cross (Real Time)
or/and MA slope changes (end of turn)
Dec 15, 2015: Compatibility issue Fix. _Alert helper is not longer needed.

Zero Lag Indicator.lua
(3.24 KiB) Downloaded 949 times
vstrelnikov
 
Posts: 59
Joined: Tue Jul 06, 2010 8:31 pm

Re: Zero Lag indicator

Postby Blackcat2 » Thu Oct 28, 2010 1:35 am

Hi,

Could you please provide an option to change line type (dash, dot, or dash-dot, etc) and thickness

Thanks.. :)
Blackcat2
FXCodeBase: Initiate
 
Posts: 118
Joined: Wed May 19, 2010 12:42 am


Re: Zero Lag indicator

Postby Jigit Jigit » Sat Oct 30, 2010 5:12 pm

Again - thanks a lot for this one.
Could you also make it change colour depending on the trend?
e.g. green on an up trend, red on a down trend
It would be great if there was an option to choose the colours according to one's liking.
:D
Jigit Jigit
 
Posts: 54
Joined: Tue Aug 31, 2010 1:04 pm

Re: Zero Lag indicator

Postby Apprentice » Sun Oct 31, 2010 6:42 am

Added to developmental cue.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Zero Lag indicator

Postby hhbraz » Thu Dec 23, 2010 8:58 am

Hi,
Thanks for this excellent indicator. Is it possible to code a signal for this indicator, and also code a signal for the zero-lag MACD?
hhb
hhbraz
 
Posts: 7
Joined: Wed Feb 03, 2010 2:42 am

Re: Zero Lag indicator

Postby Apprentice » Thu Dec 23, 2010 10:30 am

Happy to.
But before you start working on signals.
Can you tell me what type of signal you want.
(Describe the signal with a bit more detail.)
Like, I need Zero Lag / Price to Cross Signal
Signal when the Zero Lag trend changes...
In each case.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Zero Lag indicator

Postby hhbraz » Thu Dec 30, 2010 6:29 pm

Hi,
I would like to get a trend change signal (up or down) at earliest candle close and at varying chart times (I'm mostly interested in 1 hr, 4 hr and daily). I plan to use this signal along with current price level, candle stick formation and an ocillator to facilitate early entry into a trend.
Thanks, hhb
hhbraz
 
Posts: 7
Joined: Wed Feb 03, 2010 2:42 am

Re: Zero Lag indicator

Postby Apprentice » Fri Dec 31, 2010 9:39 am

Added to developmental cue.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Zero Lag indicator

Postby Alexander.Gettinger » Thu Jul 05, 2012 4:40 pm

MQL4 version of Zero Lag indicator: viewtopic.php?f=38&t=20871
Alexander.Gettinger
FXCodeBase: Confirmed User
 
Posts: 3785
Joined: Wed Mar 31, 2010 9:40 pm
Location: Russia, Omsk

Next

Return to Custom Indicators

Who is online

Users browsing this forum: Google [Bot], Majestic-12 [Bot], zerounu and 35 guests