Difference between revisions of "RectangleNew s"

From MultiCharts
Jump to navigation Jump to search
(Created page with "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 re...")
 
 
Line 20: Line 20:
 
<syntaxhighlight>Value1=RectangleNew_s(date[10],time_s[10],Highest(high, 10),date,time_s,Lowest(low, 10));  
 
<syntaxhighlight>Value1=RectangleNew_s(date[10],time_s[10],Highest(high, 10),date,time_s,Lowest(low, 10));  
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
 +
[[Category: Rectangle Drawing]]

Latest revision as of 16:16, 19 August 2021

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.

Usage

RectangleNew_s (sDate, sTime_s, sPriceValue, eDate, eTime_s, ePriceValue)

Parameters

  • sDate - a numerical expression specifying the rectangle starting point date; the date is indicated in the YYYMMdd format, where YYY is the number of years since 1900, MM is the month, and dd is the day of the month
  • sTime_s - a numerical expression specifying the rectangle starting point time, including seconds; the time is indicated in the 24-hour HHmmss format, where 130000 = 1:00:00 PM
  • sPriceValue - a numerical expression specifying the rectangle starting point price value (vertical position, corresponding to a value on the price scale of a chart)
  • eDate - a numerical expression specifying the rectangle ending point date
  • eTime_s - a numerical expression specifying the rectangle ending point time, including seconds
  • ePriceValue - a numerical expression specifying the rectangle ending point price value

Example

Display a rectangle, that covers last 10 bars on the chart that the study is based on:

Value1=RectangleNew_s(date[10],time_s[10],Highest(high, 10),date,time_s,Lowest(low, 10));