how to code all trades to be "force open"
Forums › ProRealTime English forum › ProBuilder support › how to code all trades to be "force open"
- This topic has 9 replies, 4 voices, and was last updated 6 years ago by Derek.
-
-
03/17/2017 at 9:42 AM #28856
does anyone have the code to “force open” the trades? thanks
03/17/2017 at 2:10 PM #2893503/17/2017 at 2:48 PM #28939its 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
03/17/2017 at 3:04 PM #2894706/12/2017 at 9:37 PM #38162If 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.
06/17/2017 at 6:00 PM #3850806/18/2017 at 8:34 AM #38530If 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?
06/18/2017 at 9:06 AM #38531A 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.
-
AuthorPosts
Find exclusive trading pro-tools on