C# application talking directly Portfolio Trader

Questions about MultiCharts .NET and user contributed studies.
User avatar
fbertram
Posts: 166
Joined: 16 Oct 2014
Location: Seattle, USA
Has thanked: 36 times
Been thanked: 76 times
Contact:

C# application talking directly Portfolio Trader

Postby fbertram » 08 Aug 2017

I am running a fully automated trading server, which powers up in the morning, launches TWS, launches Portfolio Trader, starts auto trading, and gracefully shuts everything down in the evening. Until now, I have used AutoIT for automation, basically by attempting to find windows, and sending them key events. This is ugly, painful to maintain, and not as reliable as I'd like it to be.

The better solution would be, to write a C# application, import some references to MultiCharts, and issue all these commands directly instead of going through the UI. This is for example what you can do with Excel by using Microsoft's Office Interop assemblies.

Is there a way to do something similar with MultiCharts? I have added a reference to MCPortfolio.exe to an MSVC project, and browsed a bit around in the MCPortfolioN reference, but haven't found anything that looked like I could use it out of the box?

Any comments highly appreciated!


Thank you,
Cheers, Felix

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

Re: C# application talking directly Portfolio Trader

Postby Henry MultiСharts » 16 Aug 2017

Hello Felix,

This is not something that is possible right now, but potentially we may have it added in the future.

User avatar
fbertram
Posts: 166
Joined: 16 Oct 2014
Location: Seattle, USA
Has thanked: 36 times
Been thanked: 76 times
Contact:

Re: C# application talking directly Portfolio Trader

Postby fbertram » 16 Aug 2017

Thanks Henry.


Return to “MultiCharts .NET”