HighW (Function)
The HighWseries function allows you to reference the weekly high of a previous week in an intraday chart (minute
Syntax
HighW(PeriodsAgo)
Returns (Double)
The weekly high price from a specified number of weeks ago. If there is not enough data, the function will return –1.
Parameters
Name |
Type |
Description |
PeriodsAgo |
Numeric |
Sets the number of weeks back to reference a previous week’s high price. (0 = This week's current high) |
Remarks
You must have enough intraday data in the chart in order to look back and reference any previous weekly high. For example, if you want to look back at the high of 15 weeks ago on a 30-minute chart, you must have at least 16 full weeks of 30-minute bars in the chart.
The value for the PeriodsAgo input parameter should always be a whole number greater than or equal to 0. Setting PeriodsAgo to 0 returns this week’s current high.
Example
In order to place a sell short limit order at the High of the previous week you would write
SellShort Next Bar at HighW(1) Limit;