Jump to content
Kendrick C.

DAS accidentally sells all stocks for me

Recommended Posts

Posted (edited)

I setup a hotkey to sell 25% of my position with the following scripts.

SwitchTWnd;Route=LIMIT;TIF=DAY+;Price=Ask;TIF=DAY+;Share=Pos*0.25;SELL=Send

Sometimes, DAS sells all of my stocks in live trading, which I did not intent to. I tought it was my mistake.

Today, I verfied that DAS will occasionally (about 1 out of 10 times) sell all of my stocks with this script in sim trading.

As I didn't see someone else reported this problem, I doubt it was due to SwitchTWnd command, which intents to switch focus to the Montage before the other commands.

Here are some additional information.

DAS Pro ver. 5.5.0.3
OrderServer ping 250ms
QuoteServer1 ping 248ms

 

Edited by Kendrick C.

Share this post


Link to post
Share on other sites

Hi Kendrick, I had a similar issue yesterday when I wanted a partial but it covered all.  Andrew also said he pressed his partial hotkey but it covered all... odd day 

 

Share this post


Link to post
Share on other sites
3 hours ago, Drew said:

Hi Kendrick, I had a similar issue yesterday when I wanted a partial but it covered all.  Andrew also said he pressed his partial hotkey but it covered all... odd day 

 

Yes, definitely a bug there.

You can try the following script with focus in a chart window.

SwitchTWnd;Share=Pos*0.5

The SwitchTWnd is a dangerous command. It will ignore its following commands randomly.

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.