Home / Help / cTrader / Automate tab or cBot build errors

Automate tab or cBot build errors in cTrader

A cBot or indicator will not build in the Automate tab.

cTraderAutomate tab or cBot build errorscbotsautomate

What is causing it

A code error or an outdated cAlgo API reference.

Why this happens

cTrader compiles cBots and indicators from C# source into runnable code, and a build failure means the compiler rejected the source rather than the platform being at fault. The cTrader Automate API has changed across major versions, with names and namespaces altered, so code written for an earlier version will not build against the current one. Anything sourced from an older forum post or tutorial is likely to fail for exactly this reason.

The compiler reports errors in the order it encounters them, and in C# one genuine mistake often produces several downstream complaints. The first error in the list is usually the real one and the rest are consequences, so fixing the first and rebuilding frequently clears most of the list at once.

The fix, step by step

  1. Open the cBot in the Automate editor and read the build error.
  2. Update deprecated cAlgo or cTrader Automate API calls.
  3. For a third-party cBot, get the latest version from the author.
  4. Rebuild after fixing, and check the log for remaining errors.

How to confirm it is fixed

A successful build reports no errors and the cBot or indicator becomes available to add. Attach it, start it, and watch its log for the first few bars, because building successfully only proves it compiles, not that it runs correctly. A runtime error will appear in the log after it starts rather than at build time.

Stopping it happening again

Take cBots and indicators from their original published source so you get the maintained version rather than an old copy. Note which API version a piece of code targets before editing it. When writing your own, build after each small change so it is obvious which change introduced the error.

Trade with clarity once MetaTrader is running

Market Structure Pro gives one clear TRADE or NO-TRADE verdict on any MT5 chart, with confidence, grade and a plain-English reason. Free 7-day trial, no card.

Start free trial

Other cTrader problems

Stuck on connecting or will not connectLogin fails or cannot find brokerCharts not loadingcBot not running or not appearingMissing symbolsHigh latency or slow execution
Still stuck? Some issues are specific to your broker or your app version, and their support desk can confirm server names, account status and outages. See all cTrader problems or the full help hub.