Docs › Setup guides › cTrader setup
cTrader setup
A cTrader cBot can send alerts with cTrader's own Http API. Our free HoldAlarmsNotifier cBot posts each alert as JSON to your HoldAlarms webhook URL. HoldAlarms answers as soon as the alert is queued, then delivers it to your endpoint and retries if it fails.
Set it up
- Copy the webhook URL from your dashboard. It looks like
https://api.holdalarms.com/hook/<your token>. - Download
ctrader/HoldAlarmsNotifier.csfrom holdalarms-snippets on GitHub (MIT). - In cTrader Algo, create a new cBot, replace its code with the file and build it.
- Add an instance, paste your webhook URL into Webhook URL and start it. It sends a test alert on start.
- Check Recent alerts on your dashboard.
In your own logic, call SendAlert("buy", Symbol.Ask, "breakout");.
What the cBot sends
{"source":"ctrader","symbol":"EURGBP","action":"buy","price":0.86712,"fired_at":"2026-10-27T14:05:00Z","id":"EURGBP-buy-20261027140500","note":"breakout"}
It sets Content-Type: application/json. If the header ever goes missing, HoldAlarms still accepts the alert and forwards it as text/plain with the same body.
Good to know
AccessRights.Noneis enough. cTrader allows web requests without full access (cTrader: network access).- Web requests don't work in cTrader Cloud. cTrader sends nothing and answers 403 (cTrader: Http.Send). Run the cBot in cTrader Desktop or the cTrader CLI.
- In backtesting and optimisation cTrader sends real web requests. The cBot only sends when it runs live, so a backtest doesn't flood your endpoint.
- The cBot uses
Http.SendAsync, so it keeps running while a request is in flight. Each try waits at most 3 seconds and repeats once on a network error or 5xx, never on a 4xx. - The retry uses the cBot's
Timer. If your own logic usesTimer, merge the two. - Built against the cTrader.Automate NuGet package and unit-tested, not run inside cTrader.
Guide: cTrader webhook alerts that get retried.
HoldAlarms is not affiliated with Spotware. cTrader is a trademark of its owner.
← NinjaTrader setup · Zapier, Make, n8n, Grafana →
HoldAlarms is not affiliated with TradingView. TradingView is a trademark of TradingView, Inc.