Discussing the article: "Developing a Terminal Manager (Part 3): Getting Account Information and Adding Configuration"

 

Check out the new article: Developing a Terminal Manager (Part 3): Getting Account Information and Adding Configuration.

We are adding to our web application the ability to retrieve and display information about the terminal instances’ trading accounts, including balance, profit, connection status, and other important details. We will also implement a flexible configuration system that lets you manage application settings via an external JSON file, and improve the user interface of the main page.

Previously, we created three terminal instances and connected them to new demo accounts. To make it easier for us to distinguish between them, we chose different initial deposit amounts: $100,000, $200,000, and $300,000. When testing the terminal startup and shutdown processes, it did not matter to us whether any trading was taking place on them. Therefore, while we were working on the previous part, the balances of these demo accounts remained equal to their initial values. But now it is time to move on.

Now we will set up some Expert Advisors to run on these terminals so we can see the balance, profit, and equity values changing over time. That will certainly be more interesting than just watching trading accounts with no trades at all. We will run the Expert Advisors on different groups of symbols so that their results do not all look the same.

We will connect the fourth separate terminal to the same demo account as the first terminal. We will not install any Expert Advisor on it for now. This terminal will come in handy for further debugging the process of stopping and starting a terminal, so that we do not unnecessarily interfere with the terminals on which the Expert Advisors will be running.


Author: Yuriy Bykov

 
A brilliant and very useful project.
 
Thank you, Yuriy. A very interesting article. And useful content.... I’ll be putting something similar together myself in the context of forex arbitrage trading on MOEX, using two MT5 terminals from different brokers!
 

Initially, this will be a tool solely for monitoring terminals, with the ability to start and stop them. However, looking ahead, I see no obstacles to expanding its functionality to include the execution of trading operations. For example, it will be possible to issue a command to open a BUY EURUSD 1.00 position simultaneously across all accounts in a specified group. Or to close open positions directly from the browser on any monitored terminal.

But that’s not all. It will be possible to upload your own expert advisor via the browser (i.e. not from the Market) and issue a command to run it on the desired terminal, or conversely, to remove an expert advisor that is currently running. Admittedly, it is not yet clear how easy this will be to do, but I think we’ll sort it out in time.

There are also plans to display logs from all terminals in the browser, either separately or consolidated into a single log.

All in all, there’s plenty of scope to add more features here.