MidPoint (Function)
The MidPoint function finds the highest and lowest value of a Price over a given Length and returns the average of the two.
Syntax
MidPoint(Price, Length)
Returns (Double)
The MidPoint price of the period specified.
Parameters
Name |
Type |
Description |
Price |
Numeric |
Specifies which bar value (price, function, or formula) to be use for the calculation. |
Length |
Numeric |
Sets the number of bars to consider. |
Remarks
The input parameter Price can be a bar value such as Close, High, Low, Open, or Volume. It can also be any mathematical calculation such as: ( High + Low) / 2, or a numeric function such as RSI, Stochastic, or ADX.
Example
Plot1(MidPoint(C,10));