+1 888 340 6572

RectangleSetEnd DT

From MultiCharts
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Modifies the ending point location of a rectangle with the specified ID number; returns a value of 0 if the ending point location was successfully modified, and a value of -2 if the specified rectangle ID number is invalid.
Of the two end points of a rectangle, the point with the later date and time is always considered to be the ending point; if the rectangle is vertical, the point with the higher price value is considered to be the ending point.
Instead of separate Date and Time values, a single DateTime value is used. It allows accessing millisecond time stamps of the bar.

Usage

RectangleSetEnd_DT (ID, e_DateTime, e_Price);
Parameters
ID - a numerical expression specifying the rectangle ID number.
e_DateTime - a numerical expression specifying the rectangle ending point date and time; the date and time are indicated in the DateTime format.
e_Price - a numerical expression specifying the rectangle ending point price value.

Example

Set the ending point of rectangle with ID = value 1 to close price of the current bar

RectangleSetEnd_DT(value1,DateTime,Close);