Not logged in
Viewing 2 posts - 1 through 2 (of 2 total)
  • #111654 |
    Participant
    18 Posts

    If I have 2 open orders, in the following order:

    Buy 1001

    Sell 1002

     

    and then I use the condition of

    IF

    Market Position is Short

     

    What would happen?

     

    #122796
    Mark Fric
    Administrator
    1182 Posts

    Market Position will return the type of very first open order, so it will return Buy in this case.

    You can use OrderPosition(magic number) to check if given position is long/short or flat

     

    Mark

    Mark
    StrategyQuant architect

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

You must be logged in to reply to this topic.