Hi Roberto,
Sorry, I’m kinda bothering you again but this will be the last thing I would ask. I had a look at other stuff and found you can actually make the candlestick coloured instead of the arrow.. so the idea is when EMA crossover candlestick will go green, green, green until it’s cross back under.. to go red!?! if both true in short period ( lets say in 5 candles) the candlestick go white? if that make sense! is this something you can create? or am I just dreaming?
I managed to add something to your one but i can only change the first candle instead of the arrow but it doesn’t continue to go green or red 🙁
DEFPARAM CalculateOnLastBars = 1000
fast = ExponentialAverage[9](close)
slow = ExponentialAverage[40](close)
//first arrow is blueish
CrossOver = fast crosses over slow
IF CrossOver THEN
CrossUnder = 0
//cross = slow[1]
DRAWARROWUP(barindex,LOW-5*pointsize) COLOURED(0,255,10)
drawcandle(open,high,low,close) coloured(0,255,0)
endif
IF CrossOver[5] THEN
IF summation[4](CrossOver OR CrossUnder) = 0 THEN
TopLine = highest[5](high) + (5 * pipsize)
DRAWTEXT("---#TopLine#---",barindex-3,TopLine,SansSerif,Bold,10)coloured(0,153,0)
ENDIF
ENDIF
//next arrows are purple and semi transparent
//if fast>slow AND slow<>cross then
//DRAWTEXT("*",barindex, slow) COLOURED(0,204,0)
//endif
//first arrow is blueish
CrossUnder = fast crosses under slow
if CrossUnder then
CrossOver = 0
//cross = slow[1]
DRAWARROWDOWN(barindex,HIGH+5*pointsize) COLOURED(255,0,10)
drawcandle(open,high,low,close) coloured(255,0,0)
endif
IF CrossUnder[5] THEN
IF summation[4](CrossOver OR CrossUnder) = 0 THEN
BottomLine = lowest[5](low) - (5 * pipsize)
DRAWTEXT("---#BottomLine#---",barindex-3,BottomLine,SansSerif,Bold,10)coloured(153,0,0)
ENDIF
ENDIF
//next arrows are purple and semi transparent
//if fast<slow AND slow<>cross then
//DRAWTEXT("*",barindex, slow) COLOURED(255,0,0)
//endif
please, your help will be much appreciated..
Thanks
Ro