Percentage

See Also...

Related Topics

 

 

Description

This formula expresses the relationship between two numbers as a percentage.

 

 

Formula

percentage(numerator,denominator)=begin

  retval = (numerator/denominator)*100

end

 

 

Parameters

numerator

The number to be divided.

 

denominator

The divisor.

 

 

Return Value

A percentage

 

 

Examples

DojiForm(instrument, targetBar, RealBodyPercentage)=begin

  return = FALSE

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

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

  thisRange = Range($1, targetBar)

  thisDiff = abs(Diff(cOpen, cClose))

  thisPercentage = Percentage(thisDiff, thisRange)

  if thisPercentage < RealBodyPercentage then return = TRUE

  return

end

 

 

Comments

NA

 

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