MACD ON PRICE
Forums › ProRealTime English forum › ProBuilder support › MACD ON PRICE
- This topic has 6 replies, 3 voices, and was last updated 4 years ago by segie.
Tagged: Macd, macd on price, price
Viewing 7 posts - 1 through 7 (of 7 total)
-
-
05/13/2020 at 11:19 AM #131471
Hi,
Can the dot for the above code be displayed on the price chart? On the corresponding candle?
Regards,
Segie
MACD Plat1234567891011121314151617181920212223242526272829303132333435363738394041424344454647//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)05/13/2020 at 11:30 AM #131476Try this:
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647//PRC_MACD Platinum | indicator (dot only on price chart)//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,Dialog,Bold,12) coloured(r,g,b)endifif zerolagMACD crosses under signalMACD thendrawtext("●",barindex,high,Dialog,Bold,12) coloured(r,g,b)endifRETURN1 user thanked author for this post.
05/14/2020 at 2:41 PM #13166905/14/2020 at 3:19 PM #131674Remove initial //’s from lines 7,8 and 9.
1 user thanked author for this post.
05/14/2020 at 7:10 PM #13170005/14/2020 at 8:05 PM #13170405/16/2020 at 10:38 AM #131859 -
AuthorPosts
Viewing 7 posts - 1 through 7 (of 7 total)
Find exclusive trading pro-tools on
Similar topics: