Anup Harshad Mistry / Publications
Forum
SellLimit Order being filled at worse price
Hi all Hope you are well. I've tried researching this question but have come up blank. I am creating an EA that sets Sell Limit orders in good time before the trade happens. However, in the demo account, the trade is being executed at a "worse" order price. E.g. If my order says to sell at 100, it
Increment date
Hi all Does anyone know a way to increment a date easily without having to create specific functions? I have tried searching the standard codebase but struggling to find anything. E.g. If today's date is "2022.11.18", I want to return a date of -1 day increment, e.g. "2022.11.17". It would be