Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 02/14/2022 in all areas

  1. 1 point
    If you've added to your trade and want to update your stop loss I have two scripts for you (they will also work whether you are long or short): Update Stop Shares - Moves to Breakeven: CXL ALLSYMB;Route=Stop;Price=AvgCost;StopType=MARKET;STOPPRICE=AvgCost;StopPrice=Round2;Share=Pos;TIF=DAY+;Send=Reverse; Update Stop Shares - Doesn't move stop: CXL ALLSYMB;Route=Stop;StopType=MARKET;STOPPRICE=STOPPRICE;StopPrice=Round2;Share=Pos;TIF=DAY+;Send=Reverse;
  2. 1 point
    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
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.