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
Question regarding MarketPosition_at_Broker and IB TWS [SOLVED]
- Polly MultiCharts
- Posts: 206
- Joined: 20 Jul 2022
- Has thanked: 1 time
- Been thanked: 56 times
Re: Question regarding MarketPosition_at_Broker and IB TWS
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.
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.
Re: Question regarding MarketPosition_at_Broker and IB TWS [SOLVED]
Got it. Thank you so much Polly!