Other cancels other orders or connect selling to buying condition

Forums ProRealTime English forum ProOrder support Other cancels other orders or connect selling to buying condition

Viewing 3 posts - 1 through 3 (of 3 total)
  • #50840

    Hi all,

    I’m new to this forum and quite new to quantitative trading, I have however some programming experience in SAS. Luckily i could already find a lot of answers to my question here, but a crucial one remains unaswered:

    I’m trying to create a multiple leg order, more specifically the ‘one cancels the other order’ (https://www.prorealtime.com/nl/help/ordertypes). If I did my research correctly, there doesn’t exist a build-in function for this order type, and hence, I’m trying to create it myself.

    In my stragey I want to trade from pivot point, to resistance 1, to resistance 2 and vice versa. My attached example shows that the strategy indeed enters at the pivot point and sells at resistance 1. After this the strategy enters based on C2, but sells the following bar as the selling condition for the move from the pivot point to resistance 1 is still true. I’m therefore searching for a way to:

    • Create a ‘one cancels the other order’ or;
    • Attach a selling definition to an entry definition. E.g ‘only sell when entered based on condition 1’

    What would the best way to achieve this?

    Many thanks in advance for the answers.

     

    #51070

    In my opinion, the best way would be to calculate a takeprofit according to the order that just been launched at market:

    Calculate a takeprofit at next level (Resistance1), when the buy order triggered because of the pivot point breach:

    and so on for each level ..

    #51160

    That seems like a simple and elegant solution which i didn’t think about. I will give it a go and post my findings. Thanks for the answer.

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

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