Fib50

See Also...

Related Items

 

 

Description

This formula renders a horizontal line at 50% of the difference between the 52 week high and low.

 

 

Formula

Fib50(INPUT, Periods=262, Days=1)=begin

   thisHigh = FibHi($1, Periods, Days)

   thisLow = FibLo($1, Periods, Days)

   retval = Divide((thisHigh + thisLow), 2)

end

 

 

Parameters

INPUT

The INPUT directive makes this formula available as a Formula Overlay. INPUT refers to the instrument in the chart. INPUT does not become an overlay parameter.

 

Periods

This parameters specifies the number of bars to evaluate in determining the high price of a Fibonacci retracement. If the Days parameter is set to 1, this parameter represents daily bars. The default is 262, an approximate number of business days in a year.

 

Days

This formula calls the Chart() function. This parameter specifies the number of days per bar in the Chart() call. The default is 1, or 1 day.

 

 

Return Value

The price at the 50% level.

 

 

Examples

See Fibonacci.

 

 

Comments

NA

 

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