Question regarding MarketPosition_at_Broker and IB TWS  [SOLVED]

Questions about MultiCharts and user contributed studies.
rc76
Posts: 51
Joined: 14 Oct 2020
Has thanked: 17 times

Question regarding MarketPosition_at_Broker and IB TWS

Postby rc76 » 10 Jan 2024

I have a quick question regarding how MarketPosition_at_Broker will work.

Scenario:
- Currently MC is connected to IB TWS. There is no position in both MC signal on the chart, as well as no position in TWS.
- If I manually purchase 1 long position of ES on TWS (i.e. ESH24), this info will be displayed on OPT, however will this value by MarketPosition_at_Broker?
- i.e. MarketPosition_at_Broker = 1 (with chart symbol mapped to IB's ESH24)

?

Currently my own testing is that, MarketPosition_at_Broker always equal to zero no matter how I buy.

Could it be, if you buy on TWS manually, it will not be reflected in MarketPosition_at_Broker? Only the trades coming from autotrade signal will be reflected?

I thought MarketPosition_at_Broker is the data you get directly from TWS?

Thanks

User avatar
Polly MultiCharts
Posts: 203
Joined: 20 Jul 2022
Has thanked: 1 time
Been thanked: 55 times

Re: Question regarding MarketPosition_at_Broker and IB TWS

Postby Polly MultiCharts » 11 Jan 2024

Hello rc76,

MarketPosition_at_Broker works only if auto trading is turned on, it will display 0 in backtesting and forward testing.
For more info about this keyword please see this page.
Also please make sure you have selected the necessary account in auto trading settings and your Symbol Mapping is correct.

rc76
Posts: 51
Joined: 14 Oct 2020
Has thanked: 17 times

Re: Question regarding MarketPosition_at_Broker and IB TWS  [SOLVED]

Postby rc76 » 12 Jan 2024

Got it. Thank you so much Polly!


Return to “MultiCharts”