Text Anchor to Bars
Anchors the corresponding text drawing to the visible bar index; returns a value of 0 if the operation was performed successfully, and a value of -2 if the specified trendline ID number is invalid.
- Text_ID is a numerical expression specifying the text drawing ID number
- LogicalExpression is a logical value; True = add option and False = remove option
Text ID number is returned by Text_New when the text drawing is created.
Anchor the text drawing with an ID number of 3 to the visible bar index: