@peterB@Justin I'm trying to create a single hotkey that lets me add 50% to my position and then re-sets my stop loss to the new breakeven spot. I have the hotkey for adding to my position, and I have the hotkey for setting my SL to b/e, but when I combine the two, it appears that the SL is set at the original b/e spot with the original number of shares, not accounting for the 50% add at a new price. I'm guessing it's because the stop loss part of the script is running before I can get filled on my 50% add.
Is there a way to add a minor delay between the add and the set SL to b/e so that my SL will be set to the new b/e once I get filled on the add?
Here's my current script to add 50% then set SL to the new B/E that puts my B/E at the original instead of new B/E spot:
CXL ALLSYMB;ROUTE=LIMIT;Price=Ask+0.02;Share=Pos*.5;TIF=DAY;BUY=Send;Route=Stop;Price=AvgCost;StopType=MARKET;STOPPRICE=AvgCost;StopPrice=Round2;Share=Pos-share;TIF=DAY;Send=Reverse;
Thanks!
EDIT: @Bryan W Hooked me up in the chat support tab! The hotkeys are:
CXL ALLSYMB;ROUTE=LIMIT;Price=Ask+0.02;Share=Pos*.5;TIF=DAY;BUY=Send;TriggerOrder=RT:STOP STOPTYPE:MARKET PX:StopPrice-0.3 ACT:SELL STOPPRICE:AvgCost QTY:Pos TIF:DAY+
CXL ALLSYMB;ROUTE=LIMIT;Price=Bid-0.02;Share=Pos*.5;TIF=DAY;SELL=Send;TriggerOrder=RT:STOP STOPTYPE:MARKET PX:StopPrice+0.3 ACT:BUY STOPPRICE:AvgCost QTY:Pos TIF:DAY+
BUT one caveat, if I exceed my BP, then not only does it not add to my position, but it doesn't keep a SL at b/e. If anyone knows how to edit the script so that I can't exceed BP, would love to hear your thoughts, including @KyleK29!