The Fibonacci  function fnDrawFibo is used to programatically draw a Fibonacci retracement on a price chart.


After the fnDrawFibo function has been added to a Drawing, it is configured by clicking the (+) button along the bottom of the Element.


The Function Configuration window allows you to select values for each parameter.



Parameter Name


Data type

Description

name

string

The name of the Fibonacci retracement.  All Fibonacci retracements are identified by name.  The name should be unique. The pull-down menu provides sample names, but the text can be overwritten to any allowable name.  The name must be surrounded by double quotes, for example "myName". Avoid using blank spaces in the name: It may cause unpredictable behaviour.

high

Double

The highest point of a Fibonacci retracement.

low

Double

The lowest point of a Fibonacci retracement

barsback

Integer

The number of bars back to begin the drawing of the Fibonacci retracement