ShavenBottom

See Also...

Related Topics

 

 

Description

A shaven bottom is a candlestick with no lower shadow. This function determines whether a candlestick has a shaven bottom.

 

 

Formula

ShavenBottom(instrument, targetBar)=begin

  retval = FALSE

  cClose = GetPrice($1, BATE_CLOSE, targetBar, 0)

  cLow = GetPrice($1, BATE_LOW, targetBar, 0)

  cHigh = GetPrice($1, BATE_LOW, targetBar, 0)

  cOpen = GetPrice($1, BATE_OPEN, targetBar, 0)

  if BlackBody($1, targetBar) then begin

    if cLow == cClose then retval = TRUE

  end

  if WhiteBody($1, targetBar) then begin

    if cLow == cOpen then retval = TRUE

  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

TRUE or FALSE

 

 

Examples

Bozu(INPUT)=begin

  retval = NONUM

  targetBar = 0

  if ShavenTop($1, targetBar) AND
ShavenBottom($1, targetBar)
then begin

    if WhiteBody($1, targetBar) then retval =
'B'|clr_green|ftiny|vertical|arrow|below

    if BlackBody($1, targetBar) then retval =
'B'|clr_red|ftiny|vertical|arrow|above

  end

end

 

 

Comments

 

 

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