RealBodyHigh

See Also...

Related Topics

 

 

Description

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

 

 

Formula

RealBodyHigh(instrument, targetBar)=begin

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

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

  retval = cLast

  if cLast != cOpen then begin

    if BlackBody(instrument, targetBar) then retval = cOpen

  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 high.

 

 

Examples

...

  if cOpen < RealBodyHigh($1, (targetBar + 1)) AND cClose > cBase then begin

...

 

 

Comments

NA

 

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