The fnGetFiboValue function is used to get the value of a Level of a Fibonacci retracement.


After the fnGetFiboValue 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.

level

LEVEL value (integer)

The Fibonacci retracement Level of which to to get the value. The available levels are:


  • FIB_LEVEL_0
  • FIB_LEVEL_21.6
  • FIB_LEVEL_38.2
  • FIB_LEVEL_50.0
  • FIB_LEVEL_61.8
  • FIB_LEVEL_100.0
  • FIB_LEVEL_161.8
  • FIB_LEVEL_261.8
  • FIB_LEVEL_423.6

dlevel

double

This can be any user-define percentage. For example: 25% is expressed as 25.0.


NOTE: If the dlevel parameter is set to any value besides 0, dlevel will be used to get the price and level will be ignored.