I find some logic in EA will be a issue in MT5. It will cause EA can't set SL/TP well.
And I also write to Metaquotes they answer me
"EA vendors have to make sure that position modification is sent only when new position is opened in terminal Or send order with specified SL/TP, not order and then modify SL/TP"
Can you help me to check the reason, thank you.
Attachment 1.jpg added
Attachment 2020-03-12_5-25-55.jpg added
Status changed from New to In progress
we have also encountered the problem you describe here.
I have modified the MQL code so that SL and PT are set when creating the order. We will be testing this new approach and hopefully the problem will be solved in the upcoming build.
Best regards,
Tomas