Jump to content
Sauge

Help with stop range hotkey

Recommended Posts

so I want to make hotkey that set's range order based on clicking to chart and existing stop loss order I've managed to make it for long side trades as this

CXL ALLSYMB;ROUTE=STOP;StopType=Range;LowPrice=stopprice;HighPrice=price;Share=Pos;TIF=DAY+;SELL=Send

but I can't get it to work for short side, my guess is that it's because somehow stoploss when going short doesn't have a stopprice? bacause when I try to use this it simply set both low and highprice to 'price'

CXL ALLSYMB;ROUTE=STOP;StopType=Range;LowPrice=price;HighPrice=stopprice;Share=Pos;TIF=DAY+;BUY=Send

any idea if there is some other way to specify the high price?

Share this post


Link to post
Share on other sites

Hi!

It is not the same but maybe will help, I switched to avarage cost:

CXL ALLSYMB;ROUTE=STOP;StopType=Range;LowPrice=price;HighPrice=AvgCost;Share=Pos;TIF=DAY+;BUY=Send

You should use when you are in positive, to final scale out.

Regards,

Aladin

Share this post


Link to post
Share on other sites

yep I did the same but I would still like to have custom highPrice since what I occasionally do on long side after the trade goes above 2R and I've secured profits I sometimes set stoploss at 2R instead of B/E

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.