Label in middle if the Box

Forums ProRealTime English forum ProBuilder support Label in middle if the Box

  • This topic has 1 reply, 2 voices, and was last updated 8 months ago by avatarJS.
Viewing 2 posts - 1 through 2 (of 2 total)
  • #219240

    I want the Text USA to show in the middle of the box.

    Please Help

    Voffset = 5*pipsize
    starttime = 143000
    endtime = 210000
    USA=HH
    if intradaybarindex=0 then
    hh = 0
    ll = 0
    alreadydrawn = 0
    endif

    if time=starttime then
    startbar=barindex
    endif

    if time=endtime then
    endbar=barindex
    endif

    if time>=starttime and time<=endtime then
    if high>hh then
    hh = high
    endif
    if low<ll or ll=0 then
    ll = low
    endif
    endif

    if time>endtime and alreadydrawn=0 then
    drawrectangle(startbar,hh,endbar,ll)
    alreadydrawn=1

    DRAWTEXT(“USA”, barindex, High,SansSerif,Bold,16) COLOURED(255,10,10,255)
    //drawtext(“USA”,barindex,USA) coloured(204,0,204)
    endif

    RETURN

    #219242
    JS

    Hi,

    USA boxed and centered… 🙂

     

     

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

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