How to edit cBots or Custom Indicators in Visual Studio
Microsoft Visual Studio is a powerful IDE which can be used for development of cBots and Custom Indicators.
In order to edit cBots or Custom Indicators in Microsoft Visual Studio you need to obtain Microsoft Visual Studio version 2010, 2012, 2013. Express editions of Microsoft Visual Studio do not support Add-Ins and extensions, so cAlgo and cTrader do not work with them.
If you have Microsoft Visual Studio installed you can perform “Edit in Visual Studio” command from context menu of cBot or Custom Indicator:
If it is first execution of “Edit in Visual Studio” command, the VSIX installer will be launched:
VSIX installer will install Visual Studio Extension which is required for development of cBots and Custom Indicators. In VSIX Installer you need to select versions of Visual Studio which you are going to use for development of cBots and Custom Indicators. If you select several versions of Visual Studio, the latest version will be used on “Edit in Visual Studio” command.
After Visual Studio Extension is installed Visual Studio will be opened:
After you made some changes in the code of your cBot or Custom Indicator you need to apply those changes by executing Build command:
After build is finished cAlgo and cTrader platforms will load new .algo file. If you start your cBot you will see that all your changes are applied:
All instances of your cBot must be stopped when you perform Build command from Visual Studio. Otherwise new .algo file will not be loaded and the following warning will be prompted:
However Custom Indicators are reloaded on the fly and you don’t need to stop your Custom Indicators anyhow.
You can visit Visual Studio Resources to find out more information about Microsoft Visual Studio.