Forum

1 Position with different trades sent from different EA and how to check each comments

Hi, I have two EA trade the same product , each EA sent a buy market order to the market with different comments (EA1BUY1, EA2BUY2) , however, MT5 combine my two trades as 1 position (netting mode) and if i am trying to find whats the comment of my position, it always return the latest trade comment

pending order magic number/comment

Hi, I have an EA which is sending 3 buy orders with different magic number/ comment, and what i want is the EA will not send out a new order if the pending orders already had the orders but when i use the code below, I wanna check if the existing orders have the comment of my orders so it wont send