×

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

RectangleSetEnd DT

1,238 bytes added, 12:52, 25 August 2021
Created page with "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..."
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.<br>
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.<br>
Instead of separate Date and Time values, a single DateTime value is used. It allows accessing millisecond time stamps of the bar.

== Usage ==
<syntaxhighlight>RectangleSetEnd_DT (ID, e_DateTime, e_Price);</syntaxhighlight>

:'''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
<syntaxhighlight>RectangleSetEnd_DT(value1,DateTime,Close);</syntaxhighlight>

[[Category: Rectangle Drawing]]

Navigation menu