Both long & short at the same time?

Forums ProRealTime English forum ProOrder support Both long & short at the same time?

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

    Hi everyone!

     

    Simple question; is it possible to code so that you take both a long and short entry at the same time AND keep both positions until your SL hits or whatever you choose?

     

    I trade with IG, and its possible to do these kinds of trades manually with their web-formula, but when i try in PRT (10.3), it doesnt work. Cant seem to find “OPEN NEW”, like in the web-formula, in PRT. Maybe its even impossible to do it manually in PRT?

     

    Cheers! / J

    #21844

    You can’t be short and long in the same system, BUT you can make two versions of the same system, where one goes long and one short. So doing what you ask is possible.

    #21867

    Hi

    I do manual long and short in PRT … mostly by mistake 🙂 cos I cant see my manual trades due to so many Algo trades covering the screen! Anyway did you say that (?) or are you referring to something else when you say like in the web-formula?

    GraHal

    1 user thanked author for this post.
    #21876

    There is a setting in prt that allows this. It under the order interfade in options. called force open

    2 users thanked author for this post.
    #22174

    Ok thanks everyone for your inputs!

     

    Having two systems with the same trigger sounds interesting, but how do I get them connected? The problem is that when one system is stopped and the other one is still going, the first system (the one that stopped) is ready to take new positions although the second one (the one still aiming for the limit) is still in the market.

    I want/need them to be 99% sync. Every entry needs to be done by both at the same time, if one of them is still in the market, the other one should not enter no matter what.

     

    Cheers! /J

    #22233

    Only way I can think of is that exit condition on one system is entry condition on the other system and vice versa. However, would there be any point having 2 separate systems with such conditions as they would work just as well as one system?

    #22299

    GraHal;

    Exit conditions should not exist, it is stop loss or limit. The entry should be the same, and thats easy fixed with two systems. The problem right now is to keep them in sync even though one is still in the market and the other one is looking for a entry (which it should not take unless the other one is able to do it aswell).

    Im thinking about maybe max 1 trade 12/h on each system, and the timeframe im looking for is 5m, so theres a very small chance that one of them is still in the market after 12h -> which should be enough to have them both on the same page and ready to make the same entry.

     

     

     

    #22353

    Without complicating things, considering there are no unknown here (as in “the entry and exit logic of each code is known”), I would just add to each code the piece of logic for the exit of the other code, resulting in a variable “othercodeinposition” being equal to 0 if the other code has exited, or equal to 1 if the other code is still in position.

    And from there I would modify the entry conditions of each code accordingly (example for the buying code):

    if (normal sync entry conditions are met) AND othercodeinposition=0 then

       buy…

    endif

    resulting in each code not taking the next trade as long as the other one is supposed to still be in position

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