×

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

RectangleSetStyle

1,257 bytes added, 15:57, 25 August 2021
Created page with "Assigns the specified style to a rectangle with the specified ID number; returns a value of 0 if the rectangle style was successfully assigned, and a value of -2 if the specif..."
Assigns the specified style to a rectangle with the specified ID number; returns a value of 0 if the rectangle style was successfully assigned, and a value of -2 if the specified rectangle ID number is invalid.

== Usage ==
<syntaxhighlight>RectangleSetStyle(ID,Style)</syntaxhighlight>
:'''Parameters'''
::''ID'' - a numerical expression specifying the rectangle ID number
::''Style'' - a style constant or a numerical expression specifying the rectangle style as follows:
::{| class="wikitable"
|-
| Tool_Solid || 1 || ______________________
|-
| Tool_Dashed || 2 || - - - - - - - - - - - - - - - - - - -
|-
| Tool_Dotted || 3 || ............................................
|-
| Tool_Dashed2 || 4 || __ _ __ _ __ _ __ _ __ _ __
|-
| Tool_Dashed3 || 5 || ___ _ _ ___ _ _ ___ _ _ ___
|-
| || 6 || Invisible
|}

== Notes ==
A rectangle-specific ID number is returned by [[RectangleNew]] when the rectangle is created.

Example
Set the style of the rectangle with an ID number of 1 to Tool Dashed:
<syntaxhighlight>Value1=RectangleSetStyle(1, 2);</syntaxhighlight>
Set the style of the rectangle with an ID number of 2 to Tool Dashed:
<syntaxhighlight>Value1=RectangleSetStyle(2, Tool_Dashed);</syntaxhighlight>

[[Category: Rectangle Drawing]]

Navigation menu