TL Anchor to Bars

From MultiCharts
Revision as of 23:31, 27 February 2017 by Angelina (talk | contribs) (Created page with "Anchors the corresponding trendline 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 tren...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

TL_Anchor_to_Bars(TL_ID,LogicalExpression)

Where:

TL_ID is a numerical expression specifying the trendline ID number
LogicalExpression is a logical value; True = Add option and False = Remove option

Notes

A trendline-specific ID number is returned by TL_New when the trendline is created.

Example

Anchor the trendline with an ID number of 3 to the visible bar index:

Value1=TL_Anchor_to_Bars(3,True);