hi,
when i have a short position active and the long conditions are met, it closes my short position and opens a long position. anyone know how to force the trade so that i have sell and long position active at the same time? and if not, how do i stop the long position from opening?
thank you.
Being both long and short in a strategy is not possible in ProOrder.
It is better to create two strategies – one long only and one short only.
Alternatively to stop a trade opening in the opposite direction use:
if not shortonmarket and (your enter long conditions) then
buy 1 contract at market
endif
if not longonmarket and (your enter short conditions) then
sellshort 1 contract at market
endif
We can’t go Long and Short at the same time in the same strategy.
how do i stop the long / short position from opening?
Ty …
If NotonMarket and Yourconditions Then
(Mods – Insert Code buttons and all buttons missing? Weird??)
GabyParticipant
Average
It is possible that the same strategy triggers a signal to go long & short at the same time (with different target profits and stop losses); that is working well during sideways periods. Unfortunately the only solution as now is what Vonasi mentioned before: to break the strategy into two pieces and trading both separately with two accounts.
Would it be possible to raise a request to the PRT development team to implement a force open instruction into the code for auto-trading? The functionality is already there, if you want to trade it manually… it is just not “callable” in the code.
Thanks, Gaby
You can ask PRT directly on their webform below
https://www.prorealtime.com/en/contact?
I think you may find the restriction (no hedging in Pro-Order) is placed by IG.
Let us know what PRT say please.
The Force Open is there to stop you from closing existing open positions in the same instrument from another strategy or manual trade but not within a strategy.
Within strategy hedging would be the best feature PRT could invest their time on but considering this is still not a feature after so many years – I’m very doubtful it will ever happen.