Expose cAlgo method (similar to custom API) for external callers/programs (reading internal variables like balance, equity any other variable inside algohost.exe)

Created at 05 Apr 2025, 09:33
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
TM

tminvest.real

Joined 11.09.2024

Expose cAlgo method (similar to custom API) for external callers/programs (reading internal variables like balance, equity any other variable inside algohost.exe)
05 Apr 2025, 09:33


The requirements are: 

  1. Read cTrader data (current various account statistics like min/max balance/equity/dd…) via external process like Excel VBA in my Trading Journal. Not a problem to create custom C# caller app which calls and read such public-exposed algohost.exe API method/methods.
  2. I do not want to save anywhere anything while reading the data. I mean, solution cannot be File-Save-Read or Registry-Save-Read approaches. Why complicate things while it's just data read, nothing else.

Already checked provided examples by cTrader and read a ton articles everywhere else, but still not able to find anywhere simple solution: declare-expose method in cAlgo for external process callings/readings.

Any direction/guidance? 

Thanks,

Tomas


@tminvest.real