onlyjava 12 Posted September 12, 2024 (edited) https://dastrader.com/docs/how-do-i-use-hotkeys/ ------------------------------------------ BUY $25000 CXL ALLSYMB; ROUTE=LIMIT;TIF=DAY+;Price=ASK+0.10; Share=25000/Price;BUY=Send SHORT $25000 CXL ALLSYMB; ROUTE=LIMIT;TIF=DAY+;Price=Bid-0.10; Share=25000/Price;SELL=Send Above scripts contain the rule to limit the price to no more than 10 cents above the ASK. (Ask+0.10) or 10 cents below the BID (Bid-0.10). Adjust this as necessary. ----------------------------------------------- SELL 100% CXL ALLSYMB; ROUTE=LIMIT;Price=Bid-0.10; Share=Pos;TIF=DAY+;SELL=Send; COVER 100% CXL ALLSYMB;ROUTE=LIMIT;Price=Ask+0.10; Share=Pos;TIF=DAY+;BUY=Send; SELL 50% CXL ALLSYMB; ROUTE=LIMIT; Price=Bid-0.10; Share=Pos*.5;TIF=DAY+;SELL=Send; COVER 50% CXL ALLSYMB;ROUTE=LIMIT;Price=Ask+0.10; Share=Pos*.5;TIF=DAY+;BUY=Send; Above scripts contain the rule to limit the price to no more than 10 cents above the ASK. (Ask+0.10) or 10 cents below the BID (Bid-0.10). Adjust this as necessary. ----------------------------------------- BUY a position based on 30% of your available BUYING POWER. So if your current available BP is $100,000, 30% is $30,000. ROUTE=SMRTL;Price=Ask+0.05;Price=Round2;Share=BP*0.3;TIF=DAY+;BUY=Send BUY a position based on 10% of your BUYING POWER: ROUTE=SMRTL;Price=Ask+0.05;Price=Round2;Share=BP*0.1;TIF=DAY+;BUY=Send Above scripts contain the rule to limit the price to no more than 5 cents above the ASK. (Ask+0.05). Adjust this as necessary. https://dastrader.com/docs/how-do-i-check-the-required-bp-buying-power-for-an-order/ ----------------------------- EQUALIZED RISK HOTKEYS For Long Entries and a $10 risk, stop order attached, and Target order of 1:1 CXL ALLSYMB;StopPrice=Price-0;DefShare=BP*0.925;Price=Ask-Price+0.00;SShare=10/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=SMRTL;Price= Ask+0.05;TIF=DAY+;BUY=Send;DefShare=200;Price=Ask-StopPrice*1+Ask;TriggerOrder=RT:STOP STOPTYPE:RANGE LowPrice:StopPrice HighPrice:Price ACT:SELL QTY:POS TIF:DAY+ For Short Entries and a $10 risk, stop order attached, and Target order of 1:1 CXL ALLSYMB;StopPrice=Price+0;DefShare=BP*0.925;Price=Price-Bid+0.00;SShare=10/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=SMRTL;Price=Bid-0.05;TIF=DAY+;SELL=Send;DefShare=200;Price=StopPrice-Bid*1;Price=Bid-Price;TriggerOrder=RT:STOP STOPTYPE:RANGE LowPrice:Price HighPrice:StopPrice ACT:BUY QTY:POS TIF:DAY+ Edited September 12, 2024 by onlyjava Share this post Link to post Share on other sites
peterB 325 Posted September 13, 2024 so obsolete... Share this post Link to post Share on other sites