False "Position Closed" announcements

Questions about MultiCharts and user contributed studies.
User avatar
MC_Prog
Posts: 330
Joined: 28 Feb 2007
Has thanked: 64 times
Been thanked: 35 times

False "Position Closed" announcements

Postby MC_Prog » 11 Feb 2014

Today I observed in an automated strategy (running it for the first time in many months) that with MC driving IB TWS an open position was twice announced verbally as "Position Closed".

The strategy code did not (and was not supposed to) close the position at these points, and in fact closing orders were not issued and the position did indeed remain open and ultimately terminate normally.

It is however, disconcerting to hear your open position announced as closed during a live trade.

What MC showed:

Image

What actually happened:

Image

The verbal messages came at the points there the OPT shows the position going flat.

There may have been automated changes to stop levels at these points, if that is relevant.

This message is a heads-up to users to remain cool if they hear "Position Closed" when it should not be, and also a heads-up to MC that this sure seems like a bug!
Attachments
TWS_SinglePosition_01.png
What actually happened (IB TWS)
(7.11 KiB) Downloaded 377 times
Multi-Flat_ForSinglePosition_01.png
What MC Showed
(34.33 KiB) Downloaded 413 times

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: False "Position Closed" announcements

Postby Henry MultiСharts » 11 Feb 2014

Hello MC_Prog,

Which version and build number of MultiCharts are you running? (Help tab->About MultiCharts)

Please send me (support@multicharts.com) MultiCharts logs (if you have not restarted MultiCharts - the logs from the previous run are erased on the next start).
In MultiCharts go to Help->Feedback->Send logs.
If you want to collect the logs manually please follow this guide: https://www.multicharts.com/trading-sof ... harts_Logs

Please go to Order and Position Tracker Orders tab->make sure no filters are enabled->Right click on any cell->Export to Excel. Please do the same with the Logs and Position History tabs.
Send me the excel files for analysis.

User avatar
MC_Prog
Posts: 330
Joined: 28 Feb 2007
Has thanked: 64 times
Been thanked: 35 times

Re: False "Position Closed" announcements

Postby MC_Prog » 11 Feb 2014

OK, I have sent the info. Thanks.

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: False "Position Closed" announcements

Postby Henry MultiСharts » 12 Feb 2014

Hello MC_Prog,

Our engineers have studied your case. The reason of excessive lines appearing in Order and Position tracker window Position History tab is caused by using an IB login with multiple accounts under it.
Previously IB was unable to simultaneously provide the account details for all accounts.
That is why we have to switch the accounts via API requests in order to receive the information for each of the accounts.
At the moment IB has provided an updated API with the solution for this behavior, which is being implemented by our developers on our end at the moment.
We are going to release this solution in MultiCharts 9.0 beta 1.
This version should become available later this year.


Return to “MultiCharts”