ManualTradeOnStrategyTester - MetaTrader 5 Expert

This is a possible and simple way to link manual orders for use by the strategy tester. Most of us know that ChartEvent does not work on the strategy tester, and the simplest objects - or should I say the only objects that can be placed on the strategy tester (using basic MQL5 code at this time) are "labels" and "buttons". For labels, there's no problem attaching it, but for buttons...even if you manage to get it into a tester, you won't be able to detect its clicked or unclicked state without using advanced programming and linking it to other systems.
Part of the trick I use to achieve this is to use a simple file detection process. Think of this EA as an independent receiver, on every price move the EA constantly checks the folder for files that can trigger an order. If the required text file is detected in a specific folder location, the EA will execute the command to process the order and subsequently delete the file. Therefore, the presence of a certain file in a folder location is the main trigger for executing a transaction.
You can now command the EA to execute orders in any way you can think of, just by placing a specific file in a folder location.
In this EA, a simple "buy.txt", "sell.txt" or "close.txt" file name in the "...\Common\Files\" folder location of MetaTrader 5 will trigger a command to execute a specific order based on the file name. The text file is empty, what matters is the filename and its presence in the folder. These files should appear once at
Another external application you need now is an application that creates or serves the required text file on said folder or you can simply find a way to transfer the mentioned file name at the destination folder location. I made mine in Visual Basic and I'd be happy to share it, but I doubt the site will allow me to upload an executable file here, so it would be better to create or find such a file myself, in any possible way you can think of, just put the command text file in the correct folder. Check out the discussion board at the bottom where I will post how I made the panel.

suggestion:
Attachment download
📎 strategytesterpracticetrade.mq5 (13.75 KB)
Source: MQL5 #14535
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •