RoqParticipant
Junior
Hi all & happy New Year!
I know how to set different types of stop losses but what I want to do is to set conditional stop losses depending on whether the position is long or short.
Sadly LONGONMARKET / SHORTONMARKET only seems to work in connection with opening positions not as part of say “IF LONGONMARKET SET” SL.
Please let me know if a L/S dependent SL is possible.
Many thanks
Roq
You can use conditional SL’s:
IF LongOnMarket THEN
SET STOP pLOSS 50
ELSIF ShortOnMarket THEN
SET STOP pLOSS 40
ENDIF
Bear in mind that ProOrder detects the OnMarket status when the entry candle closes, so you will remain On Market, for a whole candle withouit a stop loss.
I suggest that you use:
IF MyLongConditions THEN
BUY 1 Contract AT Market
SET STOP pLOSS 50
ELSIF MyShortConditions THEN
SELLSHORT 1 Contract AT Market
SET STOP pLOSS 40
ENDIF
Moreover, the last SET STOP pLOSS executed overrides any prior setting for all open positions.
RoqParticipant
Junior
Thank you so much Roberto!
Merci pour votre solution.
Thanks for your solution.
Guyber – Welcome to the forums.
Please follow the forum rules when posting in the forums.
- Only post in the language of the forum that you are posting in. For example English only in the English speaking forums and French only in the French speaking forums.