×

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

RectangleSetSize

770 bytes added, 15:51, 25 August 2021
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..."
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 ==
<syntaxhighlight>RectangleSetSize(ID,LineWidth)</syntaxhighlight>
'''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:
<syntaxhighlight>Value1=RectangleSetSize(1,5);</syntaxhighlight>

[[Category: Rectangle Drawing]]

Navigation menu