Close positions not working!
-
Now I realized that any close for money is not working if the order is opened (manually).
I created this project to demonstrate the many ways I tested closings, very basic thing, if the value is greater than 0.10 cents usd close the order, if it is more negative than -0.05 close the order as well.I tested it on a demo account and the (closing) is not working.
Loops in order. OK.
Finds the positive or negative value. OK
Close order, IT'S NOT WORKING! -
We have a similar bug, I posted yesterday. Also the the Metatester doesn't work with new projects. We are writing in the last post in bug reports
-
Should be fixed now
Thanks to the admin -
@fxpim I didn't understand. Are you stating that (already corrected)?
-
@ontradingx has verificado el numero magico , si tu bot tiene un numero magico  y cuando abres la operación esta no tiene un número mágico entonces no la va a cerrar prueba a eliminar el número mágico de tu bot de esta manera cerrara las operaciones que tenías abiertas antes del bot -
@alan-paredes2
in all my robots I use magic number. To understand where the problem is, make a simple robot that places tp and sl in any order opened manually or by any other robot, and then try to open an order and see if it will assign the tp and sl that you ordered to be placed automatically.. Another test, try to create a robot that closes the operation with 0.05 of profit, the order will not be closed, there are problems with several blocks in fxdreema and the owner is trying to solve it. -
@ontradingx yo uso esta y me funciona puedo modificar el tp de todas las ordenes, también puedo cerrar todas las ordenes con profit , también puedo modificar los tp de las ordenes con los botones abro las órdenes y en las ventanas puedo modificar el tp profit
-
@ontradingx al principio me daba problemas con los trade que tenía abiertos antes de poner el bot , me di cuenta de que estos TRADE no tenían número mágico por eso no los leía el bot , lo que hice fue que le quite el numero mágico a mi bot y de una vez los empezó a leer
-
@ontradingx el bloque de modificar tp lo hice asi ( on init ) 
en on tick coloco los bloques para modificar el tp se podría hacer igual para el take loss y en on chart 
por ultimo para evitar cualquier error le quito el numero magico -
@alan-paredes2
I believe that the administrator fixed it, I even see that some robots that I compiled just now are working again.
My robots are focused on mt5, I avoid using mt4. -
@fxdreema Close positions are not working properly. EMA crossovers are not closing the trades.
-
@waghule-aakash Take a look at my posts here: https://fxdreema.com/forum/topic/16070/is-there-a-code-error-going-on They are about the way you can tell me tha something doesn't work as expected.
I think I fixed the issues in this topic + some more that I found. But while fixing something, it's always possible to break something else (especially in MQL5), so I will make some more checks and upload what I did probably later or tomorrow.
-
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.Edit: Oops, I wrote this post in the wrong topic