I’m trying to draw a custom line using the below code based on the time 10pm from the night before. Whilst the code below works, I want to draw this as a segment from the time identified in “Opentime” to the end of the current day but the code keeps kicking up an error and i wasn’t sure that this is even possible. Would someone be able to advise?
defparam drawonlastbaronly=true
if opentime=220000 then
value1=open
endif
if intradaybarindex>=0 then
drawhline(value1)coloured(0,0,255)
endif
return
Thanks
Nilesh