Jump to content
KyleK29

DAS - Dynamically Calculate Shares on %Risk or $Risk - Hot Key + Configuration, Updated 9/10/19, v2.1

Recommended Posts

well i am happy to help but if you do not tell what is wrong and what you are trying to do i just cannot guess...

anyway it would be best if you describe what hotkey you think you need and the hotkey script you use for that

Edited by peterB

Share this post


Link to post
Share on other sites

The effort Kyle has put into this hotkey is seriously amazing... the detailed instructions, examples, videos.. so damn good. Thank you Kyle!

As I tested out the fixed $risk hotkey (v2.1.2) on Das Pro v5.5.2.1,  I ran into Script: Invalid Operator error and removing "$" symbol from the risk amount and stop order distance fixed the issue.  Just posting in case someone runs into that.

 

Best,

-Sol

Share this post


Link to post
Share on other sites
On 11/15/2020 at 7:24 PM, mlmpty01 said:

Thanks for your quick response , i really appreciate it very much . I will double check and follow your suggestions above . Thanks 

On the fly, apart from Step 6 ( set up risk control with CMEG ,) i think i do have every thing in place, not 100% sure though . 

Attaching sample of my long and short scripts, maybe you could assist spot the missing parts or my mistake  

Long scripts
DefShare=BP*0.75;Share=Pos;SShare=Share *0.25;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=300;


StopPrice=Price-0.01;DefShare=BP*0.75;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=300;TriggerOrder=RT:STOP STOPTYPE:MARKET PX:StopPrice-0.02 ACT:SELL STOPPRICE:StopPrice QTY:Pos TIF:DAY+;

StopPrice=Price-0;DefShare=BP*0.925;Price=Ask-Price+0.00;SShare=50/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;TriggerOrder=RT:STOP STOPTYPE:MARKET PX:StopPrice-0.05 ACT:SELL STOPPRICE:StopPrice QTY:Pos TIF:DAY+;


Short scripts

StopPrice=Price+0.01;DefShare=BP*0.75;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=300;TriggerOrder=RT:STOP STOPTYPE:MARKET PX:StopPrice+0.02 ACT:BUY STOPPRICE:StopPrice QTY:Pos TIF:DAY+;

DefShare=BP*0.75;Share=Pos;SShare=Share *0.25;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=300;

StopPrice=Price+0;DefShare=BP*0.925;Price=Price-Bid+0.00;SShare=50/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;TriggerOrder=RT:STOP STOPTYPE:MARKET PX:StopPrice+0.05 ACT:BUY STOPPRICE:StopPrice QTY:Pos TIF:DAY+;

Please do advice should i miss something . Will send my hotkey script as well if still needed. Thanks 

 

On 11/15/2020 at 7:24 PM, mlmpty01 said:

Thanks for your quick response , i really appreciate it very much . I will double check and follow your suggestions above . Thanks 

On the fly, apart from Step 6 ( set up risk control with CMEG ,) i think i do have every thing in place, not 100% sure though . 

Attaching sample of my long and short scripts, maybe you could assist spot the missing parts or my mistake  

Long scripts
DefShare=BP*0.75;Share=Pos;SShare=Share *0.25;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=300;


StopPrice=Price-0.01;DefShare=BP*0.75;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=300;TriggerOrder=RT:STOP STOPTYPE:MARKET PX:StopPrice-0.02 ACT:SELL STOPPRICE:StopPrice QTY:Pos TIF:DAY+;

StopPrice=Price-0;DefShare=BP*0.925;Price=Ask-Price+0.00;SShare=50/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;TriggerOrder=RT:STOP STOPTYPE:MARKET PX:StopPrice-0.05 ACT:SELL STOPPRICE:StopPrice QTY:Pos TIF:DAY+;


Short scripts

StopPrice=Price+0.01;DefShare=BP*0.75;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=300;TriggerOrder=RT:STOP STOPTYPE:MARKET PX:StopPrice+0.02 ACT:BUY STOPPRICE:StopPrice QTY:Pos TIF:DAY+;

DefShare=BP*0.75;Share=Pos;SShare=Share *0.25;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=300;

StopPrice=Price+0;DefShare=BP*0.925;Price=Price-Bid+0.00;SShare=50/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;TriggerOrder=RT:STOP STOPTYPE:MARKET PX:StopPrice+0.05 ACT:BUY STOPPRICE:StopPrice QTY:Pos TIF:DAY+;

Please do advice should i miss something . Will send my hotkey script as well if still needed. Thanks 

Finally i got a break through . My hotkeys are working perfectly as expected . Many thanks to Kyle and all . 

Basically , i implemented all the suggestions in the forum , and it finally resolved my issue . Not sure exactly what did fix my issue but i know that my issue was not seen any longer when i have all these below 

Solution 

- Change route from  SMRTL-->  LIMIT 

-  Remove the Stop order distance  

Hope this simple fixes could save someone in the future from blowing up trading account .  

Share this post


Link to post
Share on other sites

Hi Kyle,

Is there a version of the dynamic hotkeys that will auto close the position once the target price for the reward is reached?

If it is already not in the script, then I think that is will be a high value add to that script..

If so, can you please consider including that into the hotkeys?

 

Thank you.

Share this post


Link to post
Share on other sites

Does anyone know if the Stop Orders attached to the Buy orders work in Replay mode in the Das Demo Simulator Version 5.5.2.1?  No stop orders are created. Montage Style is set to 'Stop'

Share this post


Link to post
Share on other sites

Hi Guys,

I just started using Kyle's Hotkeys, everything works except for the stop loss. When I double-click the chart and hit my hotkey the buy/sell order goes in but in doesn't send a stop loss. Does anyone have an idea why this is happening?

Share this post


Link to post
Share on other sites

check the das log in LOGs folder and post your hotkey shortcut

Share this post


Link to post
Share on other sites
9 hours ago, Diego Olivero said:

Hi Guys,

I just started using Kyle's Hotkeys, everything works except for the stop loss. When I double-click the chart and hit my hotkey the buy/sell order goes in but in doesn't send a stop loss. Does anyone have an idea why this is happening?

Solved!

The issue was that I didn't have the montage on "Stop Order" style

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • 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.