Building IF / ELSE IF rules in Tredakit Pro Quick Bot
Quick Bot lets you build a Deriv digit bot by filling in sentences instead of dragging blocks. This guide walks through each part of the page so you know exactly what your bot will do.
How Quick Bot thinks
A Quick Bot has two rule sections. Initial Purchase rules are checked first. If none of them fires, the Recovery Purchase rules are checked when their signal check is due. Within each section, rules are read from top to bottom and the first one that matches decides the trade. That is why the first rule says IF and the rest say ELSE IF.
Each rule reads like a sentence: IF the last [1–10] digits are [less than / greater than / greater or equal to / less or equal to / equal to] digit [0–9] then Purchase [contract], with a Prediction digit for Over, Under, Matches and Differs.
Set the trade parameters first
- Market – choose from Continuous Indices (volatility), Jump Indices, Step Indices or Crash/Boom Indices. Digit contracts need a market that supports digits.
- Trade type and Contract type – for example Over/Under, Even/Odd, Matches/Differs or Rise/Fall.
- Duration – how many ticks each contract lasts.
- Stake – the starting amount per trade.
- Martingale – the multiplier applied after a loss. Leave it off unless you understand the risk.
- Max stake, Take profit, Stop loss and Max runs – your safety limits. Set all of them.
Write your Initial Purchase rules
- Turn on Enable Analysis in the Initial Purchase card.
- Pick an analysis mode: Pattern Analysis (every one of the last N digits must pass), Percentage Analysis (at least the threshold percentage must pass) or Combo Analysis (the latest digit must pass and the threshold percentage must be met).
- Choose a Signal Check: On Every Trade, After Every N trades, On First Entry Only, or After Loss Only.
- Fill in the first IF rule, for example: IF the last 3 digits are less or equal to digit 2, then Purchase Over with prediction 2.
- Press + Add condition to add an ELSE IF rule, for example: ELSE IF the last 3 digits are greater or equal to digit 7, then Purchase Under with prediction 7.
- Remove a rule with the bin icon. At least one rule must remain.
Build your first rule set and run it on your demo account.
Open Quick BotAdd a Recovery Purchase plan
The Recovery Purchase card works the same way and has its own analysis mode, signal check and rules. A common setup is After Loss Only with a contract that has a higher payout, so a win can cover the previous loss.
Be honest with yourself about what this means: higher-payout digit contracts win less often. If you also switch on martingale, each loss raises the stake while the chance of winning drops. Our risk management guide shows how quickly that adds up.
Run, save and share
Press Run to start and Stop to end the session. The results panel shows runs, won and lost, profit or loss, and the next stake. On a real account you must tick the box confirming you understand the bot trades real money.
Use Download bot to save your rules as a file, Load bot to open a saved file, and Reset bot to start from the defaults. Quick Bot files from the Free Bots library open here too.
A note on what rules can and cannot do
Rules decide when you trade, not whether you win. On Deriv's random indices, a run of low digits does not make a high digit more likely next. Quick Bot is a good way to test an idea quickly and cheaply on demo. It is not a way to find a guaranteed edge.
Frequently asked questions
What is the difference between IF and ELSE IF in Quick Bot?
Rules are checked top to bottom and only the first match trades. The first rule is labelled IF; every rule added after it is an ELSE IF that is only checked if the ones above did not match.
Which contracts can Quick Bot trade?
Digit contracts (Over, Under, Even, Odd, Matches, Differs) plus Rise/Fall, Rise/Fall Equals and Asian Up/Down. Some other types appear in the list but are marked as not supported.
Can I import a Quick Bot file from another site?
Load bot accepts Tredakit Pro Quick Bot files and some older Quick Bot formats. If a file cannot be read, Quick Bot shows an error instead of guessing.
Does Quick Bot need coding?
No. You choose values from drop-downs and number boxes. No blocks or code are needed.
More Tredakit Pro guides
Trading Deriv derived indices and options carries a high level of risk and you can lose all of the money you put in. Tredakit Pro is an independent third-party tool on the Deriv API and is not run by Deriv. Nothing here is financial advice. Practise on a demo account first.