Market Position
1 replies
chengsmine
10 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?
Mark Fric
10 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
Viewing 1 replies (of 1 total)