Thor's Hot Button Scripts Please test all scripts in SIM before implementing to ensure there are no C&P errors. (These are originally scripted by Kyle and modified by me.) version 2.0 Modified 07/30/20 ------------------------------------- FREE ROLL + "Long" ------------------------------------------ CXL ALLSYMB;StopPrice = Price;Share=Price*100;Price=AvgCost;SShare=Price*100;Share=Share-SShare;Price=Share;Price=Share/100;Share=Pos * Price;Price=Ask-StopPrice;SShare=Share / Price;DefShare=BP*0.97;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;SShare=DefShare-SShare;Share=0.5*SShare;Price=Ask+0.05;TogSShare;TIF=DAY+;ROUTE=SMRTL;BUY=SEND;DefShare=10; TriggerOrder=RT:STOP STOPTYPE:MARKET PX:StopPrice ACT:SELL STOPPRICE:StopPrice QTY:Pos TIF:DAY+; ------------------------------------- FREE ROLL - "Short" ------------------------------------------ CXL ALLSYMB;StopPrice = Price;Share=Price*100;Price=AvgCost;SShare=Price*100;Share=Share-SShare;Price=Share;Price=Share/100;Share=Pos * Price;Price=StopPrice-Bid;SShare=Share / Price;DefShare=BP*0.97;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;SShare=DefShare-SShare;Share=0.5*SShare;Price=Bid-0.05;TogSShare;TIF=DAY+;ROUTE=SMRTL;SELL=SEND;DefShare=10; TriggerOrder=RT:STOP STOPTYPE:MARKET PX:StopPrice ACT:BUY STOPPRICE:StopPrice QTY:Pos TIF:DAY+; ------------------------------------- Sell 1/4 ------------------------------------------ ROUTE=SMRTM;Share=Pos*.25;Price=Bid-.01;TIF=DAY+;SELL=Send; ------------------------------------- Sell 1/2 ------------------------------------------ ROUTE=SMRTM;Share=Pos*.5;Price=Bid-.01;TIF=DAY+;SELL=Send; ------------------------------------- Sell All (Includes CXL ALLSYM; to remove any other orders with that ticker) ------------------------------------------ CXL ALLSYMB;ROUTE=SMRTM;Share=Pos;Price=Bid-.01;TIF=DAY+;SELL=Send; ------------------------------------- PANIC! (Closes all positions immediately) ------------------------------------------ PANIC; ROUTE=SMRTM; ------------------------------------- Cover 1/4 ------------------------------------------ ROUTE=SMRTM;Share=Pos*.25;Price=Ask+.01;TIF=DAY+;BUY=Send; ------------------------------------- Cover 1/2 ------------------------------------------ ROUTE=SMRTM;Share=Pos*.5;Price=Ask+.01;TIF=DAY+;BUY=Send; ------------------------------------- Cover All (Includes CXL ALLSYM; to remove any other orders with that ticker) ------------------------------------------ CXL ALLSYMB;ROUTE=SMRTM;Share=Pos;Price=Ask+.01;TIF=DAY+;BUY=Send; ------------------------------------- CXL Orders (Cancels any orders still pending for the selected ticker. Includes Limit, Market, or Stop) ---------------- CXL ALLSYMB;ROUTE=SMRTM; ------------------------------------- STOP B/E (Includes CXL ALLSYM; to remove any other orders with that ticker) ------------------------------------------ CXL ALLSYMB;ROUTE=STOP;Price=AvgCost;StopType=MARKET;STOPPRICE=AvgCost;StopPrice=Round2;Share=Pos;TIF=DAY+;Send=Reverse;ROUTE=SMRTM; ------------------------------------- Sell 10% (Includes CXL ALLSYM; to remove any other orders with that ticker) ------------------------------------------ CXL ALLSYMB;ROUTE=SMRTL;Price=Bid-0.02;Share=Pos*.1;TIF=DAY+;SELL=Send;ROUTE=SMRTM; ------------------------------------- Sell 20% (Includes CXL ALLSYM; to remove any other orders with that ticker) ------------------------------------------ CXL ALLSYMB;ROUTE=SMRTL;Price=Bid-0.02;Share=Pos*.2;TIF=DAY+;SELL=Send;ROUTE=SMRTM; ------------------------------------- Cover 10% ------------------------------------------ CXL ALLSYMB;ROUTE=SMRTL;Price=Ask+0.02;Share=Pos*.1;TIF=DAY;BUY=Send;ROUTE=SMRTM; ------------------------------------- Cover 20% ------------------------------------------ CXL ALLSYMB;ROUTE=SMRTL;Price=Ask+0.02;Share=Pos*.2;TIF=DAY;BUY=Send;ROUTE=SMRTM; ------------------------------------- Buy $20 ------------------------------------------ StopPrice=Price-0.01;DefShare=BP*0.97;Price=Ask-Price+0.01;SShare=20/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=400;TriggerOrder=RT:STOP STOPTYPE:MARKET PX:StopPrice-0.1 ACT:SELL STOPPRICE:StopPrice QTY:Pos TIF:DAY+; ------------------------------------- Buy $40 ------------------------------------------ StopPrice=Price-0.01;DefShare=BP*0.97;Price=Ask-Price+0.01;SShare=40/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=400;TriggerOrder=RT:STOP STOPTYPE:MARKET PX:StopPrice-0.1 ACT:SELL STOPPRICE:StopPrice QTY:Pos TIF:DAY+; ------------------------------------- Buy $80 ------------------------------------------ StopPrice=Price-0.01;DefShare=BP*0.97;Price=Ask-Price+0.01;SShare=80/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=400;TriggerOrder=RT:STOP STOPTYPE:MARKET PX:StopPrice-0.1 ACT:SELL STOPPRICE:StopPrice QTY:Pos TIF:DAY+; ------------------------------------- Buy $100 ------------------------------------------ StopPrice=Price-0.01;DefShare=BP*0.97;Price=Ask-Price+0.01;SShare=100/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=400;TriggerOrder=RT:STOP STOPTYPE:MARKET PX:StopPrice-0.1 ACT:SELL STOPPRICE:StopPrice QTY:Pos TIF:DAY+; ------------------------------------- Buy $150 ------------------------------------------ StopPrice=Price-0.01;DefShare=BP*0.97;Price=Ask-Price+0.01;SShare=150/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=400;TriggerOrder=RT:STOP STOPTYPE:MARKET PX:StopPrice-0.1 ACT:SELL STOPPRICE:StopPrice QTY:Pos TIF:DAY+; ------------------------------------- Short $20 ------------------------------------------ StopPrice=Price+0.01;DefShare=BP*0.97;Price=Price-Bid+0.01;SShare=20/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=LIMIT;Price=Bid-0.05;TIF=DAY+;SELL=Send;DefShare=400;TriggerOrder=RT:STOP STOPTYPE:MARKET PX:StopPrice+0.3 ACT:BUY STOPPRICE:StopPrice QTY:Pos TIF:DAY+; ------------------------------------- Short $40 ------------------------------------------ StopPrice=Price+0.01;DefShare=BP*0.97;Price=Price-Bid+0.01;SShare=40/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=LIMIT;Price=Bid-0.05;TIF=DAY+;SELL=Send;DefShare=400;TriggerOrder=RT:STOP STOPTYPE:MARKET PX:StopPrice+0.3 ACT:BUY STOPPRICE:StopPrice QTY:Pos TIF:DAY+; ------------------------------------- Short $80 ------------------------------------------ StopPrice=Price+0.01;DefShare=BP*0.97;Price=Price-Bid+0.01;SShare=80/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=LIMIT;Price=Bid-0.05;TIF=DAY+;SELL=Send;DefShare=400;TriggerOrder=RT:STOP STOPTYPE:MARKET PX:StopPrice+0.3 ACT:BUY STOPPRICE:StopPrice QTY:Pos TIF:DAY+; ------------------------------------- Short $100 ------------------------------------------ StopPrice=Price+0.01;DefShare=BP*0.97;Price=Price-Bid+0.01;SShare=100/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=LIMIT;Price=Bid-0.05;TIF=DAY+;SELL=Send;DefShare=400;TriggerOrder=RT:STOP STOPTYPE:MARKET PX:StopPrice+0.3 ACT:BUY STOPPRICE:StopPrice QTY:Pos TIF:DAY+; ------------------------------------- Short $150 ------------------------------------------ StopPrice=Price+0.01;DefShare=BP*0.97;Price=Price-Bid+0.01;SShare=150/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=LIMIT;Price=Bid-0.05;TIF=DAY+;SELL=Send;DefShare=400;TriggerOrder=RT:STOP STOPTYPE:MARKET PX:StopPrice+0.3 ACT:BUY STOPPRICE:StopPrice QTY:Pos TIF:DAY+; -------------------------------------| + Target 2/1 |------------------------------------------ CXL ALLSYMB;ROUTE=STOP;StopType=Range;LowPrice=Price;HighPrice=AvgCost-Price*2+AvgCost;Share=Pos;TIF=DAY+;SELL=Send;ROUTE=SMRTM; -------------------------------------| - Target 2/1 |------------------------------------------ CXL ALLSYMB;ROUTE=STOP;StopType=Range;HighPrice=Price;LowPrice=Price-AvgCost*2; LowPrice=AvgCost-LowPrice;Share=Pos;TIF=DAY+;Buy=Send -------------------------------------| Stop at Click |------------------------------------------ CXL ALLSYMB;StopPrice=Price; Share=Pos; Route=Stop; StopType=Market; TIF=Day+; Send=Reverse; -------------------------------------| Click to Trail + |------------------------------------------ CXL ALLSYMB;Share=Pos;ROUTE=STOP;StopType=Trailing;TrailPrice=Bid-Price; TIF=DAY+;SELL=Send; -------------------------------------| Click to Trail - |------------------------------------------ CXL ALLSYMB;Share=Pos;ROUTE=STOP;StopType=Trailing;TrailPrice=Price-Ask; TIF=DAY+;BUY=Send;