cTrader cBot development

We code your trading rules as cTrader cBots, indicators and trade managers in C# or Python, with daily loss and drawdown guards, then test them in cTrader backtesting and on a demo account before anything trades live. We also build Open API apps for multi-account tools.

What we build in cTrader

  • cBots (automated strategies) for forex, indices, metals and other CFDs offered by your cTrader broker, from rules you define: entries, exits, stop loss, take profit, trailing stops, sessions and position sizing.
  • Custom indicators drawn on the chart, with sound or on-screen alerts and, when the cBot runs locally, Telegram messages.
  • Trade managers for manual traders: break-even, partial close, trailing stops and risk-based lot sizing from your stop distance.
  • Plugins: extra panels inside cTrader for account monitoring, daily loss checks or one-click tools.
  • Conversions from MT4/MT5 (MQL4/MQL5), TradingView Pine Script or NinjaScript into a cBot, checked signal by signal against the original.
  • Open API apps: a Python or Node.js program on a server that trades a cTrader account through the cTrader Open API after the account owner authorises it, for multi-account tools, dashboards and trade copiers.
  • Fixes and reviews of existing cBots that trade differently live than in the backtest, or that stopped working after a platform update.

A cBot follows the rules you give it and the limits you set. It does not find an edge on its own, and leveraged forex and CFD trading carries a real risk of loss.

How a cBot works

  1. Market dataTicks and bars from your cTrader broker
  2. Strategy logicYour rules in C# or Python, run on each tick or bar close
  3. Risk guardsDaily loss, max drawdown, max volume, session hours
  4. OrdersMarket, limit and stop orders with protection attached
  5. Logs and alertsTrades, errors and limit hits in the log or on Telegram

A cBot runs inside cTrader on Windows or Mac, on a VPS, or on cTrader's own cloud. The cloud is convenient but has limits (below), so we choose where it runs based on what the cBot needs to do.

Where your cBot runs: local, VPS or cTrader cloud

OptionGood forLimits to know
cTrader Windows or Mac on your computerTesting and part-time tradingThe app must stay open; the cBot stops when the computer sleeps or loses internet
cTrader on a Windows VPS24/7 trading with Telegram alerts, web requests or filesA monthly VPS cost; you keep the VPS updated
cTrader cloudSimple cBots that only need price data and orderscTrader's help pages list a Linux sandbox where HTTP requests are not sent, file reads and writes do nothing, local storage is lost on restart and Windows-only libraries do not load; live accounts run up to 10 cloud instances, demo accounts 1 instance for up to 7 days, and brokers can vary these rules

If you want Telegram alerts, a news filter fed from the web, or a cBot that reads a settings file, we plan for a VPS or local run and keep the cloud version to the trading logic only. These limits come from cTrader's documentation and can change, so we check them again before each build.

Testing: from backtest to live

StageTool in cTraderWhat we check
BacktestBacktesting in cTrader Windows or Mac, on tick or bar dataSignals match your rules; results include spread and commission
RobustnessOptimisation, with a custom fitness score where usefulWhether settings hold up on data they were not tuned on, rather than a curve fit
Visual checkVisual backtesting on the chartEntries, exits and trailing stops land where the rules say
Forward testA demo account on live pricesReal spreads, slippage and timing, for at least one to two weeks
Live startYour broker or prop accountMinimum volume first, with tight limits you raise yourself

cTrader notes that demo accounts have rate limits on placing, changing and closing orders, and going over them blocks trading for a while, manual trades included. We keep order traffic well below that and log every rejected order.

C# or Python cBots?

cTrader supports cBots and indicators in C# (.NET) and in Python. C# is the original language, with the most examples, full access to .NET libraries through NuGet, and debugging in Visual Studio or Rider. Python suits traders who already have their logic in Python or want pandas and numpy for calculations. We usually recommend C# for order-heavy cBots and either language for indicator logic, and the source code is yours whichever we use.

Prop-firm guards

Several forex prop firms offer cTrader accounts. We can build guards that stop new trades and close positions before a rule is broken: a daily loss limit measured the way your firm measures it (balance or equity, and at which time zone's day start), a maximum drawdown, a maximum lot size, no trading around set news times, and flat before the weekend. Firm rules differ and change often, including whether cBots or a VPS are allowed at all, so you check your firm's current terms and we code the numbers you give us. On MetaTrader instead? See MT5 Expert Advisor development.

Standard features

  • All key settings as cBot parameters, with plain-English names, groups and defaults
  • Risk-based volume from your stop distance and account size, rounded to your broker's lot steps
  • Daily loss cap, maximum positions and session hours that the cBot enforces itself
  • Clear handling of rejected orders, reconnects and restarts with positions already open
  • Labels on every position so the cBot only manages its own trades
  • Readable, commented source code that you own

Tech stack

cTrader Windows and Mac with cTrader Algo; C# (.NET) and Python cBots; Visual Studio, Rider or VS Code; cTrader backtesting, optimisation and demo accounts for testing; cTrader Open API for external apps; Python (FastAPI) or Node.js for servers and TradingView webhook receivers; Telegram Bot API for alerts; a Windows VPS for 24/7 runs.

cTrader, MT5 or NinjaTrader?

cTrader suits forex and CFD traders whose broker or prop firm offers it and who like C# or Python over MQL5. MT5 is supported by more forex brokers and prop firms. NinjaTrader is the usual choice for futures. A custom bot on a broker API makes sense when you need several brokers or heavy data work; see trading bot development. If you trade from TradingView alerts, a webhook bridge can place the orders in cTrader through the Open API. We will say which fits your strategy before you spend money.

cTrader cBot development cost: planning ranges at $50/hour

ProjectTypical hoursTypical cost
Custom indicator with alerts10–30 h$500–$1,500
Trade manager (break-even, partials, trailing, lot sizing)20–40 h$1,000–$2,000
Convert an MT4/MT5 EA or Pine Script strategy to a cBot20–45 h$1,000–$2,250
cBot from clear rules, one symbol30–60 h$1,500–$3,000
cBot with prop-firm guards, multi-symbol and Telegram alerts50–100 h$2,500–$5,000
Open API app: multi-account dashboard or copier service80–160 h$4,000–$8,000

Running costs are a VPS if you want 24/7 running outside the cTrader cloud, and any data or signal services you use. Try your own mix in the bot cost calculator.

How we work

  1. Rules spec. You describe the strategy; we write it back as a precise spec with every limit, so nothing is left to guesswork.
  2. Build and backtest. We code the cBot and share backtest results with spread and commission included.
  3. Demo run. It runs on a demo account on live prices until its trades match your rules.
  4. Small live start. You run it on your account with minimum volume and tight limits.
  5. Handover. Source code, the .algo file to install, a settings guide, and optional support.

Risks and compliance

  • Forex and CFDs are leveraged. Automated trading can lose money quickly, and limits reduce damage but cannot remove risk. We never promise returns.
  • You are responsible for cTrader's and your broker's terms, your prop firm's rules and the laws where you live. Selling cBots or signals, or trading other people's money, may need a licence.
  • We do not build cBots that hide automation where it is banned, copy trades across prop accounts against a firm's rules, or exploit price feed or platform errors.

Hire a cTrader developer

You work directly with our engineers in Lahore, Pakistan, building software for clients worldwide since 2014. Send your rules, a chart screenshot or your existing cBot through the contact form, or hire us on Freelancer.com, where we are a Preferred Freelancer with a 4.9 average from 356 reviews. Every bot we offer is listed on the bot development page.

Questions clients ask

How much does a cTrader cBot cost to build?

At $50 per hour, a custom indicator is usually 10 to 30 hours ($500 to $1,500). A cBot from clear rules on one symbol is usually 30 to 60 hours ($1,500 to $3,000). A cBot with prop-firm loss guards, several symbols and Telegram alerts is about 50 to 100 hours ($2,500 to $5,000).

Can cBots be written in Python?

Yes. cTrader supports cBots and indicators in Python as well as C#. C# has more examples and full .NET and NuGet access; Python suits logic you already have in Python or calculations with pandas and numpy. We will recommend one based on your strategy, and you own the source code either way.

Can my cBot run in the cTrader cloud?

Often, yes, if it only needs prices and orders. cTrader's documentation says cloud cBots run in a Linux sandbox where HTTP requests are not sent, file operations do nothing and Windows-only libraries do not load, with up to 10 instances on live accounts and 1 on demo accounts for up to 7 days. A cBot that sends Telegram alerts or reads web data should run on a VPS instead.

Can you convert my MT5 Expert Advisor or TradingView strategy to cTrader?

Yes. We rewrite the rules as a cBot and compare signals with the original on the same data, because bar times, spreads and order handling differ between platforms. If you would rather keep the strategy in TradingView, we can build a webhook receiver that places the orders in cTrader through the Open API.

What is the difference between a cBot and the cTrader Open API?

A cBot runs inside cTrader, on your computer, a VPS or the cTrader cloud. The Open API lets a separate program, for example Python on a server, trade a cTrader account after the account owner authorises it. We use cBots for single strategies and the Open API for multi-account tools, dashboards and copiers.

Will the cBot be profitable?

No developer can promise that. The cBot trades the rules you define, with the limits you set. Backtests often look better than live trading because of spreads, slippage and fills, so we forward test on a demo account before you trade real money. Forex and CFDs are leveraged and you can lose more than you expect.

Have a project that needs a reliable engineering team?

Tell us what you want to build. You will get a reply within one business day, with questions or a rough estimate.

Start a project