The fnIsFiboLevelBroken function is used to determine if a price value has broken through a Fibonacci retracement level.


After the fnIsFiboLevelBroken 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 trend line.  All trend lines 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

type

FROM value (integer)

The direction from which the price value was broken. The pull-down menu offers these choices:

FROM_ABOVE : The price value broke the trend line from above the line.

FROM_BELOW :  The price value broke the trend line from below the line.

price


The price value that breaks through the Fibonacci retracement Level. The pull-down menu offers these choices:

PRICE_CLOSE

PRICE_OPEN

PRICE_HIGH

PRICE_LOW

PRICE_MEDIAN

PRICE_TYPICAL

PRICE_WEIGHTED

shift

integer

The candle index on the price chart of where to test if the trend line has been broken. Zero is the currently forming candle, one is one candle to the left, etc.