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.

Kevin K

5% Partial Script Problematic

Recommended Posts

Kevin K

I see Andrew and others taking 5% partials but quite often, but that will result in partial shares being calculated quite frequently, and Das has no function to round up to a WHOLE number, so how are people doing this? 

Share this post


Link to post
Share on other sites
Kevin K

I see other recaps with people mentioning 5%, I guess they are doing it manually? Even ten percent can give partial shares after just a few partials down from 500 shares, for example.

Share this post


Link to post
Share on other sites
Justin

Maybe I'm confused by what you mean, by DAS not handling whole numbers. But if I I'm long with 27 shares and I take a 50% partial, I will end up with 14 shares with 13 remaining.

Share this post


Link to post
Share on other sites
Kevin K

I think you get it. I chatted with DAS support and they confirmed it doesn’t round up to nearest share. I sent a feature request. Trying to take a 5% partial on many different share sizes gives an error for me because it returns 4.5 shares, for example, when doing the 5% calculation 

EDIT: I got an email back from a developer at DAS and he says it should round down, like you experience. Must be something with my script somehow. Hmmmm.

Edited by Kevin K

Share this post


Link to post
Share on other sites
Justin
18 minutes ago, Kevin K said:

I think you get it. I chatted with DAS support and they confirmed it doesn’t round up to nearest share. I sent a feature request. Trying to take a 5% partial on many different share sizes gives an error for me because it returns 4.5 shares, for example, when doing the 5% calculation 

Hey @Kevin K Unfortunately DAS support isn't the most knowledgeable about what their software can and can't do...

I just took 25 shares of SPY
-Took a 10 percent partial (2.5 shares) and it sold 2 shares
-23 Remaining
-Took another 10 percent partial (2.3 shares) and it sold 2 shares
-21 remaining
-Took a 25 percent partial (4.3 shares) and it sold 4 shares
-I now have an open position of 17 shares because I forgot to close out 😛

188561237_25Shares.jpg.1626f7adc5a8859af60348d13e6d041d.jpg

trades.jpg.16e801a662f29eec357586210d0b22ec.jpg

2097661330_17Shares.jpg.3b1080c63359fdb76c10b46292ab5479.jpg

What does your partial hotkey look like?

My 10% scale out for long positions looks like this:

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

And for short:

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

Edited by Justin

Share this post


Link to post
Share on other sites
Kevin K

Thanks for your help Justin.

For longs...

CXL ALLSYMB;ROUTE=LIMIT;Price=Bid-0.05;Share=Pos*0.05 ;TIF=DAY+;HANDINST=ANY;SSHARE=0 ;SELL=Send

 

 

Edited by Kevin K

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.