+1 888 340 6572

RectangleNew BN

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.

Displays a rectangle with the specified starting and ending points on the chart that the study is based on; returns a rectangle-specific ID number required to modify the rectangle.
Instead of separate Date and Time values or a single DateTime value, bar number of price series is used.

Usage

RectangleNew_BN (b_BarNumber, b_Price, e_BarNumber, e_Price);
Parameters
b_BarNumber - a numerical expression specifying the rectangle starting point bar number.
b_Price - a numerical expression specifying the rectangle starting point price value (vertical position, corresponding to a value on the price scale of a chart).
e_BarNumber - a numerical expression specifying the rectangle ending point bar number.
e_Price - a numerical expression specifying the rectangle ending point price value.

Example

Display a rectangle that will connect close price of the first bar of price series with the current close price.

once Value2=close; 
Value1=RectangleNew_BN(1,Value2,currentbar,Close); 
if Value1 <> Value1[1] then RectangleDelete(Value1[1]);