Fibonnaci

Fibonnaci
Description
Finds the high and the low of the last N bars and calculates 3 fibonnaci levels between them. Displays horizontal lines for these levels along with a horizontal line for the high and low.
Category
Others
Parameters
N ( Default: 100 Min: 1 Max: 100 )
Chart Script

A := HHV(H,N);
B := LLV(L,N);
HH:BackSet(IsLastBar,N)*A.LastData,Width2;
LL:BackSet(IsLastBar,N)*B.LastData,Width2;
Height := HH-LL;
A1 : LL+Height*0.382;
A2 : LL+Height*0.5;
A3 : LL+Height*0.618;
@SetTextVisible(HH,false);
@SetTextVisible(LL,false);
@SetTextVisible(A1,false);
@SetTextVisible(A2,false);
@SetTextVisible(A3,false);