Hey Akos,
This is what you're looking for - It will move your stop loss to break even. Let me know if you don't want that for some reason though. You'll need to change the bolt parts to suit you; Route= for your own broker and the Share=Pos* for how much you want to scale out.
Short Scale Out 50%
CXL ALLSYMB;Route=LIMIT;Share=Pos*0.5;Price=Ask+0.05;TIF=DAY+;BUY=Send;ROUTE=STOP;StopType=Market;StopPrice=AvgCost;Share=Pos+share;TIF=DAY+;BUY=SEND
Long Scale Out 50%
CXL ALLSYMB;Route=LIMIT;Share=Pos*0.5;Price=Bid-0.05;TIF=DAY+;SELL=Send;ROUTE=STOP;StopType=Market;StopPrice=AvgCost;Share=Pos-share;TIF=DAY+;SELL=SEND