Partially close available for automation?
Forums › ProRealTime English forum › ProOrder support › Partially close available for automation?
- This topic has 14 replies, 7 voices, and was last updated 4 years ago by robertogozzi.
-
-
10/31/2020 at 1:00 PM #149080
I think it is a very basic request, but PRT seems does not support this function.
I encountered this message when ready to fire my robot:
“Trading system with orders that partially close the position cannot be sent directly to pro order”
Why PRT does not try to push IG to support this basic feature?
10/31/2020 at 1:17 PM #14908110/31/2020 at 1:58 PM #14908210/31/2020 at 2:18 PM #149084Finally I came up with a workaround to solve this stupid problem:
0 < a < 1
original parital exit orders:
1sell A*COUNTOFLONGSHARES contract at marketalternative way:
12sell at marketbuy (1-A)* COUNTOFLONGSHARES contract at marketLots of spread fee wasted
11/01/2020 at 2:02 PM #149151IG doesn’t use the partial closure yet in their protocol between PRT software and their servers..
I think that your proposed solution is not working because first you close all long orders, and then you buy again, with less contracts, but far from the initial entry price, so that’s not like partial closure of a position opened since X bars ago.
I move your topic into the ProOrder section.
1 user thanked author for this post.
11/03/2020 at 12:48 AM #149336I’d tested it in IG’s real money account, and indeed that works!
Strangely I did not see any “new buy” triggered but a partial closure triggered instead. (I saw 0.6 buying shares was closed, which means partial closure works!)
I post my proof in the attachment.
11/03/2020 at 1:00 AM #14933811/03/2020 at 3:09 PM #14938611/03/2020 at 5:52 PM #14939911/04/2020 at 1:30 AM #149422Ya indeed it works, don’t know why, I’ve already tested in different currencies in real money.
1234567// assume in current bar we have 3 buy shares, we want to partially close 1 buy:sell 1 contract at market//Equivalent tosell at marketbuy 2 contract at marketMaybe in IG’s trading server’s setting, the opposite orders request sent to IG within 1 seconds are considered as single partial close request.
In trading history, I did not see “sell 3 and then buy 2”, but just “sell 1”. So I conclude that this equivalent works.
11/04/2020 at 10:14 AM #149440Indeed it works since ProOrder makes a simple addition of the quantities subtracted (SELL AT) then added (BUY x) to keep at the end only the quantity of contracts desired. This principle is only functional because PRT has integrated the partial closing functionality with SELL X CONTRACTS (and which is not yet accepted by IG). In fact, you unintentionally found a workaround for what is accepted by both the language and the IG server.
BUT, I strongly don’t recommend using this ‘workaround’ at all, for several reasons:
- this is not an official and normal functionality of the interaction protocol between the software and the broker
- calculations of strategy results in detailed reports will not be correct, as this is not expected in normal operation
- in the event of a dispute with the broker, this type of “unofficial” operation could work against you
1 user thanked author for this post.
11/20/2020 at 1:29 PM #15104211/20/2020 at 1:39 PM #151043IG is coming up with their PRT v 11 by this month in Australia
I know that things are moving, but see it before believing it.
Do you think they will allow partial trading in the new version?
I think so!
11/20/2020 at 1:40 PM #15104412/12/2020 at 4:05 PM #153507 -
AuthorPosts
Find exclusive trading pro-tools on