Proviamo questo codice:
if volume>=100 then
drawhline(close)
if close>open then
drawarrowup(barindex,low) coloured(0,255,0)
else
drawarrowdown(barindex,high) coloured(255,0,0)
endif
endif
return
disegna solo freccia verso il basso ma va già meglio.(draw only arrow down)
forse bisogna inserire close<open per disegnare freccia in alto? (maybe you have to insert close<open to draw the arrowup?)
oppure il problema è sul bid/ask?
non capisco
Sì, mi dispiace, è normale dato che nel grafico tick-by-tick, non c’è Open. Il codice seguente dovrebbe risolvere questo comportamento:
up = close>last
down = close<last
last = close
if volume>=100 then
drawhline(close)
if up then
drawarrowup(barindex,low) coloured(0,255,0)
elsif down then
drawarrowdown(barindex,high) coloured(255,0,0)
endif
endif
return