Arw Anchor to Bars

From MultiCharts
Jump to navigation Jump to search

Anchors the corresponding arrow 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

Arw_Anchor_to_Bars(ArrowID,LogicalExpression)

Where:

ArrowID is a numerical expression specifying the arrow drawing ID number
LogicalExpression is a logical value; True = add option and False = remove option

Notes

Arrow ID number is returned by Arw_New when the arrow drawing is created.

Example

Anchor the arrow drawing with an ID number of 5 to the visible bar index:

Value1=Arw_Anchor_to_Bars(5, true);