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.

pjjsfv

stop loss hotkey for long and short in one

Recommended Posts

pjjsfv

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
Joerg

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
Márky András

Hello,

Maybe If you use: ;Send=Reverse;

?

Márky

 

 

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.