| 
 
  | 
| 
 Description  | 
 This function determines whether a bar qualifies as a long form. The LengthPercentage argument serves as a basis for comparison.  | 
| 
 
  | 
 
  | 
| 
 Formulas  | 
 LongForm(instrument, targetBar, LengthPercentage)=begin retval = NONUM pPercent = NONUM bLongForm = FALSE pRange = abs(RealBodyLen(instrument, targetBar)) pClose = GetPrice(instrument, BATE_CLOSE, targetBar, 0) if Percentage(pRange,pClose) > LengthPercentage then bLongForm = TRUE end bLongForm 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  | 
 ... if LongForm($1, targetBar, CLONGREAL) then begin ...  | 
| 
 
  | 
 
  | 
| 
 Comments  | 
 NA  | 
©2008 Aspen Research Group, Ltd. All rights reserved. Terms of Use.