×

Sign up and get MultiCharts free

Use its powerful simulation mode with data included out of the box. Just fill out the form and start honing your trading skills with a few clicks.

Changes - MultiCharts
Open main menu

Changes

Text Anchor to Bars

748 bytes added, 23:22, 27 February 2017
Created page with "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..."
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.

==Usage==
<syntaxhighlight>Text_Anchor_to_Bars(Text_ID,LogicalExpression)</syntaxhighlight>

Where:
:'''Text_ID''' is a numerical expression specifying the text drawing ID number
:'''LogicalExpression''' is a logical value; True = add option and False = remove option

==Notes ==
Text ID number is returned by Text_New when the text drawing is created.

==Example==
Anchor the text drawing with an ID number of 3 to the visible bar index:

<syntaxhighlight>Value1=Text_Anchor_to_Bars(3,True);</syntaxhighlight>


[[Category:Text Drawing]]