Marketposition

Questions about MultiCharts and user contributed studies.
NiC72
Posts: 111
Joined: 02 Nov 2009
Location: Sweden
Has thanked: 39 times
Been thanked: 14 times

Marketposition

Postby NiC72 » 30 Sep 2010

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

User avatar
Anastassia
Posts: 179
Joined: 18 Jan 2010
Been thanked: 4 times

Re: Marketposition

Postby Anastassia » 30 Sep 2010

Hi NiC72,

*_at_Broker keywords work only with AT mode on. If autotrading is off returned value will be 0.

Thank you

NiC72
Posts: 111
Joined: 02 Nov 2009
Location: Sweden
Has thanked: 39 times
Been thanked: 14 times

Re: Marketposition

Postby NiC72 » 30 Sep 2010

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.

User avatar
Anastassia
Posts: 179
Joined: 18 Jan 2010
Been thanked: 4 times

Re: Marketposition

Postby Anastassia » 30 Sep 2010

NiC72,
I get the same output even if AT mode is on.
If so, please visit our live chat to demonstrate us this.

Thank you in advance

User avatar
Anastassia
Posts: 179
Joined: 18 Jan 2010
Been thanked: 4 times

Re: Marketposition

Postby Anastassia » 04 Oct 2010

Hi NiC72,
To get the script to check the positions I'm trying MarketPosition_at_Broker but it shows nothing.
Developers double checked the issue on our end and confirm it is a bug. It will be fixed in the following versions of MultiCharts.

Thank you

NiC72
Posts: 111
Joined: 02 Nov 2009
Location: Sweden
Has thanked: 39 times
Been thanked: 14 times

Re: Marketposition

Postby NiC72 » 04 Oct 2010

Great!
Thanks for your help, Anastassia.

User avatar
Anastassia
Posts: 179
Joined: 18 Jan 2010
Been thanked: 4 times

Re: Marketposition

Postby Anastassia » 11 Oct 2010

You are welcome NiC72!


Return to “MultiCharts”