Duplicate pending orders

 
Any code that can cycle through several buy stops or sell stops and detect duplicate pending orders then delete one of the duplicates?  Will be very grateful. Thank you
 
 
amarkal7: Any code that can cycle through several buy stops or sell stops and detect duplicate pending orders then delete one of the duplicates?
Same as your other post, fix your broken code.
You are trying to bolt on another tire to your flat tire instead of just replacing the flat - moronic.
Reason: