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.

bibekpillai

Cover and Selling Hotkeys not working!

Recommended Posts

bibekpillai

I recently came across an issue with covering and selling hotkeys. When I try to sell or buy a position during intraday trading, the order does not go through most of the time. I am a beginner (on DAS Simulator) and am trying to figure out why this may be a problem. I have posted my hotkey formulas below for you to check out. Let me know if there is an issue with them or if it is possible it could be another problem. Thank you.

SELL 25% - 
ROUTE=LIMIT;Share=Pos*0.25;TIF=DAY+;Price=Ask+0.05;SELL=Send;

SELL 100% - 

ROUTE=LIMIT;Share=Pos;TIF=DAY+;Price=Ask+0.05;SELL=Send;

COVER 25% - 

ROUTE=LIMIT;Price=Bid-0.05;Share=Pos*0.25;TIF=DAY+;BUY=Send;

COVER 100% - 

ROUTE=LIMIT;Price=Bid-0.05;Share=Pos;TIF=DAY+;BUY=Send;

Edited by bibekpillai

Share this post


Link to post
Share on other sites
johno53

As another newbie, I've had the same problem. I think it's just how the limit system works - it might or might not get to your price any time soon or might blow past it if things are moving fast. Having got myself into trouble several times, I found that the way to get the deal done STAT was to have one hot-key that sells the position at bid, and another one that buys / covers at Ask. Not very sophisticated and potentially costs a small amount if things are reasonably stable.

I'd be interested in what an experienced trader might suggest.

John.

Share this post


Link to post
Share on other sites
Justin
On 2/24/2021 at 10:26 AM, bibekpillai said:

Let me know if there is an issue with them or if it is possible it could be another problem. Thank you.

You're probably not getting filled every time because you're Selling on the ASK and Covering on the BID. The +/- you have in that script is doing nothing because the price can't be above the ask when long or below the bid when short. So unless the price is exactly at the bid or ask when you hit the hotkey, it wont go through. Basically you have them backwards.

Sell 25%

CXL ALLSYMB;Route=LIMIT;Share=Pos*0.25;Price=Bid-0.02;TIF=DAY+;SELL=Send

Cover 25%

CXL ALLSYMB;Route=LIMIT;Share=Pos*0.25;Price=Ask+0.02;TIF=DAY+;BUY=Send

 

  • Like 1

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.