Jump to content

Recommended Posts

Hello everyone, I am hoping I can find a way to do this.

With hotkey 

Price=Ask-Price + 0.01;Share=50 / Price;ROUTE=SMRTL;Price=Ask+0.10;TIF=DAY+;BUY=SEND

How can I automatically add a profit target where it sells 25% of my position at 2-1, 3-1, 4-1, etc....?

If this is available can anyone point me in the right direction?

Thank you BBT's

Share this post


Link to post
Share on other sites
Posted (edited)

Interesting, I have been trying to figure this out for the past few days myself.  In my case I was looking to buy right at market open and sell automatically with a +.10 gain.  I haven't nailed it just yet though.  I used average price +.10 in the sell side of my script.  I don't have it handy right now.

Edited by MikeGyver
  • Like 1

Share this post


Link to post
Share on other sites
Posted (edited)
On 5/20/2019 at 9:33 PM, Jramosent said:

Hello everyone, I am hoping I can find a way to do this.

With hotkey 

Price=Ask-Price + 0.01;Share=50 / Price;ROUTE=SMRTL;Price=Ask+0.10;TIF=DAY+;BUY=SEND

How can I automatically add a profit target where it sells 25% of my position at 2-1, 3-1, 4-1, etc....?

If this is available can anyone point me in the right direction?

Thank you BBT's

You won't be able to do it with one hotkey. The problem is that DAS doesn't know your stop distance to calculate the profit target. To do the math properly, you have to have access to the AvgCost of the position. This is not available until after the order fills, so if it's all in one hotkey it'll kick back with a math issue (can't get avgcost) because of how fast it processes these commands (it's trying to get AvgCost).

 

I've added this to a newer version of the Excel config sheet (thread below). That'll give you the ability to get the proper stop-distance and set a price-target to whatever you want. It acts as an A / B hotkey. So once the first order (the one getting you in) fills and comes back, you should send the second hotkey (the one that puts the price target order in).

That version (1.5) should release this week, I'm just testing it and creating the videos to accompany it.

 

 

Edited by KyleK29

Share this post


Link to post
Share on other sites
On 5/22/2019 at 1:22 PM, KyleK29 said:

You won't be able to do it with one hotkey. The problem is that DAS doesn't know your stop distance to calculate the profit target. To do the math properly, you have to have access to the AvgCost of the position. This is not available until after the order fills, so if it's all in one hotkey it'll kick back with a math issue (can't get avgcost) because of how fast it processes these commands (it's trying to get AvgCost).

 

I've added this to a newer version of the Excel config sheet (thread below). That'll give you the ability to get the proper stop-distance and set a price-target to whatever you want. It acts as an A / B hotkey. So once the first order (the one getting you in) fills and comes back, you should send the second hotkey (the one that puts the price target order in).

That version (1.5) should release this week, I'm just testing it and creating the videos to accompany it.

 

 

Kyle, that is awesome. Can’t wait to try it out.

Share this post


Link to post
Share on other sites

Also would it be possible to set lines on the chart where it automatically calculates when your in profit? For Example

RR.PNG.c69529a0118d983978a6f40657e82a5d.PNG

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

×

Important Information

By using this site, you agree to our Terms of Use, Privacy Policy and use of 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..