|
Description |
This function identifies the mid-point of a bar's range.
|
|
|
Formula |
BodyMidPoint(instrument, targetBar)=begin retval = NONUM pHigh = GetPrice(instrument, BATE_HIGH, targetBar, 0) pLow = GetPrice(instrument, BATE_LOW, targetBar, 0) nvSub = Diff(pHigh, pLow) / 2
if pHigh != NONUM then begin retval = pLow + nvSub end end |
|
|
Parameters |
instrument An instrument.
targetBar The index of the bar you want to evaluate. 0 is the current bar, 1 is the first bar back, etc. |
|
|
Return Value |
A price representing the mid-point of the bar's range. |
|
|
Examples |
... if RealBodyLow($1, targetBar) > BodyMidPoint($1, targetBar) then begin ... |
|
|
Comments |
NA |
©2008 Aspen Research Group, Ltd. All rights reserved. Terms of Use.