Hello There ;
I’ve developed an EA to one client when he sent me yesterday night very strange screenshot. The problem as the trading history shows “Live” , there were orders which had invalid take profit level " The TP was lower than order price for buy and the TP was Higher than open for sell" . This doesn’t make any sense. I know that it’s impossible to set invalid tp or so level and the order gets executed rather it will generate error i think 4050 INVALID STOPS. Though in my code i already handled this error to prevent usage of invalid stop level if the user inputs the wrong parameter, i don’t know how did this happen. For the first time, I see invalid TP levels get executed and MT doesn’t prevent it from sending. Could it be a problem in the code or which it could possibly be?