Thanks. I will try to.
Something like:

Click to reveal..
int lock()
{
if( TradeIsOpen and TradePriceClose==Level )
TradeStopLimit = Level;
return 0;
}


What about using TradeTrailLock from that level if I did not define any trailing before? Is it enough just by writing Trail=0 ?