Here's a simple EA to sell 1 MNQ on 1 MT5 instance :So open 1 lot on both instances? then close one manuallyusing same magic number? I think magic number wouldn't exist for manual trades, it's EA specific.
I'm not sure how to replicate that with the EAs, unless you're talking about closing with a script using the same magic number.
I'm just going to use unique magic number for each EA on the platforms that shares teh same VPS, and just go from there.
This happened literally 1 day after I added that second instance of MT5 on the same vps. 2 months prior to going back to MT5, no issues.
I've looked at journal and expert tabs to see what the issue is. All three platforms executed the trades within ms of each other, they all had the same exact EA alerts/messages/everything in same order.
Drives me nuts. Can't be this damn complicated lol
Code:
long magic_number=12345;
#include <Trade\Trade.mqh>
CTrade m_trade; // trading object
int OnInit()
{
m_trade.SetExpertMagicNumber(magic_number);
m_trade.Sell(1,"MNQZ23",0,0,0);
return(INIT_SUCCEEDED);
}
void OnDeinit(const int reason)
{
}
void OnTick()
{
}
If you want to go the manual route, remember that all manual trades have magic number of 0.