Changes

Jump to navigation Jump to search

Why There Is Mismatch On Strategy Positions Tab

1,034 bytes added, 17:16, 3 August 2017
no edit summary
=== Auto Trading From Multiple Charts ===
Similar to combining manual and automated trading, having more than 1 chart auto trading the symbol '''X''' at the broker account '''Y''' at the same time leads to position mismatch, because strategies on each chart are working individually. To learn more about this, please read [[Trading from Multiple Charts on One Instrument|this article]].
 
=== FA accounts from Interactive Brokers ===
Interactive Brokers don’t provide cumulative broker position for FA accounts through their API that is why the broker position is reflected as '''zero''' on the Strategy Positions tab of the Order and Position Tracker.
If a strategy’s calculation depends on the net position at broker for multiple accounts, then the [[GetPositionQuantity]] command can be used to calculate the net position across the required accounts for the specified instrument. If autotrading is to be reastarted, it is possible to manually assign the total position for the strategy on start, or use the [[ChangeMarketPosition]] to assign the calculated position and average entry price to the strategy.
After that is done - [[MarketPosition_at_Broker_for_The_Strategy]] and [[CurrentContracts]] will return the strategy position.
 
Basically in this case the position mismatch under the Open Positions and the zero value returned by [[MarketPosition_at_Broker]] can be ignored as really there’s no mismatch.
== Unexpected Mismatch Case ==

Navigation menu