| 
 
  | 
| 
 Description  | 
 A shaven top is a candlestick with no upper shadow. This function determines whether a candlestick has a shaven top.  | 
| 
 
  | 
 
  | 
| 
 Formulas  | 
 ShavenTop(instrument, targetBar)=begin retval = FALSE cOpen = GetPrice($1, BATE_OPEN, targetBar, 0) cHigh = GetPrice($1, BATE_HIGH, targetBar, 0) cClose = GetPrice($1, BATE_CLOSE, targetBar, 0) if BlackBody($1, targetBar) then begin if cHigh == cOpen then retval = TRUE end if WhiteBody($1, targetBar) then begin if cHigh == cClose 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  | 
 NA  | 
©2008 Aspen Research Group, Ltd. All rights reserved. Terms of Use.