Creating Demo Accounts and Activating/Deactivating Real Accounts using MQL5 ?

 

Hello fellow traders!


I'm currently exploring the possibilities of using MQL5 for account management in MetaTrader. I have a couple of questions regarding account operations, and I was wondering if anyone here could provide some insights:

  1. Is it possible to create a demo account/real accounts programmatically using MQL5?

  2. Can I use MQL5 to activate or deactivate real trading accounts?

I appreciate any guidance or examples you can provide. If you have any relevant resources or documentation, that would be great too.

 
No, and no. You need a broker to create or deactivate accounts of either type.
 

The website is dedicated to the MetaTrader client terminal and retail use of the platform.

What you want to do, belongs in the realm of the broker's side of things, which is not possible from a client terminal.