Jump to content
KyleK29

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

Recommended Posts

On 7/30/2020 at 5:00 PM, OTC said:

Kyle,

see quote: "As for configuring your own, it's quite easy. The Excel Configurator walks you through creating the entire script to how you want it, so scripting necessary (it's all dropdowns and selectors). It has some decent breakdowns and explanations as well. You just configure it, copy it, and paste it into DAS. There's also a bunch of other scripts on the Hotkey sheet of the workbook if you scroll down."

I looked through all the pages on this post and also searched(forum) for the Excel Configurator and did not see it, where do I locate this excel? You also stated that there a bunch of other hotkey scripts on the HK sheet of the workbook, are you referring to these being located on the same excel?

 

It's located in the first post under "Instructions for Configuration" section, there's a link at item #1.  I know the first post is rather dense, so it can be hard to see. And yes, everything is in that file.

 

1 hour ago, Jermaine Toves said:

Hey Kyle,

I am having a really difficult time with setting up my hot keys. I followed a BBT Youtube tutorial on your hot keys and watched your webinar but for some reason my keys are not working the way I thought they would.

One example: Long $100 Risk - 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=MARKET;Price= Ask+0.05;TIF=DAY+;BUY=Send;DefShare=200;TriggerOrder=RT:STOP STOPTYPE:MARKET PX:StopPrice-0.3 ACT:SELL STOPPRICE:StopPrice QTY:Pos TIF:DAY+;

When I tried this morning and yesterday morning I found that the stop loss order never showed up on the queue. What am I missing? Thank you for all your help and dedication on this. I've learned a ton already.

I would recommend changing the first route from "ROUTE=MARKET;" to "ROUTE=LIMIT;"  (not the one in the TriggerOrder portion). Also, are you in Replay Mode or Live Mode? TriggerOrders don't work in ReplayMode, so they won't show up. Setting it manually without a Trigger is only available in the beta versions of DAS as it was recently added. So in ReplayMode you won't get a Stop Order like you would trading live.

If this is occurring while you're trading live in SIM, let me know.

Edited by KyleK29
  • Like 2

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

Share this post


Link to post
Share on other sites

Hi Jermaine,

Have to change the montage style to specific type such as "stop order" . It is described in Kyle's troubleshooting guide. By default it is set to "default" style. I had the same issue. Then I read the troubleshooting guide.

Share this post


Link to post
Share on other sites
3 hours ago, Jermaine Toves said:

Hey Kyle,

I am having a really difficult time with setting up my hot keys. I followed a BBT Youtube tutorial on your hot keys and watched your webinar but for some reason my keys are not working the way I thought they would.

One example: Long $100 Risk - 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=MARKET;Price= Ask+0.05;TIF=DAY+;BUY=Send;DefShare=200;TriggerOrder=RT:STOP STOPTYPE:MARKET PX:StopPrice-0.3 ACT:SELL STOPPRICE:StopPrice QTY:Pos TIF:DAY+;

When I tried this morning and yesterday morning I found that the stop loss order never showed up on the queue. What am I missing? Thank you for all your help and dedication on this. I've learned a ton already.

Hi Jermaine,

Have to change the montage style to specific style such as "stop order" . It is described in Kyle's troubleshooting guide. By default it is set to "default" style. I had the same issue. Then I read the troubleshooting guide. Right click on the montage on the right side of the area where you enter the price

Share this post


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

Hi Jermaine,

Have to change the montage style to specific style such as "stop order" . It is described in Kyle's troubleshooting guide. By default it is set to "default" style. I had the same issue. Then I read the troubleshooting guide. Right click on the montage on the right side of the area where you enter the price

Thank you Alam! I think this was it. I didn't see that part to things and it does look the same as the Youtube video. Fingers crossed for tomorrow.

 

Cheers,

Share this post


Link to post
Share on other sites

I have asked Jason He from DAS...I have asked in the chatroom, under support and not and nothing has worked yet.

Issue: Key level target order not being bought (order set using default montage button).

Example: I have a long position and have X shares based on a dollar risk HK, I sell 25% of position with HK, then I set my breakeven HK stop-loss, but now I want to set a target order to sell X amount of shares at a key level so I type in the amount of shares in the montage and place a 'SHRT' order because 'SELL' is not available (this order is done using the default montage button), DAS_Jason tells me 'SELL' becomes 'SHRT' because I have two open orders in the open order window, one a BE stop and the other what I believe to be a range order, BUT the'SELL' button became 'SHRT' because the cumulative amount of shares in the open order window is a larger quantity then what my actual position is. (my actual position = 309, I want to sell 100 shares at 151.49 - order gets skipped so I sold with HK. If you sum up the open order shares they = 409, which is > my actual position).

Question: How do I set a partialing order at a key level using the montage without having to remove my stop-loss (in this case BE SL) or protection from the trade going opposite my position? or does it have to be another HK?

image.png.5891f78b145b9b70000053d20b040e5b.png

image.png.7a24095d032d08ae5c45921af0ded457.png

image.png.0635fc74debda450a2619388f8ae86b7.png

Share this post


Link to post
Share on other sites
14 minutes ago, Miklos Ekman said:

 

Hi Kyle, is there any video guide how to set this up? Im keep having errors coming up:(

 

 

On the first post there are 5 videos explaining how to set this up.

Share this post


Link to post
Share on other sites

Hi all,

Does anyone else have trouble using the "scale-in" risk HKs (see script below), such that it doesn't always work? (I do understand that one must have a "TRIGGER PRICE" value filled in on the active montage. But sometimes this HK works and sometimes it does not. Also, why does it contain 2 buy orders? what does that accomplish?

;CXL ALLSYMB;DefShare=BP*0.97;Price=Ask+0.02-StopPrice;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=100;TriggerOrder=RT:STOP STOPTYPE:MARKET PX:StopPrice+0.05 ACT:BUY STOPPRICE:StopPrice QTY:Pos TIF:DAY+;

Share this post


Link to post
Share on other sites
19 hours ago, OTC said:

Hi all,

Does anyone else have trouble using the "scale-in" risk HKs (see script below), such that it doesn't always work? (I do understand that one must have a "TRIGGER PRICE" value filled in on the active montage. But sometimes this HK works and sometimes it does not. Also, why does it contain 2 buy orders? what does that accomplish?

;CXL ALLSYMB;DefShare=BP*0.97;Price=Ask+0.02-StopPrice;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=100;TriggerOrder=RT:STOP STOPTYPE:MARKET PX:StopPrice+0.05 ACT:BUY STOPPRICE:StopPrice QTY:Pos TIF:DAY+;

 

Please refresh my memory, you're IBCO .. right? (if you're DAS SIM than you need to change the ROUTE=SMRTL; to ROUTE=LIMIT;) 

The scale-in hotkey only has one order, the other part of the script is a calculation (e.g. can I afford what I'm trying to add .. since your buying power is already tied up with the initial position, it's an import calculation to make).  The trigger price (StopPrice variable) can be what was initially used.  If it's not adding risk, it might because it's calculated that you can't afford that risk (not enough buying power). I'd have to see the Debug log to understand why it wouldn't work otherwise.

 

On 8/24/2020 at 11:07 AM, Miklos Ekman said:

 

Hi Kyle, is there any video guide how to set this up? Im keep having errors coming up:(

 

 

WilliamH also has some good ones on the BBT YouTube Channel, here: https://www.youtube.com/watch?v=0hw59cB60os

On 8/19/2020 at 3:04 PM, OTC said:

I have asked Jason He from DAS...I have asked in the chatroom, under support and not and nothing has worked yet.

Issue: Key level target order not being bought (order set using default montage button).

Example: I have a long position and have X shares based on a dollar risk HK, I sell 25% of position with HK, then I set my breakeven HK stop-loss, but now I want to set a target order to sell X amount of shares at a key level so I type in the amount of shares in the montage and place a 'SHRT' order because 'SELL' is not available (this order is done using the default montage button), DAS_Jason tells me 'SELL' becomes 'SHRT' because I have two open orders in the open order window, one a BE stop and the other what I believe to be a range order, BUT the'SELL' button became 'SHRT' because the cumulative amount of shares in the open order window is a larger quantity then what my actual position is. (my actual position = 309, I want to sell 100 shares at 151.49 - order gets skipped so I sold with HK. If you sum up the open order shares they = 409, which is > my actual position).

Question: How do I set a partialing order at a key level using the montage without having to remove my stop-loss (in this case BE SL) or protection from the trade going opposite my position? or does it have to be another HK?

image.png.5891f78b145b9b70000053d20b040e5b.png

image.png.7a24095d032d08ae5c45921af0ded457.png

image.png.0635fc74debda450a2619388f8ae86b7.png

You're setting a Stop Limit order for your partial. Partials should be standard Limit orders.  To input one manually, you'd double-click the chart where you want to place it (loads price into Price variable), make sure Route = SMRTL, enter the share total, and hit "SELL/SHRT" for a LONG, or "BUY" for a SHORT.

The name-change on the button is just a label, it doesn't affect the order type. What I think is happening is that your montage isn't properly resetting the route nor refreshing the UI, so you're setting it as a Stop Limit (unless you intended to use that).  Open Partial Limit's should show up as a different color on chart. 

 

 

To do this via hotkey .. 

 

LONG - 25% Out at Double-Clicked Location:

Route=LIMIT;Share=Pos*0.25;TIF=DAY+;SELL=Send


SHORT - 25% Out at Double-Clicked Location:

Route=LIMIT;Share=Pos*0.25;TIF=DAY+;BUY=Send

Usage:
1) Double-click the location you want to put the order.
2) Fire hotkey (with montage selected)
3) Open Order for 25% position should be created at that level. When the price hits, it'll trigger and sell 25% out.  Always remember to any open orders when your position goes flat.

 

 

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

@kyleK29

I am new to BBT and I watched William's video on hotkey setup. I have verified that my DAS Montage style is set to Stop Order; however, in the DAS simulator, using replay, the stop orders are not executing for either the long or short hotkey script. Any ideas why?

Edited by Richard Rutherford

Share this post


Link to post
Share on other sites
On 8/29/2020 at 11:38 AM, Richard Rutherford said:

@kyleK29

I am new to BBT and I watched William's video on hotkey setup. I have verified that my DAS Montage style is set to Stop Order; however, in the DAS simulator, using replay, the stop orders are not executing for either the long or short hotkey script. Any ideas why?

Stop orders dont work in replay mode.   Only limit and Market.  i believe they are going to fix it in a later version.  

Share this post


Link to post
Share on other sites
On 7/30/2020 at 5:13 PM, KyleK29 said:

Don't we all. I've been slowly nudging DAS to add some features that would help us manipulate stops (specifically) a tad easier via hotkeys. 

A & B: Unfortunately this doesn't exist in hotkey form and you have to do it manually by setting up the trigger orders, it's a bit of a pain in the rear to configure .. I don't even bother doing it unless I'm going to walk away from the terminal for a bit. This would require a video to explain and I have it on my list to do for the channel.

C : This is doable in the latest beta, but it's a complicated hotkey script. When that beta reaches everyone (goes to production), I'll add it to the Configuration Tool.

 

You can add a profit-target (there is a configurable version in the Excel sheet on the Hotkeys tab if you scroll down), right now I recommend doing it on a separate hotkey as I find that two primary orders can sometimes mess up the Trigger and / or the route sometimes. In the latest beta you can do this properly with a Trigger Order .. I'll add that to the configuration tool once those features reach everyone.

Hi kylek29, any news on this release that let you manage the profit target within the same hotkey?

thx

Share this post


Link to post
Share on other sites
41 minutes ago, given81 said:

Hi kylek29, any news on this release that let you manage the profit target within the same hotkey?

thx

actually just find this video on youtube 

 that maybe is useful for my needs (sl and profit target at the same time), but i'm trying the hotkey of the video (ROUTE=STOP;StopType=Range;LowPrice=Price;HighPrice=AvgCost-Price*2+AvgCost;Share=Pos;TIF=DAY+;SELL=Load ) and seems nothing happened...

 

anyone konws or use this hotkey?

 

thx

 

Share this post


Link to post
Share on other sites

This hotkey is amazing to say the least.. Hats off to Kyle and everyone else who contributed to this game changing script.

I would like to know if it would be possible for the script to take the VWAP or any moving average variable and and automatically calculate shares based on BP and amount risk and insert stop loss say at 1% under vwap or said moving average all with one click of a hotkey. I know you can do this by double clicking into the chart, I was just hoping to save a step...

 

Again, thank you for all you guys do for the trading/DAS community. Truly amazing.

Peter

Edited by pjjsfv

Share this post


Link to post
Share on other sites

hi Peter,

the double click method is much better than what you intend. It allows you to set the stop loss based on your selection rather than strictly following a moving average which is only a price and no pattern indicator. Setting stop loss 1% away from your doubleclick makes more sense than setting it from any other price indicator as the price can be extended from that moving average or the moving average not being a support/resistance area for that 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.