cTrader cBot - The C#-based equivalent of a MetaTrader EA in cTrader’s Automate platform (formerly cAlgo). A cBot is a C# class that extends
Robot and handles events like
OnStart(),
OnTick(),
OnBar(), etc. Developers use methods like
ExecuteMarketOrder(),
PlaceLimitOrder(), and
ClosePosition() to implement trading logic. For example, in a cBot one might write
protected override void OnStart() { ExecuteMarketOrder(TradeType.Buy, SymbolName, 10000); } as shown in cTrader docs. The cBot API provides access to account data (
Account.Balance,
Account.FreeMargin), market data (
Bars collections), and positions. The cTrader guide notes that the cBot lifecycle consists of key events (
OnStart(),
OnTick(),
OnBar(),
OnStop(), etc.). In this glossary, the cBot entry highlights how automated strategies are coded in C#, with calls like
PlaceLimitOrder(TradeType.Buy, SymbolName, 10000, Symbol.Bid, "myLimitOrder") for limit orders. It parallels the EA entry but underlines cTrader’s environment and syntax.