×

Sign up and get MultiCharts free

Use its powerful simulation mode with data included out of the box. Just fill out the form and start honing your trading skills with a few clicks.

Changes - MultiCharts

Changes

Jump to navigation Jump to search

Why There Is Mismatch On Strategy Positions Tab

22 bytes added, 13:26, 3 March 2021
=== Auto Trading in Asynchronous Mode ===
When a strategy is auto trading in [[Auto Trading#Mode Selection|Asynchronous Mode]], the strategy position on the chart is formed by all orders that are displayed, including the orders from backtesting, which are not taken into account at the broker. The orders generated and displayed on the chart during real-time calculation are not guaranteed to be sent from MultiCharts though through broker plug-in and be executed. This means the picture you see on the chart may be unrealistic (executed orders, market position). One should not expect a position match to be always true if the auto trading's mode is Asynchronous.
There are 3 places where orders are executed and positions are opened/closed:
# '''Broker end''',
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 Accounts from Interactive Brokers ===Interactive Brokers don’t API does not provide cumulative broker position for Financial Advisor (FA ) accounts through their API , that is why the broker position is for the master account (F) can be reflected as '''zero''' on the Open Positions/Strategy Positions tab tabs of the Order and Position Tracker.If a strategy’s 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. If autotrading is to be reastarted, it It is possible to manually assign the total position for the strategy before turning on startauto trading, 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 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 there is no mismatchactually.
== Unexpected Mismatch Case ==

Navigation menu