Help me describe a piece of code. I want to tie the Fibonacci levels to the zigzag. The logic is simple, on the correction we enter into sales or purchases. We also look at the last movement of the zigzag. The problem is in the description of the zigzag extremes. The zigzag extreme is formed no more than once every five candles, and in my code everything is somehow crooked!
I ask for help in General who is not difficult to help!
here’s the code: for(int i=5;i<=20;i++)
if(High2 if((High2-Low1)*0.12 }
The pictures show the entry conditions.