C# application talking directly Portfolio Trader

Questions about MultiCharts .NET and user contributed studies.
fbertram
Posts: 128
Joined: 16 Oct 2014
Has thanked: 37 times
Been thanked: 51 times

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: 8516
Joined: 25 Aug 2011
Has thanked: 1213 times
Been thanked: 2735 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.

fbertram
Posts: 128
Joined: 16 Oct 2014
Has thanked: 37 times
Been thanked: 51 times

Re: C# application talking directly Portfolio Trader

Postby fbertram » 16 Aug 2017

Thanks Henry.


Return to “MultiCharts .NET”