Partial exit depending on fibanacci levels.
This is my code. I want to partial exit on Fibonacci 38.2, 61.8 and 127.2%.
After TP1 partial close, my tp2 ant tp3 values becomes 0 and below if conditions becomes true because Bid> tp2 and tp3. But really Bid is < tp2 and tp3 and he have to wait while second condition would be true.
So, how to get tp2 and tp3 values from Fibonacci, that after first close order function they don't be zero?
Thank you.
This is my code. I want to partial exit on Fibonacci 38.2, 61.8 and 127.2%.
After TP1 partial close, my tp2 ant tp3 values becomes 0 and below if conditions becomes true because Bid> tp2 and tp3. But really Bid is < tp2 and tp3 and he have to wait while second condition would be true.
So, how to get tp2 and tp3 values from Fibonacci, that after first close order function they don't be zero?
Thank you.