Search the Community
Showing results for tags 'partial'.
Found 1 result
-
TLDR; please let me know if your partial hotkeys flip your positions or not. so i have been struggling with positions being opened (flipped) after i thought i would be stopped at break even for some time already. Months at least. so i searched on these forums and found this hotkey for partial i am using for years now for shorts Shift+4:COVER 50%:~ 163:CXL ALLSYMB;ROUTE=SMRTL;Price=ASK+0.05;Price=Round2;Share=Pos*0.5;TIF=DAY+;BUY=Send;ROUTE=STOP;StopType=Market;StopPrice=AvgCost;Share=Pos+share;TIF=DAY+;BUY=SEND for longs Alt+Shift+4:SELL 50%:~ 162:CXL ALLSYMB;ROUTE=SMRTL;Price=BID-0.05;Price=Round2;Share=Pos*.50;TIF=DAY;SELL=Send;ROUTE=STOP;StopType=Market;StopPrice=AvgCost;Share=Pos-share;TIF=DAY;SELL=SEND so if you search for the problematic part of the hotkey you get 30 results which i believe is wrong. let me explain CXL ALLSYMB;ROUTE=SMRTL;Price=ASK+0.05;Price=Round2;Share=Pos*0.5;TIF=DAY+;BUY=Send;ROUTE=STOP;StopType=Market;StopPrice=AvgCost;Share=Pos+share;TIF=DAY+;BUY=SEND real world example from DAS yesterday. i had 241 shares short on MARA 10:25:08,DASDebugLog,Sending new order from montage:BUY MARA 120 SMRT Limit 23.19 10:25:08,DASDebugLog,Sending new order from montage:BUY MARA 361 SMAT STOP Mkt 23.63 so lets do the counting Share=Pos*0.5 means 241*0.5 which is the first order which went through BUY MARA 120 SMRT Limit 23.19 because 241*0.5=120 (rounded) now the setting stop loss to break even part Share=Pos+share meaning 241+120 which is shown on the second order correctly as BUY MARA 361 instead of the desired BUY MARA 121 If we used Share=Pos-share for shorts it would be 241-120 whcih would result in the desired number of shares of 121 but it is explicitly stated so many times in the forums that it shall be Pos-share for covering shorts and Pos+share for selling Long positions Obviously DAS sends the 2 orders at the same time when the Pos variable is still the full position size. @KyleK29 @Justin so the problem seems to be the wrong expectations that the Pos-Share has to be changed for Pos+Share for the Covers but that is not correct because the Share=Pos-share is same both for longs and shorts because from my example i want to be the new stop in the size of 121 in both cases so i need to use the same Pos-share formula. and it is 15 times posted on the forums wrongly even by myself over the years Now tell me who has got the cover hotkey wrong?