Draw vertical line with Text.

Forums ProRealTime English forum ProBuilder support Draw vertical line with Text.

Viewing 5 posts - 1 through 5 (of 5 total)
  • #46050

    Hello.

    I want to add the text “DAX-Open” when drawing a vertical line at 07:00.
    I use code below to draw the line at 07:00 on DAX open but I cant get it to add only the text with a Font size/type/colour.
    I cant find the answer in https://www.prorealcode.com/documentation/drawtext/

    I will appreciate some assistance or point me in the direction where I can find the solution.
    Thank you.

    #######################
    if time=070000 then //DAX Open UTC+1
    drawvline(barindex)

    endif

    return
    #######################

    #46120

    Where do you want to draw the text?

    #46133

    Thank you for the reply.

    Any of the two following options will be great.

    Preferable if the text can be parallel with the vertical line.
    Or
    If the text can be horizontal(90 Deg) to the vertical line. Somewhere in the middle of the screen or even at the bottom will also be fine.

    Whichever is possible.
    Thank you.

     

    #46469

    It is not possible to draw text vertically (or any degree rotation from the normal horizontal line).

    Since coordinates are in barindex number and price, you’ll have to set the best place to plot the text, I made it with the Low of the DAX open bar minus one ATR.

    #46494

    Thank you Nicolas.

    This is good.

Viewing 5 posts - 1 through 5 (of 5 total)

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