|
Description |
This function returns the difference between the high and the low. |
|
|
Formula |
Body(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 retval = pHigh - pLow 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 difference between the high and low. |
|
|
Examples |
LowerShadow(instrument,targetBar)=begin bLen = Body(instrument, targetBar) rbLen = RealBodyLen(instrument, targetBar) nShdw = LowerShadowLen(instrument, targetBar) retval = nShdw
if bLen != abs(rbLen) AND nShdw != 0 then begin retval = (nShdw / bLen) * 100 end retval end |
|
|
Comments |
NA |
©2008 Aspen Research Group, Ltd. All rights reserved. Terms of Use.