Assuming you are not using MQL5 VPS service and running things on your own computer, then run two separate "terminals", each one logged in to a different account!
Create two installations of MetaTrader on separate folders, for each account!
If you use MQL5 VPS, you could save your chart and any indicators or EAs as a template for each trading account.
Then you can login into any of your account, load the appropriate template and migrate to your MQL5 VPS.
Each MQL5 VPS is for 1 trading account only, so you will need 2 for your two trading accounts.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.