Jump to content
KyleK29

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

Recommended Posts

9 hours ago, peterB said:

it all depends on your buying power so if your buying power is only $4000 that is your limit on the position size, not the risk.

OK so buying power comes into play here. Makes sense. In this scenario what can I do to better my 2-1 ratio? Lower my risk and strive for a 2 or more play?

Share this post


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

it all depends on your buying power so if your buying power is only $4000 that is your limit on the position size, not the risk.

Peter - My brother has this same issue. Buying power is not a problem here with a broker in the states. Risk for him is $50. Yet the same thing occurs for him.....

Share this post


Link to post
Share on other sites
22 hours ago, Jramosent said:

In this example here I shorted the stock in which I had a .16 cent win with a stop of .07 cents. A little more than 2 to 1 correct? I ended up making $13.60, Although my risk is always $20.... Maybe I'm doing something wrong here?

AMD Log.png

Hmm well if you shorted 85 shares, with a stop of 7 cents away, that's $5.95 risk, not $20. You may have the script set to $20 but as Peter pointed out you may be limited to your buying power...And to risk $20 with a 7 cent stop you would have needed to short ~285 shares of AMD (at that share price).

Hopefully this helps!

  • Like 1

Share this post


Link to post
Share on other sites
10 minutes ago, Jramosent said:

OK so buying power comes into play here. Makes sense. In this scenario what can I do to better my 2-1 ratio? Lower my risk and strive for a 2 or more play?

If it is buying power related, just focus on less expensive stocks and less risk. 

  • Like 1

Share this post


Link to post
Share on other sites

Hi Everyone!  

I'm not sure if this has been asked (or requested already).  I've tried searching but have come up empty.  I am using this hotkey successfully and love it!  Currently only taking on $30 risk per trade.  It would be great if I could modify it to automatically enter a range order (with the stop at the $30 risk level) with a target set at a 2 to 1 or 3 to 1 target.  Has anyone tried this and have an example?  

Regards,

Angel

Share this post


Link to post
Share on other sites
8 minutes ago, angelzen said:

Hi Everyone!  

I'm not sure if this has been asked (or requested already).  I've tried searching but have come up empty.  I am using this hotkey successfully and love it!  Currently only taking on $30 risk per trade.  It would be great if I could modify it to automatically enter a range order (with the stop at the $30 risk level) with a target set at a 2 to 1 or 3 to 1 target.  Has anyone tried this and have an example?  

Regards,

Angel

you can check this list that Aiman made, there are hotkeys you're looking for. 

 

Share this post


Link to post
Share on other sites
On 2/5/2020 at 2:32 PM, angelzen said:

Hi Everyone!  

I'm not sure if this has been asked (or requested already).  I've tried searching but have come up empty.  I am using this hotkey successfully and love it!  Currently only taking on $30 risk per trade.  It would be great if I could modify it to automatically enter a range order (with the stop at the $30 risk level) with a target set at a 2 to 1 or 3 to 1 target.  Has anyone tried this and have an example?  

Regards,

Angel

This is in Kyle's hotkey Excel sheet. It's near the bottom. Look for Range Orders.

Share this post


Link to post
Share on other sites
On 12/28/2019 at 12:21 PM, Jinagt said:

Kyle Thank You so much for this amazing hotkeys you created for the community. It improved my trading a lot.

I have a question is there any way you can add one more criteria to the existing hotkeys  that will allow you to buy or sell maximum 1000 shares with your buying power.

 

There's a built-in less known about hotkey for that called ShareCap. You could try to add it as ShareCap=1000;   at the beginning of your hotkey. Test in sim though, as I haven't tested it.

 

On 12/25/2019 at 1:08 PM, Marek Liyanage said:

Hi Kyle,

I love your scripts and started using them a few days ago  in SIM and expect to use them in my hot account some time soon. Great stuff!

Would it be possible to place limit orders at a user defined level using any other price entry fields to define a risk level?

I looked a little bit into this with the help of my son who has a little programming/scripting knowledge....since there's 2 price variables we need to define (risk, entry levels) to perform the calculations out idea was to store price in an intermediary field using a master hot key (e.g. risk level) and then using a second double-click for the entry price which would be used to perform the limit order at a user defined entry level. The problem he had with this was that while he could use the Share field as an intermediary it's not really practical because of the lack of INTEGER to FLOAT convertibility when moving that number back to the price field.

Not sure whether this makes sense....but that was the best we could come up with...maybe Kyle or someone else versed in scripting has some idea to get around this issue or has an independent way of defining such an order.

 

Thanks

 

Marek

 

It's very limited because of the user-accessible memory areas. In the Excel Configuration there's a couple that will put 1:1, 2:1, and 3:1 (etc.) price targets. DAS has indicated that they're willing to make changes to allow to us to do more of this natively. I'll add your request to the list I have going for their devs.

There's a few other methods you can do to get values in and out of DAS, but they're really complex and I would not recommend anyone using them. One way is to use a secondary program (you write it) and the OS's native clipboard (to pass data back/fourth). The other way is to search and replace the bytes in active RAM.

 

On 12/26/2019 at 9:09 PM, Jramosent said:

Kyle - I have a question regarding this hotkey. I have been using the script for a few months now and it works perfect. The concern I have is when I let the stock go to my stop loss (risk) $20, this is the exact amount I lose. The question is when I get my 2-1, I don't get a true $20 or even $40 reward. Why is this? I have let the stock run sometimes upwards of .40 cents where my risk is say only .12. I still don't get my actual risk to reward. 

 

On 12/27/2019 at 6:53 PM, Jramosent said:

In this example here I shorted the stock in which I had a .16 cent win with a stop of .07 cents. A little more than 2 to 1 correct? I ended up making $13.60, Although my risk is always $20.... Maybe I'm doing something wrong here?

AMD Log.png

 

On 12/28/2019 at 5:15 PM, Brendon said:

Hmm well if you shorted 85 shares, with a stop of 7 cents away, that's $5.95 risk, not $20. You may have the script set to $20 but as Peter pointed out you may be limited to your buying power...And to risk $20 with a 7 cent stop you would have needed to short ~285 shares of AMD (at that share price).

Hopefully this helps!

Are you with IBCO and was this during a LIVE trade? I believe IBCO on the short side does 3:1 margin, not 4:1. So if you use the 4:1 margin hotkeys with them when short (and live), it'll calculate your Buying Power incorrectly.

As Brandon said, this is usually caused by Buying Power. His math is correct, you weren't able to take the full $20 risk on this and ended up with a much lesser risk, but still ~2:1 return. My guess is the problem exists in the first part of the hotkey config where it does the BP/equity calculations.

 

If you didn't generate your own hotkeys via the Excel Configuration sheet, I highly recommend you do that. The ones people copy and paste aren't setup for everyone, they're specific to the person who created them (and their account variables, such as their margin-ratio which can different from broker to broker). I'd say 90% of the math issues come from this fact.

 

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
On 2/9/2020 at 10:54 AM, KyleK29 said:

 

There's a built-in less known about hotkey for that called ShareCap. You could try to add it as ShareCap=1000;   at the beginning of your hotkey. Test in sim though, as I haven't tested it.

 

 

It's very limited because of the user-accessible memory areas. In the Excel Configuration there's a couple that will put 1:1, 2:1, and 3:1 (etc.) price targets. DAS has indicated that they're willing to make changes to allow to us to do more of this natively. I'll add your request to the list I have going for their devs.

There's a few other methods you can do to get values in and out of DAS, but they're really complex and I would not recommend anyone using them. One way is to use a secondary program (you write it) and the OS's native clipboard (to pass data back/fourth). The other way is to search and replace the bytes in active RAM.

 

 

 

Are you with IBCO and was this during a LIVE trade? I believe IBCO on the short side does 3:1 margin, not 4:1. So if you use the 4:1 margin hotkeys with them when short (and live), it'll calculate your Buying Power incorrectly.

As Brandon said, this is usually caused by Buying Power. His math is correct, you weren't able to take the full $20 risk on this and ended up with a much lesser risk, but still ~2:1 return. My guess is the problem exists in the first part of the hotkey config where it does the BP/equity calculations.

 

If you didn't generate your own hotkeys via the Excel Configuration sheet, I highly recommend you do that. The ones people copy and paste aren't setup for everyone, they're specific to the person who created them (and their account variables, such as their margin-ratio which can different from broker to broker). I'd say 90% of the math issues come from this fact.

 

Hi Kyle,

thanks for taking up my suggestion w DAS, I sent you a msg with my details. Be great if we could get in touch via DM.

 

Also, looking into coding using Python for some other trading applications so was looking for some book recommendations. Found these here:

 

https://www.amazon.com/Trading-Evolved-Anyone-Killer-Strategies/dp/109198378X/ref=sr_1_3?keywords=python+for+trading&qid=1581856373&sr=8-3

 

https://www.amazon.com/Python-Finance-Mastering-Data-Driven/dp/1492024333/ref=pd_sbs_14_3/139-9150770-5980502?_encoding=UTF8&pd_rd_i=1492024333&pd_rd_r=10db0b40-b318-4610-bba3-3e5078914712&pd_rd_w=IZTze&pd_rd_wg=bd3CC&pf_rd_p=7cd8f929-4345-4bf2-a554-7d7588b3dd5f&pf_rd_r=FTAYSA7NS8WFHZZRG2DM&psc=1&refRID=FTAYSA7NS8WFHZZRG2DM

Thanks

Marek

Share this post


Link to post
Share on other sites

Kyle, 

The work you have put in Amazing. Thank you! 

I am having trouble with the setup. Wan't to make a quick hundred bucks via PayPal? If you'd be interested I would love to watch you set this up in my DAS while using TeamViewer. 

It would be helpful to me as I could get the hotkeys right away and learn how to set them up and modify them by watching you ad them to my trade station.

  • Haha 1

Share this post


Link to post
Share on other sites
5 hours ago, Atomspapa said:

Kyle, 

The work you have put in Amazing. Thank you! 

I am having trouble with the setup. Wan't to make a quick hundred bucks via PayPal? If you'd be interested I would love to watch you set this up in my DAS while using TeamViewer. 

It would be helpful to me as I could get the hotkeys right away and learn how to set them up and modify them by watching you ad them to my trade station.

try watching this one, might help 

 

also videos from Kyle himself in more detail 

 

  • Like 1
  • Thanks 1

Share this post


Link to post
Share on other sites

Just read this entire thread preparing for the HotKeyKyle Success Webinar.

Cant wait to try these next week. They look amazing.


If you don’t have a mountain to climb, find one.

Share this post


Link to post
Share on other sites

I’m sure if I searched I could find the answer somewhere in this forum, but my eyes are tired. 
I can make a separate HotKeys  file for these new ones and still keep my regular HotKeys in a different file right?

So I could use my normal file live, and Kyle file in sim. I just have to save my old ones somewhere before I delete them and replace with Kyles. Correct?


If you don’t have a mountain to climb, find one.

Share this post


Link to post
Share on other sites

Do you have a script that will work with the 1besttrader competition? They have a restriction of 100,000 bp to start and you can't have more than 50,000 in any one stock.

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.