I am trying to Draw a text below an Arrow (up/down)
For Drawing arrows I use the DrawArrowUp/DrawArrowDown functions.
and for text i use Draw Text functions.
What I want is the text to be just below the Arrows. Following is the example code I have:
DrawArrowUp(signalArrowTag, true , Time[0], Low[0] - TickSize,Color.Yellow);
DrawText(signalTextTag,"HM",0,Low[0]- (5*TickSize),Color.Black);
Normally it looks ok on the chart. but sometimes if the chart Yaxis scale was expanded, I get overlap of the text and the arrow shapes.
Is there a way to code such that I get the text at fixed distance below/above the arrow?
Meaning if there is a function I can query the length of the arrow, I can use the length as the offset for the Y attribute for DrawText function.
Thanks in advance
Comment