HAVING PROBLEM WITH CHECK DISTANCE MT5
-
AND ON THIS ONE THE EA TOOK A TRADE BUT USED THE PREVIOUS LINE IT DIDNT WAIT FOR BRAND NEW CROSSOVER OF PRICE AND EMA

-
Draw another 2 lines, one vertical & one horizontal that redraws when the 10 pip cross has happened. From this, you can see when it has placed a trade, this should line up with your original line, so you can visually check if a trade should have happened
-
OK I AM CONFUSED HOW WOULD I GO ABOUT MAKING THIS
-
To see what I mean create a test project doing this: When a condition says cross has happened, draw two lines, then on backtest you can pause, and see if all set conditions have happened.
-
SO U SAYING I SHOULD DO CONDITION BLOCK AND THEN I DO TWO DRAW LINE BLOCKS BELOW IT
-
Yes, you could also get it to print text on chart to give information
-
https://fxdreema.com/shared/BY6LXjLJd TESTED IT LIKE U SUGGESTED AND THE VERTICAL LINE DID NOT DRAW

-
I TRIED DOING THE VERTICAL LINE ALONE STILL DIDNT OPEN

-
WHERE I CIRCLED IN BLUE THE EA TOOK TRADE WITH NO CROSS OVER
-
Then that is your problem, you need to get a line drawing.
-
BUT THE HORIZONTAL LINE DRAWS YET THE SAME ERROR OCCURS SO WHAT SHOULD I DO THEN
-
AS YOU CAN REMEMBER MY PROBLEM WAS THE FACT THAT THE EA TAKES TRADES WHEN CONDITIONS ARE NOT MET LIKE THE LAST PICTURE I SEND
-
If a line is drawn when your condition is met but no other time, then your EA knows when your condition is right, so a trade created will only happen when it is correct. Hence why I said get it creating a line
-
I UNDERSTAD BUT THE PROBLEM IS THAT IT KEEPS TAKING WRONG TRADES I WANT TO UNDERSTAND WHY IT TAKES TRADES WHEN THERE ARE NO CONDITIONS
-
Wrong trades do not happen, wrong set up/logic can create them though
-
AND WATS WRONG WITH CURRENT LOGIC
-
Something if you are getting trades at the wrong time
-
IN YOUR PROFESSIONAL OPINION WAT COULD IT BE LIKE I SAID I AM NEW TO EAS AND FXDREEMA DONT UNDERSTAND THEM FULLY SO MAYBE I COULD HAVE GOTTEN SOMETHING WRONG
-
Something like this: https://fxdreema.com/shared/YjGrCWtZd
-
I TRIED LIKE YOU SUGGESTED WITH A FEW MODIFICATIONS AND IT DID THE SAME THING TOOK A BAD TRADE https://fxdreema.com/shared/Ofp5ln4wb