SL triggers without any reason. Bug. Please advise.
-
Hello, I have this MQ4 file, that works fine but sometimes the SL triggers at 12:30GMT, and closes the trade without any reason. I cant figure out why?
I just used "BUY" amd "SELL" block, simple and easy. Nothing fancy. It jumps out at 12:30GMT
Anyone have any comments, I greatly appreciate it.
-
@vft No file is visible. Was it created with fxDreema?
-
Thank you for your reply. I don't know why the file didn't attach. But, Here it is. I try again. It looks like uploads are disabled! please see the link below it you can open it.
The goal of this expert is to enter a trade when it sees the current price candle close goes higher than the "Highest Price" between the hours of 24 to 8 GMT time. and vice versa for sell orders. The expert works but I notice that the program sometimes, randomly exits the trades at 12:30GMT and I don't know why. I didn't use any stop loss or stop or anything at 12:30GMT, it just closes the trade with profit or loss, at 12:30GMT.
https://drive.google.com/drive/folders/1JWg8OHIrwMBXQOsSykzP52cJ6txXextS?usp=sharing
-
@vft project screen->projects, create shared link->open in web page->copy and paste here
-
@jstap
Thank you for looking into it: -
-
@vft Firstly, you can remove both 'Pass' blocks. They are not necessary. Then the problem is on how you specify the moment those trades are closed. You should select a time filter block instead of those blocks. What do you exactly need?
-
@l-andorrà Thank you for your reply. This expert is set to do the following:
-
Enter the trade (long/short) when the current candle close passes the highest/lowest point of the certain timeframe of 24GMT to 8GMT
-
Exit the trade when it reaches the SL or TP or at 21:45 GMT.
simple. It is kinda like a London break strategy. Apparently it works fine for entering the trades. But as said, sometimes it closes the trade at 12:30 GMT.
-
-
@vft Then you need something like this.

-
Thank you very much. Just one last question, I forgot to say, I just want to do 1 trade per day.
How do I tell that to the expert? -
@vft Then you can use a 'once per day' block above both buy/sell now blocks.
-
Thank you,
One last thing about this expert, apparently the risk management is off!
Risk % (Percent) on equity doesn't work properly. I put 3% risk for 10000 equity and SL 150. So it should open the first lot from 2. But it opens from 0ot 2.46! Why this error is there?As you know, I change them in the Buy/Sell blocks,
-
@vft I replied to your other thread. Please don't duplicate threads.