Using System.Management Namespace in CAlgo

Created at 22 Apr 2023, 12:21
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!
UV

uvwxyz

Joined 06.02.2017

Using System.Management Namespace in CAlgo
22 Apr 2023, 12:21


Hi 

I want to use 'System.Management Namespace' in my code of a custom Indicator. I donot have the luxury of the Visual Studio. Any help will be v much appreciated.

In CAlgo when I do "Using System.Management" and compile the error is :

 


@uvwxyz
Replies

firemyst
23 Apr 2023, 06:56

The error message is what's wrong.

You need to add a reference to System.Management.dll to your Indicator project.

https://ctrader.com/api/guides/referencing_dll#:~:text=In%20order%20to%20add%20a,your%20cBot%20or%20Custom%20Indicator.

 

 

 

 

 


@firemyst

uvwxyz
24 Apr 2023, 12:34

RE:

firemyst said:

The error message is what's wrong.

You need to add a reference to System.Management.dll to your Indicator project.

https://ctrader.com/api/guides/referencing_dll#:~:text=In%20order%20to%20add%20a,your%20cBot%20or%20Custom%20Indicator.

Thanks heaps firemyst. Amazing expanation. I'll give it a go. 

Cheers.

 

 

 

 

 


@uvwxyz