Referencing a dll Download PDF

Referencing a dll

cAlgo allows users to reference .NET libraries from cBots and Custom Indicators. In order to add a reference to .NET library you need to open Reference Manager window. You can open Reference Manager window by clicking “Manage References” button in the top of cAlgo editor or by executing “Manage References” command from context menu of your cBot or Custom Indicator.



In Reference Manager open Libraries page and click on the Browse button:

In open file dialog you need to select a .NET dll and click on the Open button.

Click on the Apply button in Reference Manager to apply the changes.

Then you need to import namespaces from the Library. Example:

Finally, you can use classes from the Library in your code: