HighM (Function)

image\trumpet2.gif Disclaimer

The HighM series function allows you to reference the monthly high of a previous month in an intraday chart (minute or tick-based) or a daily, weekly, or monthly chart.  HighM is one of a family of functions that allows historical references across various data intervals.

Syntax

HighM(PeriodsAgo)

Returns (Double)

The monthly high price from a specified number of months ago.  If there is not enough data, the function will return –1.

Parameters

Name

Type

Description

PeriodsAgo

Numeric

Sets the number of months back to reference a previous month’s high price. (0 = This month's current high)

Remarks

You must have enough intraday data in the chart in order to look back and reference any previous monthly high. For example, if you want to look back at the high of 11 months ago on a 60-minute chart, you must have at least 12 full months of 60-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 month’s current high.

Example

In order to place a sell short limit order at the High of the previous month you would write

SellShort Next Bar at HighM(1) Limit;

 

See Also

LowM, CloseM, OpenM,  HighD,  HighW and HighY.