I run the IB TWS and add mauellt an order. To get the script to check the positions I'm trying MarketPosition_at_Broker but it shows nothing. If I have three futures active and run the script:
print ("Time", ":" Time "|", "market position at Broker", "", MarketPosition_at_Broker, "|", "market position at Broker for The Strategy ',': ', MarketPosition_at_Broker_for_The_Strategy);
Output:
Time: 1100.00 | market position at Broker: 0.00 | market position at Broker for The Strategy: 0.00
Marketposition
- Anastassia
- Posts: 179
- Joined: 18 Jan 2010
- Been thanked: 4 times
Re: Marketposition
Hi NiC72,
*_at_Broker keywords work only with AT mode on. If autotrading is off returned value will be 0.
Thank you
*_at_Broker keywords work only with AT mode on. If autotrading is off returned value will be 0.
Thank you
Re: Marketposition
Thanks for your replay, Anastassia.
I get the same output even if AT mode is on.
Just trying to use AT as a stop, so just sell and buytocover. Since I manually purchase, the script must be able to check current status.
This bottom text may be irrelevant, but just how I think and what I'm trying to do.
I get the same output even if AT mode is on.
Just trying to use AT as a stop, so just sell and buytocover. Since I manually purchase, the script must be able to check current status.
This bottom text may be irrelevant, but just how I think and what I'm trying to do.
- Anastassia
- Posts: 179
- Joined: 18 Jan 2010
- Been thanked: 4 times
Re: Marketposition
NiC72,
Thank you in advance
If so, please visit our live chat to demonstrate us this.I get the same output even if AT mode is on.
Thank you in advance
- Anastassia
- Posts: 179
- Joined: 18 Jan 2010
- Been thanked: 4 times
Re: Marketposition
Hi NiC72,
Thank you
Developers double checked the issue on our end and confirm it is a bug. It will be fixed in the following versions of MultiCharts.To get the script to check the positions I'm trying MarketPosition_at_Broker but it shows nothing.
Thank you
- Anastassia
- Posts: 179
- Joined: 18 Jan 2010
- Been thanked: 4 times