check distance module
-
I cant get the check distance block to work as intended.
I use the ZigZag indicator to place a pending order at "ZigZag Low ID 1", but I want the distance between the current price and "ZigZag Low ID 1" to be X or more pips before placing the order.
The EA does not open any pending orders with this block active. Can anyone spot what I am doing wrong?

-
@piptheripper Please share your project so that we can help you.
-
@piptheripper Personally I find using blue blocks above blue blocks doesn't work too well. Put the second blue blocks separate and put a set flag true under orange, put a set flag false under yellow, put a check flag true above buy/sell and all should work.
-
Here is a link to the project https://fxdreema.com/shared/6zzw4OjQc
-
@jstap Never worked with flags before. I tried to do like this https://fxdreema.com/shared/VU9OTd7W but also doesn't work. You see what I do wrong?

-
@piptheripper that is correct, just add a false flag from the yellow check distance, this will stop trades when incorrect distance, but allow when correct.
-
Thank you so much for your help! However, I still cannot get the EA to open any orders. If I put a negative number as the value in the "check distance" block, the EA opens orders, but does of course open orders no mater the distance to "zigzag low ID 1".. I relly do not understand why. Do you see what is going on? https://fxdreema.com/shared/Gjv12yhhd
-
I'm assuming that the value in the "check distance" block is measured in pips. Is this incorrect?

-
feeling pretty dumb:/ just noticed I hadn't changed the value from numeric to pips:)))) THANK YOU FOR ALL YOUR HELP @jstap . Working with flags opens new possibilities I was not aware of!
-
@piptheripper Don't worry about it, we all have these moments and there is lots of options in FX to deal with. Glad I helped