×

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.

RectangleSetSize - MultiCharts
Open main menu

RectangleSetSize

Revision as of 15:51, 25 August 2021 by Svetlana MultiCharts (talk | contribs) (Created page with "Assigns the specified width to a rectangle with the specified ID number; returns a value of 0 if the line width was successfully assigned, and a value of -2 if the specified r...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Assigns the specified width to a rectangle with the specified ID number; returns a value of 0 if the line width was successfully assigned, and a value of -2 if the specified rectangle ID number is invalid.

Usage

RectangleSetSize(ID,LineWidth)

Where:

ID - a numerical expression specifying the rectangle ID number
LineWidth - a numerical expression specifying the rectangle width; rectangle width can range from 0 to 6

Notes

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

Example

Assign the width of 5 to the rectangle with an ID number of 1:

Value1=RectangleSetSize(1,5);