Custom Opentime drawn as segment

Forums ProRealTime English forum ProBuilder support Custom Opentime drawn as segment

Viewing 3 posts - 1 through 3 (of 3 total)
  • #221335

    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

    #221345
    JS

    Hi @nbhudia

    Is this what you want…

    1 user thanked author for this post.
    #221352

    hi JS,

    This is exactly what i was after, works better now.

    Many Thanks

    1 user thanked author for this post.
    avatar JS
Viewing 3 posts - 1 through 3 (of 3 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login