Sma200 = Average[200,0](close)
Wma34C = Average[34,3](close)
Wma34L = Average[34,3](low)
MyMACD = Average[12,1](close) - Average[26,1](close)
MySignal = Average[9,1](MyMACD)
//MyHisto = MyMACD - MySignal
CrossOver = MyMACD crosses Over MySignal
CrossUnder = MyMACD crosses Under MySignal
r1 = 255 //pink (rosa)
g1 = 110 //pink (rosa)
b1 = 180 //pink (rosa)
r2 = 238 //yellow (amarillo)
g2 = 238 //yellow (amarillo)
b2 = 0 //yellow (amarillo)
t = 255
If CrossOver and close < Sma200 and close > Wma34L Then
DRAWCANDLE(open,high,low,close) COLOURED(r2,g2,b2,t) BORDERCOLOR(255,255,255,255) //yellow (amarillo)
Endif
If CrossUnder and close > Sma200 and close < Wma34C Then
DRAWCANDLE(open,high,low,close) COLOURED(r1,g1,b1,t) BORDERCOLOR(255,255,255,255) //pink (rosa)
Endif
RETURN