Code: Select all
plot1(HighD(0)) or
plot1(HighS(0))
These are not supposed to work in renko charts ?
(same problem, obviously, with Open, Low, Close)
Code: Select all
plot1(HighD(0)) or
plot1(HighS(0))
HighD (Function)
The HighD series function allows you to reference the daily high of a previous day in an intraday chart (minute or tick-based) or a daily chart. HighD is one of a family of functions that allows historical references across various data intervals.
Syntax
HighD(PeriodsAgo)
Returns (Double)
The daily high price from a specified number of days ago. If the PeriodsAgo parameter is out of range (> 50), or there is not enough data, the function will return –1.
Parameters
Name
Type
Description
PeriodsAgo
Numeric
Sets the number of days/periods back to reference a previous day’s high price. (50 days back maximum) (0 = Today’s current high)
Remarks
You must have enough intraday data in the chart in order to look back and reference any previous daily high. For example, if you want to look back at the high of 25 days ago on a 5-minute chart, you must have at least 26 full days of 5-minute bars in the chart.
The value for the PeriodsAgo input parameter should always be a whole number greater than or equal to 0, but less than 51. Setting PeriodsAgo to 0 returns today’s current high.
Example
In order to place a short limit order at the High of the previous day you would write:
SellShort Next Bar at HighD(1) Limit;
See Also
LowD, CloseD, OpenD, HighW, HighM, and HighY.