+1 888 340 6572

Why There Is Mismatch On Strategy Positions Tab: Difference between revisions

From MultiCharts
Line 26: Line 26:
=== FA Accounts from Interactive Brokers ===
=== FA Accounts from Interactive Brokers ===
Interactive Brokers API does not provide cumulative broker position for Financial Advisor (FA) accounts, that is why the broker position for the master account (F) can be reflected as '''zero''' on the Open Positions/Strategy Positions tabs of the Order and Position Tracker.
Interactive Brokers API does not provide cumulative broker position for Financial Advisor (FA) accounts, that is why the broker position for the master account (F) can be reflected as '''zero''' on the Open Positions/Strategy Positions tabs of the Order and Position Tracker.
If a strategy 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. It is possible to manually assign the total position for the strategy before turning on auto-trading, or use [[ChangeMarketPosition]] to assign the calculated position and average entry price to the strategy.  
If a strategy 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. It is possible to manually assign the total position for the strategy before turning on auto trading, or use [[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.
After that is done - [[MarketPosition_at_Broker_for_The_Strategy]] and [[CurrentContracts]] will return the strategy position.