×

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

Changes

Jump to navigation Jump to search

RectangleAnchorToBars

88 bytes added, 15:48, 18 August 2021
no edit summary
Anchors the corresponding rectangle 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 rectangle ID number is invalid.
== Usage==<syntaxhighlight>RectangleAnchorToBars(ID,LogicalExpression) </syntaxhighlight>
Where:  :'''ID ''' - is a numerical expression specifying the rectangle ID number :'''LogicalExpression ''' - is a logical value; True = Add option and False = Remove option
   == Notes ==
A rectangle-specific ID number is returned by RectangleNew when the rectangle is created.
 
 
== Example==
Anchor the rectangle with an ID number of 3 to the visible bar index:
<syntaxhighlight>Value1=RectangleAnchorToBars(3,True);</syntaxhighlight>
[[Category: Rectangle Drawing]]

Navigation menu