manage trades via command line

 

Hi.

How can I manage positions or open/close positions via command line in MT4?


I found this link but didn't find what I want..

https://www.metatrader4.com/en/trading-platform/help/service/start_conf_file

Configuration at Startup - Tools - MetaTrader 4 Help
Configuration at Startup - Tools - MetaTrader 4 Help
  • www.metatrader4.com
The client terminal can be launched with some predefined settings. For this purpose, the configuration file name will be passed to the client terminal as a parameter. If the full path to the file (Drive:\SubDirectory\FileName) is not given, the file will be searched for in the client terminal's data folder. The configuration file contains...
 
vbigdeli:

How can I manage positions or open/close positions via command line in MT4?

I found this link but didn't find what I want..

https://www.metatrader4.com/en/trading-platform/help/service/start_conf_file

I seriously doubt you can.

But since you're able to send command line commands, nothing stops you from having an EA that reads those lines and carry out the trades... 

 
  1. vbigdeli: How can I manage positions or open/close positions via command line in MT4? I found this link but didn't find what I want..

    Why isn't "The Expert and/or Script Single-Launch Settings" not what you want?

  2. I think having an EA running and being able to give it multiple commands via a txt file would be a better solution than one command on terminal start.
Reason: