Is there any code using trailing stop with magic numbers?

 

Hello

I have code it for two positions (other is for hedging).

But I need trailing stop two position(one magic number) all.

Is there any code about trailing?

 
Look in the code base search (even google) for trade manager..