B Binary Pro Open the app

Build a trading bot in 15 minutes

No code, no installs, no cost. Four block groups is all a working bot needs — what to trade, when to buy, when to stop, and how much it's allowed to lose. Here's all four.

Open the bot builder →

What you need

A Deriv account, and that's it. Use the demo account throughout this guide — it behaves exactly like a real one and costs nothing to get wrong. The builder itself is free and opens without a login.

The anatomy of a bot

Every bot is four block groups. Get these right and the rest is refinement.

Block group What it decides
Trade parameters Market, trade type, contract type, duration and stake — what the bot buys.
Purchase conditions When to place a trade.
Sell conditions Whether to exit early. Optional — most bots leave it empty.
Restart trading conditions Whether to trade again after a contract settles, and when to stop entirely.

There's also Run once at start, which fires a single time when the bot begins — that's where variables like your stop loss get their opening values.

Step 1 — Set the trade parameters

Open the Bot Builder. The Blocks menu on the left holds every category; drag what you need onto the workspace, or use the search bar if you know a block by name.

Pick a volatility index as your market, then a trade type — Rise/Fall and Even/Odd are the easiest to reason about — and set the duration and starting stake. Begin with the smallest stake offered.

Step 2 — Set the purchase conditions

The simplest useful bot buys when it starts, then buys again each time the previous contract closes. That's enough to get something live. Add conditions later, once you can watch it work.

Step 3 — Add a stop loss

This is the step people skip and the one that matters most. Under Run once at start:

  1. Go to Utility > Variables, create Stop loss threshold, and set it to the most you'll accept losing in a session.
  2. Create a Current stake variable holding your opening stake — any positive number.
  3. In the restart conditions, add a logic block comparing Total profit/loss (found under Analysis > Stats) against your threshold. The bot keeps buying while the comparison holds and stops when it doesn't.

A bot without a stop loss doesn't stop. It trades until you close the browser or the balance runs out, whichever comes first. Thirty seconds of setup here is the difference between an automated strategy and an accident.

Step 4 — Run it on demo

Switch to your demo account and hit Run. Watch the transaction table and the journal underneath the workspace — the journal reports what the bot decided and why, which is how you debug a strategy that isn't behaving.

Give it several hundred trades. Fifty tells you nothing; losing strategies win over fifty trades all the time.

Step 5 — Save it

Hit Save, name it, and download to your device or Google Drive as XML. To bring it back later, hit Import and choose Local or Google Drive — or simply drag the file onto the workspace.

Two faster routes

Set expectations properly

Building the bot is the easy part. What automation genuinely buys you is consistency: it follows your rules exactly, at speed, without hesitating or moving a stop because it has a feeling. That is worth real money to most traders.

What it can't do is create an edge. Every Deriv contract carries a house edge, so run your settings through the backtester and look at the probability of ruin before you go live. Risk disclosure.

More questions? See the FAQ →

Build and run it yourself

Binary Pro is free to use, runs in the browser, and works on a Deriv demo account.

Open the bot builder