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)
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.
It is not possible to draw text vertically (or any degree rotation from the normal horizontal line).
1
2
3
4
5
6
7
iftime=070000then//DAX Open UTC+1
drawvline(barindex)
atr=averagetruerange[14]
drawtext("DAX Open",barindex,low-atr)
endif
return
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.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok