You guys probably wrote about this before but I couldn't find the right keyword. This is the situation:
I have 2 strategies (Unmanaged = true running at the same time over the same instrument, same account. Strategy A found a buy opportunity and executed 1 Buy Market, generating 2 other orders (Target and Stop). After 1 minute, Strategy B found a SELL opportunity and executed 1 Sell Market, generating 2 other orders (Target and Stop). Now my account position is flat and I have 4 unnecessary orders pending in my chart. I have all OCO setup in my OnExecution and OnPositionUpdate but since the SELL order came from Strategy B, Strategy A was not able to cancel Target and Stop (as programmed).
I tried to use Account.Position but it does not show me direction, only count.
Any help appreciated,
Comment