Nicolas

MACD Platinum

Category: Indicators By: Nicolas Created: September 29, 2017, 8:26 AM
September 29, 2017, 8:26 AM
Indicators
10 Comments
MACD Platinum

This version of the MACD named MACD Platinum is nothing but the MACD indicator calculated with ZeroLag moving averages. The indicator has been converted from an MT4 code, following a request on the ProBuilder forum. This indicator is a part of a manual trading strategy discussed here: https://www.prorealcode.com/topic/convert-a-macd-strategy-from-mt4/

Because I used graphic instructions to materialize the signals on the MACD and to fill it with a color zone, I think that this code could be an inspiration for other indicators of the same type, do not hesitate to use it for the development of your own technical indicators .. and do not forget to share them also 🙂

//PRC_MACD Platinum | indicator
//29.09.2016
//Nicolas @ www.prorealcode.com
//Sharing ProRealTime knowledge

// --- settings
//short = 12
//long = 26
//signal = 9
// --- end of settings

EMAshort1 = exponentialaverage[short](close)
EMAshort2 = exponentialaverage[short](EMAshort1)
DifferenceShort = EMAshort1 - EMAshort2
ZeroLagShort = EMAshort1 + DifferenceShort

EMAlong1 = exponentialaverage[long](close)
EMAlong2 = exponentialaverage[long](EMAlong1)
DifferenceLong = EMAlong1 - EMAlong2
ZeroLagLong = EMAlong1 + DifferenceLong

ZeroLagMACD = ZeroLagShort - ZeroLagLong

signal1=ExponentialAverage[signal](ZEROLAGMACD)
signal2=ExponentialAverage[signal](signal1)
DIFFERENCE2=signal1-signal2

SignalMACD=signal1+DIFFERENCE2

if signalMACD>=zerolagMACD then
 r=255
 g=69
 b=0
else
 r=54
 g=224
 b=208
endif

drawbarchart(signalMACD,zerolagMACD,signalMACD,zerolagMACD) coloured(r,g,b)

if zerolagMACD crosses over signalMACD or zerolagMACD crosses under signalMACD then
 drawtext("●",barindex,signalMACD,Dialog,Bold,12) coloured(r,g,b)
endif

RETURN ZeroLagMACD coloured(54,224,208) style(dottedline,1 ) as "Zero Lag MACD", SignalMACD coloured(255,69,0) style(line,2) as "Signal MACD", 0 coloured(100,100,100) as "zero line"

Download
Filename: PRC_MACD-Platinum.itf
Downloads: 965
Download
Filename: trading-strategy-mt4-converted.png
Downloads: 364
Nicolas
Nicolas Legend
I created ProRealCode because I believe in the power of shared knowledge. I spend my time coding new tools and helping members solve complex problems. If you are stuck on a code or need a fresh perspective on a strategy, I am always willing to help. Welcome to the community!
Author’s Profile

Comments

mahdi
8 years ago
#

how can I import itf file into mt4? please help

Nicolas
8 years ago
#

That code is not for MT4, we do not offer free assistance for this platform, but you can ask for private paid coding at https://www.prorealcode.com/trading-programming-services/

mishaal
8 years ago
#

how can I post this indicator its not work there is an error by programming

Nicolas
8 years ago
#

Just download the itf file and import it into the platform, that's a better way than copy paste the code.

Frank Lemke
9 years ago
#

hallo nicolas ich hoffe du kannst mir helfen ich möchte dein signale direkt im chart angzeigt bekommen mit pfeieln geht das? mfg frank

Nicolas
9 years ago
#

Bitte öffnen Sie ein neues Thema im Forum, um Ihre Abfrage zu spezifizieren. Vielen Dank.

patrick3
9 years ago
#

Merci beaucoup Nicolas pour le temps que tu passes à aider les autres, qui comme moi sont nul en programmation. Cordialement

Dymjohn
9 years ago
#

I believe the QQE Adv needs adding with default settings of 1,8,3 to complete the strategy. This identifies crosses identified by "buy" or "sell" arrows on the chart.

Dymjohn
9 years ago
#

I have a copy of this strategy in IG MT4 and for those who want an explanation the book which goes with the strategy is "High Probability Forex Trading Method" by Jim Brown and is relatively cheap.

guinsu2000
8 years ago
#

hello could you share your copy in a pdf or where you whant please ?

ProRealCode ProRealCode
Loading...