Partially close available for automation?

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #149080 quote
    waid
    Participant
    Junior

    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?

    #149081 quote
    GraHal
    Participant
    Master

    I guess IG must think we would make more money if IG allowed Partial Exits?

    We can partial exit a manual trade no problem at all.

    #149082 quote
    waid
    Participant
    Junior

    Totally agree.

    Eventually IG is MM. The more money we make, the more money we take from IG.

    I am looking forward for auto trading alternative like tradingview w/ IG.

    #149084 quote
    waid
    Participant
    Junior

    Finally I came up with a  workaround to solve this stupid problem:

    0 < a < 1

    original parital exit orders:

    sell A*COUNTOFLONGSHARES contract at market

    alternative way:

    sell at market
    buy (1-A)* COUNTOFLONGSHARES contract at market

    Lots of  spread fee wasted

    #149151 quote
    Nicolas
    Keymaster
    Master

    IG 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.

    waid thanked this post
    #149336 quote
    waid
    Participant
    Junior

    I’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.

    Screen-Shot-2020-11-03-at-07.52.58.png Screen-Shot-2020-11-03-at-07.52.58.png
    #149338 quote
    waid
    Participant
    Junior
    #149386 quote
    Nicolas
    Keymaster
    Master

    Sorry the screenshots are not clear to me.

    But that’s indeed interesting, let me check on my own.

    #149399 quote
    Fran55
    Participant
    Veteran

    Si, we see

    #149422 quote
    waid
    Participant
    Junior

    Ya indeed it works, don’t know why, I’ve already tested in different currencies in real money.

    // assume in current bar we have 3 buy shares, we want to partially close 1 buy:
    sell 1 contract at market
    
    //Equivalent to
    
    sell at market
    buy 2 contract at market
    

    Maybe 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.

    #149440 quote
    Nicolas
    Keymaster
    Master

    Indeed 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
    waid thanked this post
    #151042 quote
    vinit0412
    Participant
    New

    @nicolas – IG is coming up with their PRT v 11 by this month in Australia. Do you think they will allow partial trading in the new version?

    #151043 quote
    Nicolas
    Keymaster
    Master

    IG 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!

    #151044 quote
    XORANDNOT
    Participant
    Senior

    Is this really true ? v11 will finally be released this month ?

    #153507 quote
    robertogozzi
    Moderator
    Master
Viewing 15 posts - 1 through 15 (of 15 total)
  • You must be logged in to reply to this topic.

Partially close available for automation?


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
waid @waid Participant
Summary

This topic contains 14 replies,
has 7 voices, and was last updated by robertogozzi
5 years, 2 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 10/31/2020
Status: Active
Attachments: 2 files
Logo Logo
Loading...