Hi
I have an indicator which draws a horizontal segment for a given set of conditions, i would like to have it display the price that the segment is drawn at and have played around with various Anchor commands and drawtext options but cannot get it draw the price on the segment. Is there a way of doing this? Thanks
The relevant section of the code:
if conditions and not conditions[1] and sigdown then
drawarrowUP(barindex,low-10) COLOURED (0,255,0)
memobar=barindex
memolow=low
memohigh=high
sigup=1
sigdown=0
DRAWSEGMENT(memobar, memohigh+1, memobar+5, memohigh+1)STYLE (DOTTEDLINE,1)COLOURED (255,255,0)
DRAWSEGMENT(memobar, memohigh+1, memobar+5, memohigh+1)COLOURED (0,255,0)
DRAWSEGMENT(memobar, memoLOW, memobar+5, memoLOW)COLOURED (0,255,0)
1 user thanked author for this post.