Correcting stop because of slippage and Modify line in the experts tab and Journal
-
Hi,
When I run my EA live, in a demo, I am seeing the journal 3 lines for each placed order that say:
06:57:02.435 Trades '1496304': deal #247838169 buy 1 ENQZ24 at 21966.50 done (based on order #268632533)
06:57:02.435 Trades '1496304': order #268632533 buy 1 / 1 ENQZ24 at 21966.50 done in 120633.523 ms
06:57:02.435 Trades '1496304': modify #268632533 buy 1 ENQZ24 sl: 21936.25, tp: 22020.25 -> sl: 21952.50, tp: 22036.50I also at the same time, sometimes not on every trade, see the experts tab show:
"Correcting stops because of slippage."
Is this something that my EA is doing? If so anyone know why and how/if I can change it?
Thanks!
-
FX bots don't automatically change stops because of slippage, add a shared link to see why.
-
@jstap Thanks for the help on this.
This is the part of the EA that does all the figuring of the lots size, stop size, tp size and the trailing stop and places the trades.
Thanks very much!
-
That's not the shared link: projects page - projects - create a shared link - open in web page - copy address bar - paste here
-
-
@jstap That's odd, dont know how that got pasted.
I have posted the correct link now.
https://fxdreema.com/shared/yzy6Gcasc
Thanks
-
You have a lot of blocks doing things, my guess is that this is caused by the for each trade loop, although it's not modifying a trade. Your best bet would be to complete a process of elimination test, switch blocks off and on while testing each time, then when this stops happening you will know the blocks causing it.
-
@jstap ok, I will give that a try.
Thanks