does anyone have the code to “force open” the trades? thanks
what is “force open” please?
its an option IG has to open trades
when creation systems using simplified creation – if you open trades in both directions eg selling and going long at the same time, the first trade opend will auto close …this means it could close at a loss
i spoke with IG and they said if i use “force open” then the first trade will stay open when the second one is opened
force open is just an option to open trades with on the IG platform
It’s only possible for manual trading, not automated trading, sorry.
If you copy your system in 2 diffrent ones for long trade and one for short. It should play like “force”.
If you try please get back and tell me how it’s worked out!. I will probably test it my self.
@Patrick: It works just fine and is easy to do with strategies that always open and close the complete position on either side.
When building a strategy with partial entries and exits it’s more complicated.
If the “split” strategy working then you can just keep the “long open” strategy as a close action in your short strategy.
And if the problem you have are that is close right but to earli so you got a loss trade. Use ” IF CLOSE < TRADEPRICE THEN” for shorttrades and > for long.
but I asume you are trying to program a heading strategy?
A tad different:
If there are two systems for the same strategy it increases the model risk, since the systems cannot reference each other. Thus the probability of an error rises.
The slippage potentially rises because opening a position with size “2” by two different systems with size “1” each, will lead to different prices.
The system risk doubles because maybe one system get’s shut down on the server side while the other system keeps running.
Using two systems in the case of partial entries and exits is a serious complication and should be avoided, in my opinion.