How to Execute Two Buy Stop Orders Simultaneously?

Forums ProRealTime English forum ProOrder support How to Execute Two Buy Stop Orders Simultaneously?

Viewing 2 posts - 1 through 2 (of 2 total)
  • #222384

    Hi everyone,

    I’m trying to program two buy stop orders to execute simultaneously. Here’s the code I’ve tried:

    ”If condition1 then
    Buy 1 contract at p stop
    Buy 1 contract at p+x stop
    Endif”

    However, only one of the orders seems to be getting executed. Does anyone have suggestions on how I can fix this or what I might be doing wrong?

    Thanks in advance for your help!

    Best,
    Mikael

     

    #222388

    It is not possible to place 2 buy stop orders at the same time with code. The workaround is to place the second one once the first is triggered (check if you are on market and place the next one).

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

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