Jump to content
Aiman

Most frequently used hotkeys

Recommended Posts

Hey guys. I am using kyle’s dynamic hot key and would like a hot key that will allow me to partial and keep the share size of my position consistent with my stop but NOT move the stop to break even. Can you share the script for that for both long and short positions?  Thank you 

Share this post


Link to post
Share on other sites

Hey @miktil

Totally possible! These hotkeys will sell 50%, update your stop loss to the new amount of shares, but not move it.

Long:

CXL ALLSYMB;Route=LIMIT;Share=Pos*0.5;Price=Bid-0.05;TIF=DAY+;SELL=Send;ROUTE=STOP;StopType=Market;StopPrice=StopPrice;Share=Pos-share;TIF=DAY+;SELL=SEND

Short:

CXL ALLSYMB;Route=LIMIT;Share=Pos*0.5;Price=Ask+0.05;TIF=DAY+;BUY=Send;ROUTE=STOP;StopType=Market;StopPrice=StopPrice;Share=Pos+share;TIF=DAY+;BUY=SEND

  • Thanks 1

Share this post


Link to post
Share on other sites

Hey guys is it possible to do two different range hotkeys :

1. it sells 20% -1R and +2R

2. it sells 80% -1R and +3R

forboth long and short 

idea is that i buy with hotkey and then hit nr.1 and then hotkey and nr.2  and thats it no more decisions...is it possible?

 

Share this post


Link to post
Share on other sites

Hi,

I notice the hotkeys mentioned in this forum for entering a trade are with a percentage of Buying power, or risk-oriented.

Is it also possible to create a hotkey for , let's say a $ 5,000 position? Example: I want to buy ROKu for max. $5,000. The hotkey divides $ 5,000 by the last price and rounds it down. $ 5,000 / $ 126.66 = 39.48. Pressing the hotkey will send an order for 39 shares. 

Or is this 'not done' and should I start getting used to work with risk-oriented size?

Thanks for your help.

Share this post


Link to post
Share on other sites
1 hour ago, Peter de Beir said:

Hi,

I notice the hotkeys mentioned in this forum for entering a trade are with a percentage of Buying power, or risk-oriented.

Is it also possible to create a hotkey for , let's say a $ 5,000 position? Example: I want to buy ROKu for max. $5,000. The hotkey divides $ 5,000 by the last price and rounds it down. $ 5,000 / $ 126.66 = 39.48. Pressing the hotkey will send an order for 39 shares. 

Or is this 'not done' and should I start getting used to work with risk-oriented size?

Thanks for your help.

Well you should always enter a trade with a position that is appropriate to your equity.

It doesn't really matter if the hotkey doesn't do the risk %, buying power, and stop loss calculations for you. If you know you can afford that many shares, can handle a mental stop loss if it goes against you, and you wont blow up your account.... then go for it.

But.... As a new trader and you have this amazing tool that can help you with all calculations, proper risk management, and helps protect your account from blow ups.... Sounds like a good thing to use to me 🙂

  • Thanks 1

Share this post


Link to post
Share on other sites
18 hours ago, Justin said:

Well you should always enter a trade with a position that is appropriate to your equity.

It doesn't really matter if the hotkey doesn't do the risk %, buying power, and stop loss calculations for you. If you know you can afford that many shares, can handle a mental stop loss if it goes against you, and you wont blow up your account.... then go for it.

But.... As a new trader and you have this amazing tool that can help you with all calculations, proper risk management, and helps protect your account from blow ups.... Sounds like a good thing to use to me 🙂

Thanks for your comment, Justin.

Yes,  I'd like to use this tool. But, as we say in the Netherlands: I can't see the forest, because of all the trees.

There is so much information! I know there is a succes webinar from Kyle about this tool, so I'll watch that one of these days.

My question for now is:

What is the script to buy a position worth $ 5.000? 

Is that something like:

ROUTE=SMRTL;Price=Ask;Share=5000/Price;TIF=DAY+;BUY=Send

I will try this tomorrow (in SIM of course 😉 )

 

Share this post


Link to post
Share on other sites

Hello,

I am currently using kyle's hot key for $20 risk for long and short.

Long - StopPrice=Price-0;DefShare=BP*0.925;Price=Ask-Price+0.00;SShare=20/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 - StopPrice=Price+0;DefShare=BP*0.925;Price=Price-Bid+0.00;SShare=20/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+

I have 2 questions -

1)

  1.   If i want to sell 50% (long), is it best to use,  ROUTE=SMRTL;Price=Bid-0.10 ;Share=Pos*0.5;TIF=DAY+;SELL=Send
  2.  For short 50% cover, is it best to use, ROUTE=SMRTL;Price=Ask+0.10;Share=Pos*.5;TIF=DAY+;BUY=Send

2) If i want to add my position (during pull back) but don't want to move my stop position ( in case of short and long), is it possible in hot keys? For example, i have $20 risk but i have added another entry and my risk becomes $40, i tried in SIM today it didn't work, can anyone help me out.

I saw, the above script that Justin mentioned, can you please give me a easy example to understand it better, sorry i am newbie and learning new things day by day.

@Justin shared,

Long:

CXL ALLSYMB;Route=LIMIT;Share=Pos*0.5;Price=Bid-0.05;TIF=DAY+;SELL=Send;ROUTE=STOP;StopType=Market;StopPrice=StopPrice;Share=Pos-share;TIF=DAY+;SELL=SEND

Short:

CXL ALLSYMB;Route=LIMIT;Share=Pos*0.5;Price=Ask+0.05;TIF=DAY+;BUY=Send;ROUTE=STOP;StopType=Market;StopPrice=StopPrice;Share=Pos+share;TIF=DAY+;BUY=SEND

 

Share this post


Link to post
Share on other sites
Posted (edited)
On 5/10/2020 at 6:34 AM, Peter de Beir said:

My question for now is:

What is the script to buy a position worth $ 5.000? 

Is that something like:

ROUTE=SMRTL;Price=Ask;Share=5000/Price;TIF=DAY+;BUY=Send

I will try this tomorrow (in SIM of course 😉 )

 

Hey Peter, sorry I missed this. Although I'm guessing by now you've got everything figured out?

On 6/1/2020 at 7:33 PM, Ranajit Chatterjee said:

1)

  1.   If i want to sell 50% (long), is it best to use,  ROUTE=SMRTL;Price=Bid-0.10 ;Share=Pos*0.5;TIF=DAY+;SELL=Send
  2.  For short 50% cover, is it best to use, ROUTE=SMRTL;Price=Ask+0.10;Share=Pos*.5;TIF=DAY+;BUY=Send

Hey Ranaji, these would indeed sell 50% of your long or short position. The only issue is, that if you have a stop loss set, it wont update it. So if you're long 120 shares, use your hotkey to partial 50%, you'll now have 60 shares remaining, but your stop loss will still say 120. And if the stock reverses and hits it, you'll be put into a short position 60 shares.

That is why I suggested the hotkeys you posted at the bottom of your message. The CXL ALLSYMB at the beginning of the hotkey will cancel any stop loss you have set, sell 50% of your position, and then reset a new stop loss (at break even) with the correct amount of remaining shares.

On 6/1/2020 at 7:33 PM, Ranajit Chatterjee said:

2) If i want to add my position (during pull back) but don't want to move my stop position

Can I ask why you don't want to move your stop position? If you add to your position your new average price is higher. So if the stock goes back to your original stop loss position you will be in the negative.

Edited by Justin
  • Like 1

Share this post


Link to post
Share on other sites

It looks like it happened to me as you have been mentioned for Issue 1). I will try it and let you know. Thanks for your help.

i understand Number 2) also, i was thinking differently and it was all wrong.

Thanks @Justin

Share this post


Link to post
Share on other sites

SO i'm trying to use the scripts provided for a stop at 20 dollar loss on long position hot key

StopPrice=Price-0;DefShare=BP*0.925;Price=Ask-Price+0.00;SShare=20/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+

 

But is not working. I'm suing the Das Pro 3 month simulator. Is there anything that I need to do different to get it to work. Also not sure if it makes a difference but I'm trying it on replay since I'm working night shift right now. Haven't tried on live trading yet.  It gives me an error saying "error: cant get valid price"

 

Any help will be really appreciated thanks. 

Share this post


Link to post
Share on other sites
11 hours ago, jero20 said:

SO i'm trying to use the scripts provided for a stop at 20 dollar loss on long position hot key

StopPrice=Price-0;DefShare=BP*0.925;Price=Ask-Price+0.00;SShare=20/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+

 

But is not working. I'm suing the Das Pro 3 month simulator. Is there anything that I need to do different to get it to work. Also not sure if it makes a difference but I'm trying it on replay since I'm working night shift right now. Haven't tried on live trading yet.  It gives me an error saying "error: cant get valid price"

 

Any help will be really appreciated thanks. 

Hey,

A couple things. First, with this script, before you hit the hotkey, you need to click on the chart where you want your stop loss to be. That might be why it's not getting a valid price.

Second you'll want to change your Route to "Limit" while in sim.

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

Share this post


Link to post
Share on other sites

Just as a general suggestion for those posting scripts in this thread, I recommend posting a link to the original thread you got your hotkey from ... a lot of these hotkeys have special instructions and won't work for all users (especially the ones I create, which are mainly Firm dependent). It'll save a lot of new users some headache trying to figure out a problem that may have already been answered. 

Plus, you're more likely to get help with a hotkey if you post the question in the related threads to them.

 

  • 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

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.