Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 09/16/2023 in all areas

  1. 1 point
    So I have to give credit to @KyleK29 for helping me a few mornings just before the open to get these working. Thank you so much Kyle for helping me along. At the time of writing this I'm using Das Trader Pro version 5.6.4.11 I'm a dad with 3 little kids. I'm still in paper trading phase and I don't feel like I get enough practice during the opening before I have to get the kids ready for school. So the replay mode is key for me to be able to continue my practice after hours. These scripts are a mod on the scripts provided in this post I am mainly using the % scripts but I also made this work for $40 R entry. Explanation Original 20% Long Script (Stop only works during open market) StopPrice=Price-0.01;DefShare=BP*0.97;Share=DefShare*0.25*Price*0.002;Price=Ask-Price+0.01;SShare=Share/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=LIMIT;Price= Ask+0.05;TIF=DAY+;BUY=Send;DefShare=400;TriggerOrder=RT:STOP STOPTYPE:MARKET PX:StopPrice-0.3 ACT:SELL STOPPRICE:StopPrice QTY:Pos TIF:DAY+; The part that needed to change was at the end where DefShare=400 So we replaced this... DefShare=400;TriggerOrder=RT:STOP STOPTYPE:MARKET PX:StopPrice-0.3 ACT:SELL STOPPRICE:StopPrice QTY:Pos TIF:DAY+; With this... DefShare=Share; Route=Stop; StopType=Market; Share=DefShare; TIF=DAY; SELL=Send; DefShare=10; And presto! Stop orders now work in replay mode. Here's the Short version DefShare=Share; Route=Stop; StopType=Market; Share=DefShare; TIF=DAY; BUY=Send; DefShare=10; Here are the scripts I'm using KEEP IN MIND THESE ONLY WORK IN REPLAY MODE!! DO NOT USE THESE FOR LIVE TRADING!! I ACTUALLY DON'T KNOW WHAT WILL HAPPEN BUT KYLE WARNED ME! LONG 20% StopPrice=Price-0.01;DefShare=BP*0.97;Share=DefShare*0.25*Price*0.002;Price=Ask-Price+0.01;SShare=Share/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=LIMIT;Price= Ask+0.05;TIF=DAY+;BUY=Send;DefShare=Share; Route=Stop; StopType=Market; Share=DefShare; TIF=DAY; SELL=Send; DefShare=10; 50% StopPrice=Price-0.01;DefShare=BP*0.97;Share=DefShare*0.25*Price*0.005;Price=Ask-Price+0.01;SShare=Share/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=LIMIT;Price= Ask+0.05;TIF=DAY+;BUY=Send;DefShare=Share; Route=Stop; StopType=Market; Share=DefShare; TIF=DAY; SELL=Send; DefShare=10; 100% StopPrice=Price-0.01;DefShare=BP*0.97;Share=DefShare*0.25*Price*0.001;Price=Ask-Price+0.01;SShare=Share/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=LIMIT;Price= Ask+0.05;TIF=DAY+;BUY=Send;DefShare=Share; Route=Stop; StopType=Market; Share=DefShare; TIF=DAY; SELL=Send; DefShare=10; $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=LIMIT;Price= Ask+0.05;TIF=DAY+;BUY=Send;DefShare=Share; Route=Stop; StopType=Market; Share=DefShare; TIF=DAY; SELL=Send; DefShare=10; SHORT 20% StopPrice=Price+0.01;DefShare=BP*0.97;Share=DefShare*0.25*Price*0.002;Price=Price-Bid+0.01;SShare=Share/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=Share; Route=Stop; StopType=Market; Share=DefShare; TIF=DAY; BUY=Send; DefShare=10; 50% StopPrice=Price+0.01;DefShare=BP*0.97;Share=DefShare*0.25*Price*0.005;Price=Price-Bid+0.01;SShare=Share/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=Share; Route=Stop; StopType=Market; Share=DefShare; TIF=DAY; BUY=Send; DefShare=10; 100% StopPrice=Price+0.01;DefShare=BP*0.97;Share=DefShare*0.25*Price*0.001;Price=Price-Bid+0.01;SShare=Share/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=Share; Route=Stop; StopType=Market; Share=DefShare; TIF=DAY; BUY=Send; DefShare=10; $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=Share; Route=Stop; StopType=Market; Share=DefShare; TIF=DAY; BUY=Send; I hope this helps someone! Please let me know if you have any question, tips or suggestions!
×
×
  • 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.