Fibonacci Highest and Lowest

 

Hello again

What is your best formula for finding fibonacci highs and lows.

I have this one that works for me but It draws from windowsfirstVisible bar.. What is the best formula you have found for these highs and lows?

int fibHigh = iHighest(Symbol(),Period(),MODE_HIGH,WindowFirstVisibleBar()-1,1);
int fibLow  = iLowest(Symbol(),Period(),MODE_LOW,WindowFirstVisibleBar()-1,1);
 
bonechair:

Hello again

What is your best formula for finding fibonacci highs and lows.

I have this one that works for me but It draws from windowsfirstVisible bar.. What is the best formula you have found for these highs and lows?


that is not what i can call fibonacci....

See Fibonacci Tools

zigzag with fibonacci retracement

fibonacci retracement

more info how to make it like this in topic

How to extract only the bottoms turnaround points extracted by the zigzag indicator?

 

Sure I have Function for that but what else is there?

double ZZ(string curr,int p)
{
   
   double P0, P1, P2, P3, P4, P5;
   int T0, T1, T2, T3, T4, T5;   

   int n, t = 0;
   while(n<6)
   {
     if(P0>0) {P5=P4; P4=P3; P3=P2; P2=P1; P1=P0; T5=T4; T4=T3; T3=T2; T2=T1; T1=T0; }
     P0=iCustom(Symbol(),0,"zigzag",ZZDepth,ZZDeviation,ZZBackstep,0,t);
     T0=t;
     if(P0>0) {n+=1; }
     t++;
   }
   
      if(P5>P4){     

         WindowRedraw();                

         ObjectCreate("XIT_FIBO",OBJ_FIBO,0, iTime(curr,p,T4), P4, iTime(curr, p, T5), P5);
  

      }
      if(P5<P4){
 
         WindowRedraw(); 

         ObjectCreate("XIT_FIBO",OBJ_FIBO,0, iTime(curr,p,T4), P4, iTime(curr, p, T5), P5);
      
      }
      
return(0);
}
Reason: