rickroberts Posted December 7, 2015 Report Share Posted December 7, 2015 Is the Medved Traders version of zerolag MACD this: ZeroLAG MACD calculates on formula: ZeroLAG MACD(i) = (2*EMA(Close, FP, i) - EMA(EMA(Close, FP, i), FP, i)) - (2*EMA(Close, SP, i) - EMA(EMA(Close, SP, i), SP, i)); ZeroLAG MACD Signal(i) = 2*EMA(ZeroLAG MACD(i), SigP, i) - EMA(EMA(ZeroLAG MACD(i), SigP, i), SigP, i); where: EMA - exponential moving average; Close - a price of the closing of the bar; FP - a period of the quick moving average; SP - a period of the slow moving average; SigP - a period of the signal moving average; Quote Link to comment Share on other sites More sharing options...
Mike Medved Posted December 7, 2015 Report Share Posted December 7, 2015 if you pick ZLMA as the MA type for the MACD in MT, it will substitute ZLMA for the Moving Average in MACD formula. The ZLMA formula is here: http://user42.tuxfamily.org/chart/manual/Zero_002dLag-Exponential-Moving-Average.html Quote Link to comment Share on other sites More sharing options...
rickroberts Posted December 7, 2015 Author Report Share Posted December 7, 2015 Ok, that's not same this as the code I posted above is it? Can the user program the Zero Lag MACD code above into Medved? Quote Link to comment Share on other sites More sharing options...
Mike Medved Posted December 7, 2015 Report Share Posted December 7, 2015 The "2*EMA - EMA(EMA)" formulation - that seems to be a different kind of moving average, under what name was it published? Quote Link to comment Share on other sites More sharing options...
rickroberts Posted December 7, 2015 Author Report Share Posted December 7, 2015 Here you go: https://www.mql5.com/en/code/9993 Hope you will consider adding it. Quote Link to comment Share on other sites More sharing options...
Mike Medved Posted December 7, 2015 Report Share Posted December 7, 2015 Ok - that's just the MACD code from someone. But what they are doing is instead of using some standard MA formula like SMA or EMA or ZLMA, they are using this 2*EMA-EMA(EMA) formula. In order to properly add that to MT, I would want to add that MA to the MAs available (under a proper name) and then include it in the list of MA types available for MACD. But I would need to know what its name is. Quote Link to comment Share on other sites More sharing options...
rickroberts Posted January 4, 2016 Author Report Share Posted January 4, 2016 Just following up... Is this a "no-go" on the zerolag? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.