×

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.

RectangleGetEnd BN - MultiCharts
Open main menu

RectangleGetEnd BN

Revision as of 14:42, 20 August 2021 by Svetlana MultiCharts (talk | contribs) (→‎Notes)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Returns a bar number value of the ending point of a rectangle with the specified ID number; returns a value of -2 if the specified rectangle ID number is invalid.

Usage

RectangleGetEnd_BN(ID)

Where:

ID - numerical expression specifying the rectangle ID number

Notes

A rectangle-specific ID number is returned by RectangleNew when the rectangle is created.

Example

RectangleGetEnd_BN(value1);

will return 8 if rectangle with ID = Value1 ends on eighth bar of price series.