Hi,
I use the following code to check marketposition in MultiCharts:
value1=marketposition;
print("marketposition=",value1);
the result is "marketposition=1"
I have confirmed that there is no position in my InteractiveBrokers paper account.
My Strategy Properties/Auto trading setting is as attached file. Please advise which setting I should change in order to make marketposition the same in MultiCharts and InteractiveBrokers paper account.
Thanks!
Charles
Marketposition is different in MultiCharts and IB
Marketposition is different in MultiCharts and IB
- Attachments
-
- 照片 (7).JPG
- (689.23 KiB) Downloaded 301 times
- Andrew MultiCharts
- Posts: 1587
- Joined: 11 Oct 2011
- Has thanked: 931 times
- Been thanked: 559 times
Re: Marketposition is different in MultiCharts and IB
"MarketPosition" keyword checks the market position on chart.
"MarketPosition_at_broker" keyword checks the market position at broker.
The chart and broker positions may mismatch if AA mode of auto trading is used, or there was an issue during auto trading in SA mode (an order did not receive final status from broker), or there were manual orders, or there was another chart autotrading on the same symbol.
As i can see on your screenshot, AA mode of auto trading is used. One should not expect that in this mode chart and broker positions will be the same.
"MarketPosition_at_broker" keyword checks the market position at broker.
The chart and broker positions may mismatch if AA mode of auto trading is used, or there was an issue during auto trading in SA mode (an order did not receive final status from broker), or there were manual orders, or there was another chart autotrading on the same symbol.
As i can see on your screenshot, AA mode of auto trading is used. One should not expect that in this mode chart and broker positions will be the same.