MACD CCI Overlay

v10.3
MACD CCI Overlay

Paint the candlesticks with conditions based on CCI and MACD.

  • green color when  cci [14] > 0 and macd line > signal line
  • red color when cci [14] < 0 and macd line < signal line
  • grey color when cci > 0 and macd line< signal line or cci < 0 and macd line> signal line

Share this

Risk disclosure:

No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.

ProRealTime ITF files and other attachments : How to import ITF files into ProRealTime platform?

PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials

  1. cfta • 02/20/2020 #

    Thanks for sharing, this may be a useful filter but I’m not sure if it’s coded correctly since I only get red and gray candles but never any green ones regardless of which instrument and timeframe I try it on.

  2. stephane2.0 • 02/20/2020 #

    Yes, line 5 is truncated. I can’t edit, please replace by:

  3. stephane2.0 • 02/20/2020 #

    c=exponentialaverage[9](MACDLine[12,26,9](close))

  4. Forexcheckup • 02/20/2020 #

    Hi
    I down loaded the ITF file, it paints red for a down trend but for all up trends the candles are grey. Could you advise how I get the candles to paint blue please

  5. stephane2.0 • 02/20/2020 #

    line 22: r = 195 by r = 0
    line 23: g = 195 by g = 0
    line 24: b = 195 by b = 255

    😉

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
Nicolas
9 years ago
ZeroLag MACD
ZeroLag MACD
13
Indicators
sam00075 Hi Nicolas, can you please upload a version with TEMA, so those who don't know how to code c...
Nicolas Use the MACD code here: https://www.prorealcode.com/topic/standard-prt-code-for-macd/#post-1...
Alai-n Afin d'avoir l'Histogramme Macd il faut rajouter ligne18 : HistogrammeMacd = ZeroLagMACD - S...
Nicolas Why not, but a stock screener for what conditions?
Dimi.A Whenever the yellow CCI line goes "outside" the bands. Which will alert us of possible rever...
Nicolas ok why not, please add a request in the appropriate forum section, many thanks.
Nicolas
9 years ago
Nicolas Just replace the last line with this : RETURN dm as "Volume Weighted MACD", masignal as "Si...
thomas2004ch I happen to read this article. I would say the formel 'd = maslow - mafast' could be inverse...
Nicolas You are right! but still the picture is looking good. The formula is inverted! dunno why :) ...
Nicolas
9 years ago

Top