Paint the candlesticks with conditions based on CCI and MACD.
// Variable
a=CCI[14](typicalPrice)
b=MACDline[12,26,9](close)
c = ExponentialAverage[9](b)
//Hausse
if a > 0 and b > c then
r = 0
b = 0
g = 255
//Baisse
elsif a < 0 and b < c then
r = 255
b = 0
g = 0
//Neutre
elsif a > 0 and b < c OR a < 0 and b > c then
r = 195
g = 195
b = 195
endif
DRAWCANDLE(open,high,low,close) coloured(r,g,b)
RETURN