| 
 
  | 
| 
 Description  | 
 This formula calculates the deviation of ranges for a specified number of bars.  | 
| 
 
  | 
 
  | 
| 
 Formula  | 
 DevRange(SERIES, targetBar, Bars=3)=begin retval = DEV(Range($1, targetBar), Bars) end  | 
| 
 
  | 
 
  | 
| 
 Parameters  | 
 SERIES The SERIES directive makes this formula available as a Formula Study. SERIES refers to the instrument in a chart. SERIES does not become a study parameter. 
 targetBar The bar, as oriented with the current bar, you want to evaluate. 
 Bars The number of bars to evaluate. The default is 3.  | 
| 
 
  | 
 
  | 
| 
 Return Value  | 
 A deviation  | 
| 
 
  | 
 
  | 
| 
 Examples  | 
 ... thisDev = DevRange($1, pnt1, 2) ...  | 
| 
 
  | 
 
  | 
| 
 Comments  | 
 This formula is used by the ThreeWhiteSoldiers, ThreeBlackCrows, and TwoCrows candlestick overlay studies.  | 
©2008 Aspen Research Group, Ltd. All rights reserved. Terms of Use.