Trade copier

 
I've been looking all over the forum and codebase for a local trade copier that closes the last trade before opening the next but only of the current type (buy or sell). Can someone point me to one if you are familiar or share code? Thank you
 
You can look at the Market - check this search link.
 
Sergey Golubev:
You can look at the Market - check this search link.

In my post I said I already did/tried this.

Reason: