Different market entries with different positionsize.

Forums ProRealTime English forum ProOrder support Different market entries with different positionsize.

  • This topic has 4 replies, 3 voices, and was last updated 2 years ago by avatarjhon.
Viewing 5 posts - 1 through 5 (of 5 total)
  • #188852

    I am looking for code for two different inputs within the same system.

    The first entry is under conditions a and b and positionsize normal.
    The second entry is under conditions a, b, and c and positionsize/2.

    They are not cumulative positions, or he enters with the first entry or with the second entry.

     

    Thanks.

    #188853
    JS

    Hi @jhon,

    Something like this…

     

    #188859

    Something like this

    Nah, not really. That may end up with 1.5x PositionSize because it is ambiguous (but we should try it for real in order to be sure); I mean, this will not end up in two times a position, but both will accumulated in the one bar-call.  DefParam CumulateOrders = false won’t help here.

    Maybe that will work better. 🙂

    #188860
    JS

    Hi @jhon,

    First test the entry with the most conditions, then the entry with the second most…etc.

    Otherwise you will endup with a wrong PositionSize.

    Use CumulateOrders = False to prevent cumulated orders.

     

    #188870

    Thank you very much JS.

    I see that the problem I had was because of the order of the entries, your last post.
    For the rest, I was using that same code.

    It is curious, the order of the factors does alter the product. 🙂

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

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