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.

LouReed

"flatten" hot key script?

Recommended Posts

LouReed

I would like a hot key that will get me either partially or completely out of a position, no matter if I'm short or long, is that possible? 

Share this post


Link to post
Share on other sites
Bryan W
15 hours ago, LouReed said:

I would like a hot key that will get me either partially or completely out of a position, no matter if I'm short or long, is that possible? 

According to the DAS HotkeyCommands list, you should be able to make a script similar to something like this to execute it as a market order. Route=Market; Share=POS/2; SEND=Reverse;    to partial half or    Route=Market; Share=POS; SEND=Reverse;     to close position. Try these in SIM first! Also check out the hotkey section in the DAS FAQ page... There's a screen capture attached of the hotkey command document.

 

Screenshot 2020-11-09 083023.jpg

Share this post


Link to post
Share on other sites
LouReed

Perfect, thank you!  Got it figured it out, here are the scripts for both covering your positions and for making a stop by double clicking the price:

 

CXL ALLSYMB;ROUTE=MARKET;Share=Pos;TIF=DAY;Send=Reverse;ROUTE=MARKET;

CXL ALLSYMB;ROUTE=STOP;Price=Price;StopType=MARKET;STOPPRICE=Price;StopPrice=Price;Share=Pos;TIF=DAY;Send=Reverse;ROUTE=MARKET;

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.