Attention! distance between orders is not working.
-
@lanrayy said in Attention! distance between orders is not working.:
@fxDreema Please keep us updated when this issue is fixed.
It's more complicated than that.
Back in the day MQL4 was the preferred language, and to make things as similar as possible in both worlds (MQL4 and MQL5), I wrote all these missing Order***() functions for MQL5. In MQL4 these functions work for running orders (I call them trades), pending orders and history orders, and it's very easy to work with them. In MQL5 it's a horror story, there are positions, deals and orders (not the same as the orders in MQL4), and it's a whole adventure to make MQL5 to work like MQL4.
Now while I was fixing this issue I found another problem, and then I realized that I have to change the code in almost all Order***() functions. These functions are also the most important ones, and I'm testing how they work manually, which is not the best way of code testing.
-
@fxdreema Could you please check the Close Position and Trailing SL in MT5, since they are not working for the new project.
-
@fxdreema
Have you done any recent system updates that may have caused this issue? Can you tell us where you detected it and are you working to solve it? Maybe someone who has a lot of knowledge of mql4 and mql5 can help to resolve. -
@ontradingx Yes, there was a small update that caused this Close Position problem, and maybe other problems, I don't know. I reverted it today and at the moment the website should generate the same MQL5 as before.
Now I'm working locally to rewrite some MQL5 stuff. I also started making tests (small projects doing different things) to verify that some scenarios work as supposed, and also that they work the same way in MQL4 and MQL5. I want to test few more scenarios before uploading these changes, because if I don't, the chance is that something somewhere will break.
Otherwise I fixed some issues and I hope no other issues will appear, because doing something in MQL5 is really pain in the butt

-
@fxdreema Great of you to say this, but I don't know how you work with updates. Suggestion: When updating, let us know 1 or 2 days in advance so we can validate whether there have been changes for better or worse and give you time to return to the latest stable version. After this update many things in different locations are not working.
-
@ontradingx Most times the fix is relatively easy, in the past I fixed things many times like this - someone says that something is wrong and within minutes or hours I end up fixing it, without issues. This time I realized that the problem is a little bit bigger. Initially I made one small change only in one function, then I decided to revert it, and I had the impression that it was reverted, but today I checked (after another guy reported a problem in email) and it was not.
Sometimes there are issues that remain in the code for long periods of time. Here is a test I wrote today to check partial close in MQL5 (https://fxdreema.com/shared/SboRwS2Cb) and it fails. Maybe this worked in the past and started failing after some MQL5 update, I don't know. The idea of this project is to create a trade (position) and then close 50% of it on every 10 pips, meanwhile checking whether it does that correctly. For this to be successful, the position needs to be partially closed 4 times in distances of about 10-12 pips. By the way, if the cursor appears as hourglass, it's some bug coming from the project description, it's only cosmetic.
-
@fxdreema
We hope that you manage to solve this problem, it impacts countless projects. I'm tirelessly trying to come up with other ways to close trades and work with take profit and stop loss, but I realize that even these basic things don't work. -
@fxDreema
I just ran some tests and it's working again.
Are you working on this problem? Do you have any updates? -
@alan-paredes2 said in Attention! distance between orders is not working.:
@ambrogio ponlo negativo acá también (-20) you misunderstood what the problem is, there is a bug. The admin is working around it
-
@fxDreema ok admin, seems to work fine now, thanks
-
It seems that I wrote in the wrong topic, here I will post it again:
Updated. I also updated the MQL compilers. I did my tests, they all passed, in general I'm confident about these changes, but as usual I would expect some new bugs.
-
@fxdreema
Yes, I've been testing since Sunday night and everything is going well so far, I believe you've solved the problem.
Thank youuuu