Jump to content
Justin

DAS - Stop Limit Order for Future Entry with Dynamic Share Calculation - Using $Risk with a Stop Loss

Recommended Posts

Posted (edited)
18 hours ago, justinstrommer9 said:

Route=Stop

you need to have Route=SMRTL for Interactive brokers

edit: sorry i missed that it is for future entry order

Edited by peterB

Share this post


Link to post
Share on other sites

I changed Route=Stop to Route=SMRTL.  This did not work.  It made me immediately enter the trade at the current price, instead of entering at the entry target I selected. 

Share this post


Link to post
Share on other sites
9 hours ago, peterB said:

you need to have Route=SMRTL for Interactive brokers

No, not for stop orders @peterB.

@justinstrommer9 It's either a syntax error from when you copied it into DAS or you're not executing the script properly.

If you could outline a real example and step by step of exactly what you're doing that would be helpful. Like down to the detail. "I double click on the chart at x price, then hit the first hotkey. Then I double click on the chart at y price and hit the second hotkey."

Share this post


Link to post
Share on other sites

Hey guys thank you so much for the help. I’m not sure what happened before but I was able to use it correctly with the original script on Friday. Seems to be working fine now. Not sure what went wrong before.  I’m going to use this a lot or make trades as I prefer to get in on a break of a candle vs just jumping in. 

Share this post


Link to post
Share on other sites

I tried looking at the script , what would i have to change to setup a script for a 50 , or 100 dollar risk ?

Any help woudl be appreciated

Share this post


Link to post
Share on other sites
Posted (edited)
12 minutes ago, ivo1969 said:

I tried looking at the script , what would i have to change to setup a script for a 50 , or 100 dollar risk ?

Any help woudl be appreciated

SShare=20/Price;

That number denotes the risk. It's set to $20 currently.

Edited by Justin

Share this post


Link to post
Share on other sites

Thank you Justin , I cant believe I missed  that , must have been looking further down in the script

Share this post


Link to post
Share on other sites
Posted (edited)

I can't seem to use the hotkey for some reason. I keep getting "ERROR: Can't get valid price!"

 

Edit: The hotkey only works for shorting, when I try to use the long hotkey it does not work at all. I copied the hotkey exactly as I saw it so I'm a bit confused on that...If there's a fix for that, please let me know. Also, when I try to use my cover or sell hotkeys, it does not work. It brings up this in the picture and I did manage to find a solution which was going into my montage and changing the type of order from "limit" to "market" and it worked. If there's another way to fix it without doing that, please let me know. I'm trying this in replay by the way.

needhelp.PNG

Edited by koreanwon97

Share this post


Link to post
Share on other sites
16 hours ago, koreanwon97 said:

I can't seem to use the hotkey for some reason. I keep getting "ERROR: Can't get valid price!"

 

Edit: The hotkey only works for shorting, when I try to use the long hotkey it does not work at all. I copied the hotkey exactly as I saw it so I'm a bit confused on that...If there's a fix for that, please let me know. Also, when I try to use my cover or sell hotkeys, it does not work. It brings up this in the picture and I did manage to find a solution which was going into my montage and changing the type of order from "limit" to "market" and it worked. If there's another way to fix it without doing that, please let me know. I'm trying this in replay by the way.

needhelp.PNG

This hotkey doesn't work in replay mode. You'll need to test it out in SIM when the market is open.

Share this post


Link to post
Share on other sites

Hi Justin & Kyle,

This script is very awesome!

Can you please provide the script for the flip side (i.e., Short situation)?  Thanks

Henry

 

Share this post


Link to post
Share on other sites
3 minutes ago, tamago168 said:

Hi Justin & Kyle,

This script is very awesome!

Can you please provide the script for the flip side (i.e., Short situation)?  Thanks

Henry

 

It's already there in the first post

Share this post


Link to post
Share on other sites

Hi Justin,

I think you were looking for a solution for Part 2 of the script to send 2 separate range orders.  I'm looking for a similar solution like below.

When my Buy Stop/Sell Stop is triggered and filled, 2 separate range orders are created.  The first one is 60% of shares with 1R target and the second one is 40% with 2R target.  Both of them have the same original stop loss.

That'll be very helpful if a script exists for this case.

 

Share this post


Link to post
Share on other sites

Peter,

I posted the same question under that topic, too.  I saw you responded over there as well.  It seems that currently there's no one key to accomplish this.  So, the workaround for now is to send 60% at 1R, and manually send another 40% at 2Rs.  Thank you for your time.

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.