| 
 
  | 
| 
 Description  | 
 This function identifies the mid-point of a bar's range. 
 
  | 
| 
 
  | 
 
  | 
| 
 Formula  | 
 RangeMidPoint(instrument, targetBar)=begin pHigh = GetPrice(instrument, BATE_HIGH, targetBar, 0) pLow = GetPrice(instrument, BATE_LOW, targetBar, 0) retval = NONUM if pHigh != NONUM AND pLow != NONUM then begin nvSub = (pHigh - pLow) / 2 retval = pLow + nvSub 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  | 
 The price representing the mid-point of the range.  | 
| 
 
  | 
 
  | 
| 
 Examples  | 
 NA  | 
| 
 
  | 
 
  | 
| 
 Comments  | 
 See also BodyMidPoint().  | 
©2008 Aspen Research Group, Ltd. All rights reserved. Terms of Use.