Positions will not be opened
-
Hello,
First Case
https://fxdreema.com/shared/X5DYohlab
I tried this today and in my tester at MT5, at any periode he will not open Trades. But why?Second Case
https://fxdreema.com/shared/ISlLFl1xb
But if i delete the close tree, it open the positions.Why it wont open the position in the first case and what should i edit to work it?
I want to open at the bullish macd divergence signal an buy position and want to close the position at the bearish macd divergence signal.
Or is it a bug ?
-
I got something in the first example. Do you have errors?

-
No. I don´t get any errors. i tried every symbol, every period but no errors.
-
so now i spend again some time with testing this ea and it seems to be a bug. sometimes he do trades and then he dont. i made a video of it. maybe you can then understand what my problem is.
positions will be opened arbitrarly. but i dont know why that happens.
i uploaded a screenrecord of that.that is the link to the video
-
It also happened to me - sometimes there are trades, sometimes not. And after I started investigating why, I started to have trades every single time. This is one of those weird things that MT5 do
-
It looks that when I download .mq5 file and compile it with MetaEditor (build 1940), it works every time. Only when I download it from the server it fails sometimes. So I uploaded build 1940 on the server, but for some reason it still doesn't work. The compiled files should be the same, but who knows. On the server I am using the command-line version of the compiler, maybe there are some differences.