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.

babado

Das Trader Pro: Sell stop order not always filled

Recommended Posts

babado

Hi Everyone,

I tried to setup an hotkey with Das Trader Pro but the sell stop order is not always filled.

What I tried to accomplish is to always trigger a sell stop order (even at market price) when the price is 20 cents below the asking price.

Do you know what I can do to always fill the stop order even at market price?

Here is the script I use:

ROUTE=MARKET;Price=Ask+0.05;Share=1000;TIF=DAY+;BUY=Send;TriggerOrder=RT:STOP STOPTYPE:Market STOPPRICE:AvgCost2-.20 PX:AvgCost2-.20 ACT:SELL QTY:POS TIF:DAY+

 

Thank you in advance

Share this post


Link to post
Share on other sites
zulkafil
On 1/14/2022 at 5:57 AM, babado said:

ROUTE=MARKET;Price=Ask+0.05;Share=1000;TIF=DAY+;BUY=Send;TriggerOrder=RT:STOP STOPTYPE:Market STOPPRICE:AvgCost2-.20 PX:AvgCost2-.20 ACT:SELL QTY:POS TIF:DAY+

Hello,

DAS uses some variables to calculate different values. Average value of shares save in the variable AvgCost. Assignment statement need semicolon at the end so DAS can execute. I will suggest read and understand how script works before writing your own scripts. You can also use BBT provided scripts, update as you needed. Always try your scripts in the SIM first for safety.

Best of luck.

Edited by zulkafil

Share this post


Link to post
Share on other sites
babado

Thank you for your replies.

Can you please tell me what is the error to fix?

regards

Share this post


Link to post
Share on other sites
babado

Thank you @PeterB, I will have a look.

 

best regards

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.