Jump to content
KyleK29

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

Recommended Posts

Thank you so much for taking time to make this spread sheet. Im trying it out for the first time today!

  • Like 1

Share this post


Link to post
Share on other sites

Hi Kyle - Have you developed a hotkey that also put a range order 2:1 on the same time it calculates the sharesize based on $ or % risk?

Edited by ragy

Share this post


Link to post
Share on other sites

Once I move to CMEG, will this hotkey work for the new LAMP route? Do I have to adjust the hotkey in any way or could I use as is? The Beta 1.46 version works very well for me in the SIM so I'm just curious if it will be a smooth transition once I use CMEG.

Share this post


Link to post
Share on other sites

@James Kim I am using the hotkeys with CMEG and Lamp route, most importantly the route on the hotkeys should set to LIMIT

Share this post


Link to post
Share on other sites

Latest version (2.0) is up. See changelog in original post. Video is rendering and will be up today or tomorrow. The video came in around 45minutes to 1 hour, so I'll include timecodes to jump around. I try not to ramble, but I cover *a lot* of scenarios to try and simplify this as much as possible for people. I also included a voice-over trade of me using it that I recorded a few days ago so you can see my workflow and how I use it in everyday trading.

  • Like 3

---------------------------------------------------------
Profile / Project Pages (Dynamic Hotkeys, StreamDeck Files, and other contributions are located here)

Share this post


Link to post
Share on other sites

AWESOME.....thks man will be watching it as soon as u upload.   Many many thks....even b4 i watch it...Ur past work makes me have a high expectation.

Share this post


Link to post
Share on other sites

@KyleK29 thank you so much for all of your time and hard work to provide us with exceptional hotkeys! I've been using the previous version with my Stream Deck and find it very useful for entering and scaling trades. I look forward to the updated version and video presentation 👍.

Share this post


Link to post
Share on other sites
On 9/28/2018 at 2:37 PM, KyleK29 said:

What it is:

It's a hotkey command script that can be used to dynamically alter the share total based on:

  • Available Buying Power (capital)
  • Stop Location (Risk)
  • % Account Risk OR Fixed Dollar Amount

The script includes purchase power protection and won't send an order that you can not afford, it does this by calculating two factors:

A - Shares You Can Afford
B - Shares at Risk Parameter (e.g. $25,000 account equity, 1% risk = $250 risk, $250 * a stop distance of .10 = 2500 shares)
min{A,B} = 0.5(A + B - | A - B | ) 

 

Do you think one day you could do a youTube video tutorial and show how it actually works in real time?  Demonstrate the usefulness of this program?  That would be cool! 😉

Fantastic efforts and work here. 

Share this post


Link to post
Share on other sites

Videos are up, links in the original post up above. That took waaaay too much time.

On 8/9/2019 at 5:05 AM, SpoTT Trader said:

Do you think one day you could do a youTube video tutorial and show how it actually works in real time?  Demonstrate the usefulness of this program?  That would be cool! 😉

Fantastic efforts and work here. 

 

Yes, I had one trade where I happened to be recording during it. It's the part 3 video (trade example on SQ) - if you want a more walkthrough math breakdown, that's in Part 1. I'll probably do a few more here or there and add more videos to the series if I find certain scenarios that I think could be beneficial.

 

Edited by KyleK29
  • Like 1

---------------------------------------------------------
Profile / Project Pages (Dynamic Hotkeys, StreamDeck Files, and other contributions are located here)

Share this post


Link to post
Share on other sites
14 hours ago, Abiel said:

Damn I watched the "Cat tries to eat dog" video instead of the hotkeys video LOL! 

Thx @KyleK29!!

Ahhh yes, I uploaded it and totally forgot about it many years back. Left it for prosperity.

Fun fact about that cat, I got him from a professional boxer and he was an F1 Bengal w/ a gene that made him white w/ blue eyes. Cat dad was an asian leopard (it's a boxer thing). That cat was as close to a dog as you could get and every night he'd bounce on my dog, wrap around his neck, bite (thrashing his head) .. obviously it was an attempt at murder, but also very cute. He'd escort you on your walks, bark if meowing didn't work, and weighed around 19lbs. He was legitimately catnapped. I'm not making that last part up, someone took him when they moved.

DSC_0293 (Medium).JPG

Edited by KyleK29
  • Like 1

---------------------------------------------------------
Profile / Project Pages (Dynamic Hotkeys, StreamDeck Files, and other contributions are located here)

Share this post


Link to post
Share on other sites

hey Kyle,

 

Re-read the v2.0 and watched the videos a few days back. This weekend setting up SIM montage, computer issues last weekend. I have a few questions i need to bounce off u and some comments.

 

1. Move to BE fix...I saw this bug but was not sure if it was me not understanding.....thks man

 

2. Price target ... My targets are based on technical levels.  I changed mine to add $1.00 for LONGS or subtract $1.00 for SHORTS as a target place holder, coz I was trying to have an addition Hot button to update/REPLACE that High or Low price based on a double click at technical target level.  Have you played with REPLACE..ing a HIGHPRICE or a LOWPRICE ? I was unsuccessful and need ur input or thoughts. Do u think this is achievable ?  Once price has moved in my direction I double click and use the following to move stop and set $1.00 price holder.

;CXL ALLSYMB;Route=Stop;StopType=Range;LowPrice=Price;HighPrice=AvgCost+1;Share=Pos;TIF=DAY+;SELL=Send;

then I would like to REPLACE the HighPrice with a double click at technical S/R level.

 

3. Scale  out 100%......I noticed in v1.46 if I enter 1st trade with a R% then add another R% as a 2nd trade, when I scale out  100% it only scales the first trade, i.e. 1 X R% when I actually had 2 x R% in the position.

 

4. In ur video u talk abt easier way to config horizontal lines.......I have requested a  command line script from DAS so it easy to switch color/style of horizontal lines and fib lines and trend lines but maybe u can use ur connections also.  More ppl requesting they with increase the priority hopefully.

Thks

 

AM

 

 

Share this post


Link to post
Share on other sites
On 8/18/2019 at 8:16 AM, Alastair Mowatt said:

hey Kyle,

 

Re-read the v2.0 and watched the videos a few days back. This weekend setting up SIM montage, computer issues last weekend. I have a few questions i need to bounce off u and some comments.

 

1. Move to BE fix...I saw this bug but was not sure if it was me not understanding.....thks man

 

2. Price target ... My targets are based on technical levels.  I changed mine to add $1.00 for LONGS or subtract $1.00 for SHORTS as a target place holder, coz I was trying to have an addition Hot button to update/REPLACE that High or Low price based on a double click at technical target level.  Have you played with REPLACE..ing a HIGHPRICE or a LOWPRICE ? I was unsuccessful and need ur input or thoughts. Do u think this is achievable ?  Once price has moved in my direction I double click and use the following to move stop and set $1.00 price holder.

;CXL ALLSYMB;Route=Stop;StopType=Range;LowPrice=Price;HighPrice=AvgCost+1;Share=Pos;TIF=DAY+;SELL=Send;

then I would like to REPLACE the HighPrice with a double click at technical S/R level.

 

3. Scale  out 100%......I noticed in v1.46 if I enter 1st trade with a R% then add another R% as a 2nd trade, when I scale out  100% it only scales the first trade, i.e. 1 X R% when I actually had 2 x R% in the position.

 

4. In ur video u talk abt easier way to config horizontal lines.......I have requested a  command line script from DAS so it easy to switch color/style of horizontal lines and fib lines and trend lines but maybe u can use ur connections also.  More ppl requesting they with increase the priority hopefully.

Thks

 

AM

 

 

 

2. I'd have to play with it. For REPLACE orders, you have to double click the open order in the Orders window. This is because the montage clears the Order ID (OID, it's a hidden variable attached to the montage), double-clicking it will pass in the value.

I'll experiment with some things to see if I can figure out a hotkey example for you on that.

**EDIT**

I played with some. I don't think it's possible to use the double-click function because of how they have it implemented. When you double click the Range Order (sends it to montage) and then double-click on the chart, it sets the STOP to LIMIT .. when any of the routes change, they clear out the Price function. You can't push the price to HighPrice until it's set as a StopOrder (they have a block in place). If your hotkey switches it back to a STOP RANGE, it will then clear that price variable before you can copy it in. The problem is, there's no intermediary Float variable to store the double-clicked price that survives the route change function. I really wish they'd give us some user storage read/write variables to use to clean up a lot of this stuff.

A more manual approach is like this:

1) Go long on a position.
2) Send a 1:1 Range order with hotkey.
3) Double click the range order in Montage.
4) Manually adjust the HighPrice to where you want it and hit "REPLACE" button on hotkey.

 

3. Do you mean that when you hit a hotkey to sell 100% of your position, it only sells 50% of that position? Can you post the hotkeys? If I understand the sequence of events is [long for example] --> Go Long, Scale-In, Sell 100%. Or is this a Stop Order / Price Target hotkey?

4. Yes, I've requested it as well. Hopefully they add it, as it would be really useful.

Edited by KyleK29

---------------------------------------------------------
Profile / Project Pages (Dynamic Hotkeys, StreamDeck Files, and other contributions are located here)

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.