Script "When have one order to close"

 

hello, everybody !!!

I have a script, It send a order buy at market and 2 order buy limit.

I want to add to this script, "When have one order to close then all order will automatic close"

How?

Thank for Your help

Files:
giang.mq4  2 kb
 
Google for "mql4.com" Order Cancel Order. Find it in the code base and modify it to suit your needs.
Reason: