← All platforms

C cTrader — full setup

A cBot (C#) that runs inside cTrader's own Automate engine. No API keys, no Python — it trades through your existing cTrader broker account. Follow each step in order.

⚠️ The available symbols depend on your broker (cTrader is a broker platform, not an exchange). If your broker doesn't offer the symbol you picked, you can't trade it there. Test on a demo account first.

1 · Install cTrader (desktop)

  • cBots run only in the desktop cTrader app (Windows or Mac), not the web/phone version.
  • Download it from your broker, or from ctrader.com/download, and log in with your broker account (a demo account is perfect to start).

2 · Download the cBot & open Automate

  1. From your Stragenius dashboard, download stragenius_ctrader_<SYMBOL>.cs.
  2. In cTrader, click the Automate tab in the left sidebar (the little robot / code icon).

3 · Create a new cBot and paste the code

  1. In Automate, click New → choose cBot → language C#. The code editor opens with a template.
  2. Select all of the template code (Ctrl+A), delete it, then open the downloaded .cs file in any text editor, copy everything, and paste it in.
  3. Save: Ctrl+S (or the Save button).

4 · Build (compile) it

  1. Click Build in the top bar (or press Ctrl+B).
  2. Success looks like "Build succeeded" with no errors. If it complains, make sure you pasted the whole file and nothing extra.

5 · Add it to a chart & start it

  1. Open a chart for the symbol you generated the bot for, on the 1-minute timeframe. Brokers name symbols differently: the bot made for BTCUSDT runs on your broker's Bitcoin symbol (often BTCUSD). The timeframe matters — on other timeframes the bot's minute-based rules don't hold.
  2. In Automate, find your cBot in the list and click the + next to its name to add an instance to that chart.
  3. There's nothing to fill in: your leverage, margin and strategy settings are built into the code, so the Parameters panel is empty.
  4. Try it first in Backtesting: in the instance, switch from Trade to Backtesting, pick a period and run. You'll see the trades it would have made on your broker's data.
  5. Click Start (the play ▶ button) next to the instance. It's now trading on your account.

Note: you can't change a running instance's symbol, timeframe or parameters — stop it first, adjust, then start again.

6 · Watch it, and how to stop

  • The Log tab under the chart shows the bot's messages: a start line, each trade opened with its take-profit / stop-loss, and time-based closes. Between trades it stays quiet.
  • Signal skipped: position too small for this broker means your margin per trade is below the broker's minimum volume for the symbol; the line tells you the minimum. Generate the script again with a larger budget.
  • The bot places take-profit and stop-loss with the order, so your broker enforces them even if cTrader is closed.
  • To stop: click the Stop ◼ button on the instance. Quiet periods with no trades are normal — the bot only acts when its rules line up.

7 · Demo → live, and always-on

  1. Run it on a demo account until you trust it, then switch cTrader to your live account and add the instance there.
  2. cTrader must stay open for the bot to trade (some brokers offer cTrader Cloud / a VPS so it runs 24/7 without your PC on).

Common problems

  • Build errors → you didn't paste the whole file, or pasted it into an Indicator instead of a cBot. Delete and redo step 3 as a cBot.
  • Symbol not found → your broker doesn't offer that symbol. Pick a symbol your broker lists.
  • Bot runs but never trades → normal in quiet/flat markets. Check the Log tab; it prints the regime it sees each bar.