Same program trading with multi-product

Forums ProRealTime English forum ProOrder support Same program trading with multi-product

Viewing 8 posts - 1 through 8 (of 8 total)
  • #191234

    Hello,

    I have a program composed by two parts: the first block of code should trade the pair EUR/GBP and the second block of code should trade the pair EUR/JPY.

    My question is: would it be possible to code the pair and the timeframe ?

    I cannot break the code into two strategies because there are common counters required to be visible to both.

    Thanks & Regards

    Gaby

    #191237

    You cannot trade more than one instrument/fx pair/asset at a time.

     

    #191247

    I cannot break the code into two strategies

    Duplicate the code and comment out the lines which are not required for whatever Instrument, then run both Strategies separately.

    #191475

    Thanks GraHal for your response.

    Unfortunately If I split the program into two, they won’t be able to see each other and whether a position has been already opened.

    What I am trying to avoid is: program 1 is opening a trade in EUR/GBP and program no.2 is opening a second trade in EUR/JPY, doubling my risk on the EUR currency (correlation risk).

    What I want to achieve is: if there is already a running position on EUR /GBP, then the second part of the program related to EUR/JPY should not open anything as I am already ONTHEMARKET.

    But reading Roberto’ separate feedback, I understand Prorealcode allows to trade only one instrument per program.

    Correlation is a key point to solve to avoid to take multiple positions on the same currency and dangerously multiply the risk; but unless there are other ways of programming, it seems there is no way in Prorealcode to avoid pair correlation issues (apart limiting the code to only one pair and not trading at all the second).

    Any final thoughts on that?

    Thanks, Bye.

    Gaby

    #191486

    How about position size / 2 (e.g. 0.5) so then you have the advantage of allowing 2 Systems to trade at same overall risk level (as position size = 1 with only 1 System trading).

    Advantage of above is one System may be more profitable than the other long term, but you will not know unless you run both Systems together?

    I practice above scenario, but also I monitor open trades via the ‘myIG/dashboard’ and close Systems if too many take trades at same time and I’m gettng scared!! 🙂

    1 user thanked author for this post.
    #191835

    Considering the technical limitation of the language, it is a good suggestion and I will consider that. The challenge is when trading with markets like USD/JPY, with high correlations with almost every other major pair…  but thanks for the lateral thinking.

    Gaby

     

    1 user thanked author for this post.
    #191836

    And Yes: it could be scary.

    It happened to me that after 6 months of having my bots running multi-markets successfully and generating profits, in a single night 11 trades were opened, all highly correlated each others. The trade failed and I got all 11 positions stopped out with a loss. A correlation filter would have prevented me to lose 11 times, but only once (like a normal situation). You might ask: why didn’t you stop the trades manually? Because at 2am I usually sleep… and the morning after the disaster was already all done.

    I learned the hard way correlation filters is a must to be implemented, if you want to trade multi-markets.

    But then I hit the challenge of ProRealcode: the inability of this language to see other strategies or to see whether there is already a position opened. And each strategy can deal with only one market at the time… Basically, each algo is a silos, mono-market only.

    I see it quite a limitation of this language, forcing me to explore whether other languages (eg MT4) offer a solution for correlation. My strategy and my auto-trade is completely frozen, now.  Pity!

     

     

    #191837

    You should send a Suggestion direct to PRT using the Form on the link below.  Refer to this Topic to save you typing loads on the Suggestion Form.

    We would all love ‘Correlation’ as you discuss above, but not enough of us bother to tell PRT (also about other desires) and so  PRT give us, in each new version, what they think we want.

    https://www.prorealtime.com/en/contact?suggestion=1

     

Viewing 8 posts - 1 through 8 (of 8 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login