RealBodyLow

See Also...

Related Topics

 

 

Description

This function identifies the real body low. The real body low is the open on an up day and the close on a down day.

 

 

Formula

RealBodyLow(instrument, targetBar)=begin

  cLast = GetPrice(instrument, BATE_CLOSE, targetBar, 0)

  cOpen = GetPrice(instrument, BATE_OPEN, targetBar, 0)

  retval = cOpen

  if cLast != cOpen then begin

    if BlackBody(instrument, targetBar) then retval = cLast

  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 real body low.

 

 

Examples

...

  rbLow = RealBodyLow($1, targetBar)

...

 

 

Comments

NA

 

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