cAlgo is the automation environment built into cTrader. Unlike MQL, which is a trading-specific language, cAlgo programs are written in C#, a full, general-purpose object-oriented language used well beyond financial markets.
cTrader Automate is the built-in development environment. It supports integration with Microsoft Visual Studio for traders who prefer a professional integrated development environment (IDE), and provides access to the .NET software development kit (SDK) for more advanced development work.
Two main program types:
- cBots are automated trading robots, the cTrader equivalent of MetaTrader’s Expert Advisors
- Custom indicators are user-coded analysis tools displayed on charts
cTrader also supports Python through its Python SDK, though the C# path is better documented and more widely used.
When to choose cAlgo: you trade on cTrader, you have prior C# or .NET experience, or you want a modern object-oriented environment with cleaner syntax than MQL. The cTrader Store marketplace also lets you browse, buy, or rent existing cBots and indicators, which is a useful reference before you start building your own.
The concepts are equivalent: both cBots and Expert Advisors automate trade execution based on coded conditions. The difference is syntax and platform architecture.
cBots use C# event handlers: OnStart(), OnTick(), OnBar(), and OnStop(), which fire in response to specific market events. The OnBar() handler executes once at the close of each completed candle. It is exclusive to cTrader and simplifies bar-by-bar logic compared to equivalent MQL implementations.
Backtesting is built directly into cTrader Automate. cBots can be tested against historical data in the same environment where they run live, without switching tools.