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!
C# application talking directly Portfolio Trader
Questions about MultiCharts .NET and user contributed studies.
3 posts • Page 1 of 1