Jump to content

We have moved to Discord. Please click here to join us in the Trading Terminal Discord server.



These forums are read-only.

gmount

Hotkey help

Recommended Posts

gmount

I need the below script for Das Pro to have a short version and the ability to click-in the price. Any help would be appreciated!

ROUTE=LIMIT;Price=Ask+0.10;Share=100;TIF=DAY+;BUY=Send;TriggerOrder=RT:STOP STOPTYPE:RANGE LowPrice:AvgCost2-1 HighPrice:AvgCost2+2 ACT:SELL QTY:POS TIF:DAY+

Share this post


Link to post
Share on other sites
Bryan W

I'd highly suggest asking Kyle in the chatroom support tab, since I'm not exactly sure how to make a limit order using the double click to trade price in the box...

 

Share this post


Link to post
Share on other sites
KyleK29

Is this just an example script? Price=Ask+0.10; would overwrite the double-clicked price.   If you can post what your intended result for this script is, I can likely post something.

  • 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
gmount

Thanks Kyle...here are the two scripts I'm using.  My goal is to be able to place a trigger long or short that then places in a 2:1 R and a stop loss.

Long:

CXL ALLSYMB;StopPrice=Price-0;DefShare=BP*0.925;Price=Ask-Price+0.00;SShare=100/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;Price=Ask-StopPrice*1+Ask;TriggerOrder=RT:STOP STOPTYPE:RANGE LowPrice:StopPrice HighPrice:Price ACT:SELL QTY:POS TIF:DAY+

 

Short:

CXL ALLSYMB;StopPrice=Price+0;DefShare=BP*0.925;Price=Price-Bid+0.00;SShare=100/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;Price=StopPrice-Bid*2;Price=Bid-Price;TriggerOrder=RT:STOP STOPTYPE:RANGE LowPrice:Price HighPrice:StopPrice ACT:BUY QTY:POS TIF:DAY+

Share this post


Link to post
Share on other sites
gmount

Kyle...thought I might check back in...thanks!

 

Share this post


Link to post
Share on other sites
Justin

Sorry, I'm still a bit confused on exactly what you want to do. Are you trying enter into a position at the current price, with a fixed dollar amount, and set a range order where the low is your stop and the high price is 2R?

If so, this hotkey below simply requires you to double click where you want your stop, press the hokey and you'll be in at the ASK with the range order.

CXL ALLSYMB;StopPrice=Price-0;DefShare=BP*0.925;Price=Ask-Price+0.00;SShare=10/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;Price=Ask-StopPrice*2+Ask;TriggerOrder=RT:STOP STOPTYPE:RANGE LowPrice:StopPrice HighPrice:Price ACT:SELL QTY:POS TIF:DAY+

 

Share this post


Link to post
Share on other sites
gmount

Hi Justin...thanks for reaching out.  I'm attempting to try and take the to scripts and alter them from double clicking the stop to converting them to a trigger long or short at a price.  Once triggered then placing a stop loss at .10 and a 2:1 R.

Share this post


Link to post
Share on other sites
Justin

I'm sorry @gmount but you're just not being clear enough...

Forget about the scripts for a second. Is the goal is to:

  • Click a price
  • Hit the hotkey
  • It sets an open order at the clicked price
  • If that order is triggered, it enters your position
  • It also automatically sets a stop loss at .10 and an exit order at 2R

(You're saying 2:1 R, but I think you just mean 2R? If your price is $10, your stop is $9.90, 2R is $10.20)

Share this post


Link to post
Share on other sites
gmount

Yes correct, and yes I mean 2R...thanks

Share this post


Link to post
Share on other sites

[[Template core/front/global/mobileNavigation is throwing an error. This theme may be out of date. Run the support tool in the AdminCP to restore the default theme.]]

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.