UpperShadow

See Also...

Related Topics

 

 

Description

This function identifies the upper shadow as a percentage of the range.

 

 

Formula

UpperShadow(instrument,targetBar)=begin

  bLen = Body(instrument, targetBar)

  rbLen = RealBodyLen(instrument, targetBar)

  nShdw = UpperShadowLen(instrument, targetBar)

  retval = nShdw

  

  if bLen != abs(rbLen) AND nShdw != 0 then begin

    retval = (nShdw / bLen) * 100

  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 upper shadow as a percentage of the range.

 

 

Examples

...

  uShadow = UpperShadow($1,targetBar)

...

 

 

Comments

NA

 

©2008 Aspen Research Group, Ltd. All rights reserved. Terms of Use.