Trouble with randomly deleting pending orders
-

-

-
The way I have it set should only delete pending orders when a trade is closed, but that is clearly not the case when backtesting. Periodically a seemingly random buy or sell pending order will be deleted.
This only began after I switched my trades money management from a "Fixed Volume" to "% Balance => Lots" I know this was the only thing I changed and I've even tried deleting the delete and close blocks and the same thing still happens.Any ideas?
-
@charlie-4 Can you please explain what the Ea is supposed to do and then share the link to the project. Otherwise we cannot provide an accurate answer.
-
after noticing the deletes get worse on a smaller time frame I tried going higher and they stop happening at the daily level. Still no idea why which is a little unnerving but as long as iti works.
The EA is basically a simple hedging strategy. As a position is opened an opposing buy/sell stop is placed encase the market reverses, this repeats until take profit is hit and all trades and open positions are closed. Simple as that. And it's working, except as you can see in the second picture sometimes buy/sell stops are deleted too early with no clear reason why. If it were happening properly then the delete would happen at the time of the take profit, but it's randomly happening early.
-
@charlie-4 Can you please share the link to the project to check it out?