+1 888 340 6572

RectangleNew

From MultiCharts

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 (sDate, sTime, sPriceValue, eDate, eTime, 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 - a numerical expression specifying the rectangle starting point time; the time is indicated in the 24-hour HHmm format, where 1300 = 1: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 - a numerical expression specifying the rectangle ending point time
  • 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(date[10],time[10],Highest(high, 10),date,time,Lowest(low, 10));