attribute is necessary for the indicator class declaration. Indicator's classĪn indicator should be declared inside a special cAlgo.Indicators namespace. Standard C# namespaces (such as System or System.Timers) may be employed if you wish to access their classes. Additionally, namespace can be loaded to work with standard indicators inside your custom indicator's code. Any custom indicator requires cAlgo.API namespace to work. The namespaces you will need are defined within the main cAlgo.API namespace.
#How to unlink account from ctrader code#
Custom indicator structureīasically, each custom indicator's code can be divided into the following sections: Unfortunately, you will find that for some of the APIs and classes specific to trading, the explanations or descriptions in the official documentation are lacking. You can also find there cTrader reference documentations, including some guides to coding.Īs the trading platform uses C# for the algorithm coding, you can expect some level of familiarity with the code if you have any experience with C#. There are also hundreds of algorithms available from cTrader website. cTrader AutomateĬTrader Automate (previously called cAlgo) is now a part of the normal cTrader installation and offers quite a few examples of both indicators and robots. You will also go through a sample source code with a detailed explanation of how it works, so that you could create your own cTrader indicators.
Here, you will find the basic programming language constructions that are used to code custom indicators. If you have already read our cTrader platform review, it is now time to explore possibilities offered by cTrader Automate - an algorithmic trading part of the platform.