Jump to content

Recommended Posts

I have my regular hot keys for live trading and then I have (shift+z) to buy 100 shares in sim, (shift+x) to sell 100 shares in sim.  I was trading the after-market earnings with sim for fun and accidently hit my "sell full position" live hotkey (Shift+8) out of reflex.  Unfortunately I lost my daily earnings when instead of selling a 100 shares that I didn't have in my live account, it shorted a 100 shares in it.   Is there a way to set up my "sell full position" hot key to only work if I already have a share size in that account.  This is my current hotkey setup.

For selling 100% of Position:

ROUTE=SMRTL;Price=Bid-0.03;Share=Pos;ACCOUNT=UXXXXXXX;TIF=DAY+;SELL=Send

For covering 100% of Position:

ROUTE=SMRTL;Price=Ask+0.03;Share=Pos;ACCOUNT=UXXXXXXX;TIF=DAY+;BUY=Send

 

Share this post


Link to post
Share on other sites

Hey Billy Jenkins,

 

This is probably what you are looking for. 

It isn't a complete script, but it should be an easy implementation for your needs.
 

image.png.2ef9ee621826c031a91374c227324d5b.png

 

Good luck trading,

Bailey Nevener

  • Like 1

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.