Deriv Bot Builder: How to Build, Test and Know Its Limits

Published November 17, 2026 · In Bot Development

The Deriv Bot builder is the block workspace inside Deriv Bot, the browser tool Deriv gives its clients for automating options trades without writing code. You drag blocks into a strategy, run it from the same tab and save it as an XML file. Menu names and defaults here follow Deriv’s help centre and blog as of 17 November 2026, and Deriv can change them.

It handles one market and one trade setup well. It struggles once a strategy needs outside signals, a server that never sleeps or limits that survive a restart. Deriv also calls its products complex derivatives with a significant risk of loss, and a bot keeps placing trades through a losing run unless a rule stops it.

What Deriv Bot is and where Bot Builder fits

Deriv’s help centre describes Deriv Bot as a web-based strategy builder for trading digital options. Many traders still call it DBot, its older name. According to the Deriv Bot platform page, it covers forex, stock indices, commodities and derived indices, and it needs no coding.

Bot Builder is the tab where you assemble the strategy. The Blocks menu groups the blocks into categories, and a search bar above them finds a block by name. You can start in three ways: build from a blank workspace, load one of Deriv’s quick strategies, or import a bot someone saved earlier.

Deriv says its synthetic indices part of its derived indices, come from a cryptographically secure random number generator, trade around the clock including weekends, and do not react to real-world news. A bot on these markets cannot lean on news or economic events, and it keeps trading at 3 a.m. on a Sunday if you leave it running.

The four block groups in the Deriv Bot builder

Deriv’s blog guide to building a basic bot (updated 14 May 2024) splits a bot into four groups. Three are mandatory and one is optional.

Deriv Bot builder block groups: trade parameters, purchase conditions and restart trading conditions are required, sell conditions are optional
Every bot in the Deriv Bot builder needs three block groups; sell conditions are optional.

Trade parameters set the market, trade type and contract type. The same area holds Run once at start, for anything that should happen only when the bot starts, and two error settings. Deriv turns Restart buy/sell on error off by default and Restart last trade on error on. Trade options sit here too: duration and stake for options, or multiplier, stake, take profit and stop loss for multipliers.

Purchase conditions decide which contract the bot buys and when. Deriv’s guide calls it the most important block. Restart trading conditions run after each contract and decide whether the bot trades again, so they are where you change the next stake or stop the bot.

Sell conditions let the bot sell before expiry at the market price. They do not work with tick contracts, and Deriv says they suit multipliers more than options. Two other menus matter later: Utility holds Variables, and Analysis holds Stats, where the Total profit/loss block lives.

Build a first bot on a demo account

Deriv’s guide builds the simplest working bot in a handful of moves. Do it on the demo account first, which Deriv’s blog says is preloaded with 10,000 USD of virtual money.

Six steps to a first Deriv bot: open Deriv Bot on demo, set trade parameters, set stake and duration, add purchase conditions, review restart conditions, press Run
The order Deriv’s own guide uses for a basic bot in the Deriv Bot builder, done on demo.
  1. Log in, open Deriv Bot from Trader’s Hub and switch to your demo account.
  2. In Trade parameters, pick the market, the trade type (Rise/Fall, for example) and the contract type.
  3. Enter the trade options: duration and stake.
  4. In Purchase conditions, choose the contract to buy, such as Rise.
  5. Review the restart trading conditions. The default trades again after every contract.
  6. Press the green Run button at the top right, under your balance.

Step 5 matters most. Once running, the bot repeats the trade until you stop it, with no ceiling unless you build one. Pressing Stop lets an open contract finish and places no new one. Trade details then appear in the Transactions and Journal tabs on the right, and Reset clears them.

Quick strategies and the Martingale maths

A quick strategy builds the blocks for you. Deriv offers three: Martingale, D’Alembert and Oscar’s Grind. You pick one, then the asset, trade type and parameters, and the finished blocks load into the workspace, where you can edit, run or save them.

All three change the stake after a win or a loss; none of them predicts the market. Martingale needs the most care. In its classic form it doubles the stake after every loss. Start at 1 USD and lose six contracts in a row: you have lost 1 + 2 + 4 + 8 + 16 + 32 = 63 USD, and the seventh stake is 64 USD to win back a 1 USD gain. Deriv’s quick strategy asks for its own parameters, so read what they do in the blocks before you run it.

On a market that trades all weekend, a losing streak has plenty of time to happen. Always cap the number of recovery steps and give the bot a loss limit.

Saving, importing and sharing XML files

Press Save on the toolbar, name the bot and choose your device or Google Drive. Deriv Bot downloads it as an XML file. To load one again, drag the XML onto the workspace, or use Import and pick Local or Google Drive, as the import help page shows.

Saved files are also how bots get shared, and people swap “Deriv bot XML” files on GitHub and Telegram. An XML file holds rules, not results, so a “high win rate” label on it proves nothing. Before you run a stranger’s file, load it on demo and read every block. Check the starting stake, what the restart conditions do after a loss, any multiplier on the stake, and whether anything ever stops the bot.

Add a loss limit, then test before real money

Deriv’s help article on controlling losses gives a block recipe. First, create two variables under Run once at start: Stop loss threshold, your loss limit, and Current stake, any positive amount. Next, set Purchase conditions to buy a contract at the start and after each one closes. Finally, add a logic block that compares Total profit/loss, from Analysis > Stats, with the threshold, so the bot keeps buying only until that limit is hit.

Loss limit logic in Deriv Bot: set Stop loss threshold and Current stake once, buy, read Total profit/loss after each contract, stop at the limit or trade again
Deriv’s own loss-control recipe, drawn as the loop the bot runs after each contract.

Build the check exactly as Deriv’s article shows, then prove it on demo with a small threshold before trusting it. Deriv’s platform page also lists stop loss, take profit and deal cancellation tools, plus trade notifications through Telegram, which help when you are away from the screen.

Demo to real checklist for a Deriv bot: run on demo, watch a losing streak, confirm the loss limit stops it, save the XML, go live with a small fixed stake
Move to a real account only after the loss limit has stopped the bot on demo.

Run the demo through at least one losing streak. Confirm the limit stops the bot. When you move to real money, start with a small fixed stake, and save the tested XML so you know exactly which version is live.

Where the blocks run out

The biggest limit of the Deriv Bot builder is where the bot lives. Deriv’s platform page says the bot runs in your browser and pauses if the browser is closed, so the tab has to stay open on a desktop or phone.

The logic is limited to what the blocks can express. Deriv’s pages describe Telegram as a way to get notifications out, not as a signal source in. The Deriv Bot section of the help centre lists nine articles, and none covers taking entries from a TradingView alert, a Telegram channel or your own indicator outside Deriv.

If you want a permanent trade log in your own database, a daily limit that holds after a restart, or one bot handling several markets at once, the builder is the wrong tool.

When a custom bot is the better route

Deriv Bot compared with a custom Deriv API bot: browser tab versus server, blocks versus code, XML versus source code, Deriv tools versus your own limits
The same Deriv account can be traded from blocks in a browser tab or from code on a server.

A coded bot talks to the Deriv API directly. Its REST side handles account tasks and one-time passwords, while WebSocket connections handle live prices and trades. A bot signs in with OAuth 2.0 or a Personal Access Token, and the demo and real trading sockets each need a one-time password. Because it runs on your own PC, a server or a VPS, it keeps working with the browser closed.

It is worth paying for when entries come from outside Deriv, when the bot must run unattended, or when you need limits and logs that survive restarts. If the Deriv Bot builder already does the job, keep using it. Code adds hosting, maintenance and reconnect handling that you now own.

Outgrown the blocks? Send your saved XML file and your rules in plain words to our deriv bot developer team on WhatsApp. You get a fixed quote, and we tell you plainly if the builder already covers it. For budgets, see trading bot cost. Other platforms are covered under binary options bot development, and the general process is in how to build a trading bot.

Deriv Bot builder questions

Does Deriv allow bots?

Yes. Deriv runs its own bot platform, Deriv Bot, and publishes an API for developers at developers.deriv.com. Market data from its public WebSocket needs no login at all.

Is the Deriv Bot builder free?

No separate fee for Deriv Bot appears on Deriv’s platform page, and you can practise on a demo account with virtual money. Every contract on a real account still risks your own stake.

Which trade types can a Deriv bot use?

Deriv’s guide uses Rise/Fall as its example. Digits contracts come as Matches/Differs, Even/Odd or Over/Under, and some ask you to predict the last digit of the price, from 0 to 9, when the contract closes.

Can Deriv Bot keep trading when I close the browser?

No. Deriv says the bot pauses when the browser closes. A bot coded against the Deriv API can run on a VPS instead.

Can a developer turn my Deriv Bot XML into code?

Yes. The XML stores the blocks, so a developer can rebuild the same rules in Python or JavaScript, then add what the blocks lacked. Test the coded version on demo against the original before going live.

Risk warning: Options and multipliers on Deriv are complex derivative products with a significant risk of loss, and you can lose your whole stake quickly. Derived indices run around the clock, so a bot left running keeps taking risk at night and at weekends. Martingale and other stake-raising rules can empty an account in one losing run. Automation does not remove any of this risk. Test every bot on a demo account first. This article is for education only and is not financial or investment advice; no bot can promise profit.

Want this built for you?

We develop it as a service — reliable, tested, and yours to own.

Message Us on WhatsApp
WhatsApp