|
Description |
A shaven bottom is a candlestick with no lower shadow. This function determines whether a candlestick has a shaven bottom. |
|
|
Formula |
ShavenBottom(instrument, targetBar)=begin retval = FALSE cClose = GetPrice($1, BATE_CLOSE, targetBar, 0) cLow = GetPrice($1, BATE_LOW, targetBar, 0) cHigh = GetPrice($1, BATE_LOW, targetBar, 0) cOpen = GetPrice($1, BATE_OPEN, targetBar, 0) if BlackBody($1, targetBar) then begin if cLow == cClose then retval = TRUE end if WhiteBody($1, targetBar) then begin if cLow == cOpen then retval = TRUE end retval 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 |
TRUE or FALSE |
|
|
Examples |
Bozu(INPUT)=begin retval = NONUM targetBar = 0 if
ShavenTop($1, targetBar) AND if
WhiteBody($1, targetBar) then retval = if
BlackBody($1, targetBar) then retval = end end |
|
|
Comments |
|
©2008 Aspen Research Group, Ltd. All rights reserved. Terms of Use.