MACD PLATINUM ON CHART
Forums › ProRealTime forum Français › Support ProBuilder › MACD PLATINUM ON CHART
- This topic has 4 replies, 2 voices, and was last updated 6 years ago by supertiti.
-
-
08/01/2018 at 9:07 AM #77243
Bonjour à tous,
On a rangé le parasol et les tongues ?
J’utilise ce MACD depuis sa création et personnellement je le trouve pas mal , serait il possible de le convertir
pour qu’on puisse l’appliquer directement sur le graphe des prix ?
merci pour votre aide
bonne journée et bons trades
MACD PLATINUM12345678910111213141516171819202122232425262728293031323334353637383940414243444546//PRC_MACD Platinum | indicator//29.09.2016//Nicolas @ www.prorealcode.com//Sharing ProRealTime knowledge// --- settings//short = 12//long = 26//signal = 9// --- end of settingsEMAshort1 = exponentialaverage[short](close)EMAshort2 = exponentialaverage[short](EMAshort1)DifferenceShort = EMAshort1 - EMAshort2ZeroLagShort = EMAshort1 + DifferenceShortEMAlong1 = exponentialaverage[long](close)EMAlong2 = exponentialaverage[long](EMAlong1)DifferenceLong = EMAlong1 - EMAlong2ZeroLagLong = EMAlong1 + DifferenceLongZeroLagMACD = ZeroLagShort - ZeroLagLongsignal1=ExponentialAverage[signal](ZEROLAGMACD)signal2=ExponentialAverage[signal](signal1)DIFFERENCE2=signal1-signal2SignalMACD=signal1+DIFFERENCE2if signalMACD>=zerolagMACD thenr=255g=69b=0elser=54g=224b=208endifdrawbarchart(signalMACD,zerolagMACD,signalMACD,zerolagMACD) coloured(r,g,b)if zerolagMACD crosses over signalMACD or zerolagMACD crosses under signalMACD thendrawtext("●",barindex,signalMACD,Dialog,Bold,12) coloured(r,g,b)endifRETURN 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"08/01/2018 at 10:25 AM #77272Bonjour Titi,
J’espère que cela te conviendra.
1234567891011121314151617181920212223242526272829303132333435363738394041424344//PRC_MACD Platinum | indicator//29.09.2016//Nicolas @ www.prorealcode.com//Sharing ProRealTime knowledge// --- settings//short = 12//long = 26//signal = 9// --- end of settingsEMAshort1 = exponentialaverage[short](close)EMAshort2 = exponentialaverage[short](EMAshort1)DifferenceShort = EMAshort1 - EMAshort2ZeroLagShort = EMAshort1 + DifferenceShortEMAlong1 = exponentialaverage[long](close)EMAlong2 = exponentialaverage[long](EMAlong1)DifferenceLong = EMAlong1 - EMAlong2ZeroLagLong = EMAlong1 + DifferenceLongZeroLagMACD = ZeroLagShort - ZeroLagLongsignal1=ExponentialAverage[signal](ZEROLAGMACD)signal2=ExponentialAverage[signal](signal1)DIFFERENCE2=signal1-signal2SignalMACD=signal1+DIFFERENCE2if signalMACD>=zerolagMACD thenr=255g=69b=0elser=54g=224b=208endifif zerolagMACD crosses over signalMACD or zerolagMACD crosses under signalMACD thendrawtext("●",barindex,close,Dialog,Bold,12) coloured(r,g,b)endifRETURN08/01/2018 at 12:21 PM #77297Bonjour Matriciel
Le code va très bien , c’est juste ce que je voulais. J’avais initié quelques codes mais sans réel succès ( trop de signaux).
juste un point peut-être perfectible , avons nous la possibilité de rapprocher les signaux longs et courts des cours de clôture ?
les points courts au dessus des cours de clôture et les points longs en dessous seraient le top !.
merci beaucoup pour ton aide
cordialement
ci joint une valeur d’actualité : Air France
08/01/2018 at 1:42 PM #77313Comme ceci ?
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748//PRC_MACD Platinum | indicator//29.09.2016//Nicolas @ www.prorealcode.com//Sharing ProRealTime knowledge// --- settings//short = 12//long = 26//signal = 9// --- end of settingsEMAshort1 = exponentialaverage[short](close)EMAshort2 = exponentialaverage[short](EMAshort1)DifferenceShort = EMAshort1 - EMAshort2ZeroLagShort = EMAshort1 + DifferenceShortEMAlong1 = exponentialaverage[long](close)EMAlong2 = exponentialaverage[long](EMAlong1)DifferenceLong = EMAlong1 - EMAlong2ZeroLagLong = EMAlong1 + DifferenceLongZeroLagMACD = ZeroLagShort - ZeroLagLongsignal1=ExponentialAverage[signal](ZEROLAGMACD)signal2=ExponentialAverage[signal](signal1)DIFFERENCE2=signal1-signal2SignalMACD=signal1+DIFFERENCE2if signalMACD>=zerolagMACD thenr=255g=69b=0elser=54g=224b=208endifif zerolagMACD crosses over signalMACD thendrawtext("●",barindex,Low-1*pipsize,Dialog,Bold,12) coloured(r,g,b)endifif zerolagMACD crosses under signalMACD thendrawtext("●",barindex,High+1*pipsize,Dialog,Bold,12) coloured(r,g,b)endifRETURN08/01/2018 at 3:08 PM #77337 -
AuthorPosts
Find exclusive trading pro-tools on