|
Description |
This function identifies a price that is one quarter of the range and closest to the close. This price depends on the session:
On a black bar, the bottom quarter is given, and on a white bar, the top quarter is given. |
|
|
Formula |
RealBodyCloseQuarter(instrument, targetBar)=begin pOpen = GetPrice($1, BATE_OPEN, targetBar, 0) pClose = GetPrice($1, BATE_CLOSE, targetBar, 0) nvSub = Abs(Diff(pOpen, pClose)) / 4 if BlackBody($1, targetBar) == TRUE then retval = pClose + nvSub else retval = pClose - nvSub 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 |
The quarter between the mid-point and the close. |
|
|
Examples |
... cQtr = RealBodyCloseQuarter($1, (targetBar + 1)) ... |
|
|
Comments |
NA |
©2008 Aspen Research Group, Ltd. All rights reserved. Terms of Use.