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