FindFibRetracement(ID, PeaksBack, BarsBack, Threshold, Trendsize);
ID - This function creates AFL variables. To be able to run this function many times without overwriting the previous variables, a prefix can be added to each
variable specified by ID.
PeakBack - Fibonacci retracements are calculated on peaks. This value specifies how many peaks to use for the search starting from the most recent.
BarsBack - This value specifies how many price bars to use for checking if the price has touched a fibonacci level.
Threshold - Percent value that determines if the price has touched a fibonacci level.
Trendsize - Percent change in price for this point to be considered a peak.
This indicator creates the following variables each of which will be prefixed by ID:
_fibStart - This specifies where the beginning of the pattern is.
_line0, _line236, _line382, line_50, line_618, _line100 - Specify the value of the fibonacci retracement in dollar terms. The number at the end of the variable name specifies which fibonacci retracement it is.