Need help to fix my Marty ea

 
Anyone know how to fix my Marty ea. I want to add function all order close when it reach the maximum op...
I have tried myselft add order close script.. But it's doesnt work..
 
joeymosk:
Anyone know how to fix my Marty ea. I want to add function all order close when it reach the maximum op...
I have tried myselft add order close script.. But it's doesnt work..
https://www.mql5.com/en/code
Reason: