Hi,
I have a simple code that draws a line at the market daily closing price (5pm EST), but I don’t know how to hide the oblique line that connects 2 consecutive daily closing prices.
The code is:
if Hour=22 then
a=close
endif
return a
Does anyone know how to hide the oblique that connects each “a” (see chart for more clarity)?
Thanks
You can’t, with RETURNed data.
You have to draw those segments yourself using DRAWSEGMENT.
I moved your topic to ProBuilder since it’s related to an indicator.
Try this:
if Hour=22 then
a=close
MyBar = barindex
endif
Drawsegment(MyBar,a,barindex,a)
return
Quick question Roberto, how do I change the style of the segment please?
Only v11 allows to change it (while RETURNed data can always be customized with properties, even in v10.3), if you are using it you can replace line 5 with:
Drawsegment(MyBar,a,barindex,a) coloured(0,128,0,255) STYLE(line,2)
In v10.3 you can only add COLOURED to change colour.