Jump to content
pjjsfv

stop loss hotkey for long and short in one

Recommended Posts

hello,

I am using the following script to place a stop on a long position that I am already in by double clicking the chart and then pressing the hotkey. 

Share=Pos;ROUTE=STOP;StopType=market;StopPrice=Price;TIF=DAY+;SELL=SEND

My question is, would it be possible for the script to check if your open position is a long or a short and then according to your position insert the "SELL" or "BUY"

Thank you

Peter

 

Share this post


Link to post
Share on other sites

Hello Peter,

 

I'm pretty sure it's not possible. You need hotkeys for both sides!

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.