READ-ONLY

The forum is now a read-only archive.

For bug reports & platform questions → [email protected]

Our community lives on Discord and YouTube — come join us!

Market Position

1 replies

chengsmine

Subscriber, bbp_participant, community, 42 replies.

Visit profile

12 years ago #111654

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?

 

0

Mark Fric

Administrator, sq-ultimate, 2 replies.

Visit profile

12 years ago #122796

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

0

Viewing 1 replies (of 1 total)