Hi PRTC
I trying to get prices to display on my lies on the left hand side of the page, i can do it using the drawtext function referencing the barindex.
Is there a way to do this?
Any help would be appreciated
Jeff
The X-axis coordinates are in ‘barindex’ format, so we can’t draw something at a fixed point in the price chart like the upper left side of it for instance.
I made a quick and rough code to continuously draw a text at the same barindex the indicator first met when its code has been read at each tick (4000 bars ago from the current price here). Of course it does not adapt when you are zooming price.
defparam DRAWONLASTBARONLY=true
defparam CALCULATEONLASTBARS=1000
z=z+1
if z = 1 then
firstbar=barindex
endif
var=close
DRAWTEXT("#var#", firstbar, close,Dialog,Bold,20)
return
Thank you Nicolas your wisdom is appreciated.