BRINOVS blocks: Stake management (10 to 13)

Guide to the BRINOVS stake blocks: a stake plan with a hard cap, a balance percent cap, a volatility-scaled stake, a position size calculator and a simple one-block martingale.

Stake management (blocks 10 to 13)

The stake is the money you put on one contract. The first four blocks in this section work out a stake from what has already happened: your finished rounds, your balance, or how much the market is moving. They are value blocks, so each one gives back a number. The last two, Martingale and Martingale stake, are the quick way to do a martingale: one block in "Restart trading conditions" instead of many Deriv blocks. You find them in the Blocks menu under BRINOVS, in the sub-folder "Stake management" (soft violet). The usual place is the Stake box of the Trade options inside "1. Trade parameters"; the bot asks the block for the next stake each time it needs one. You can also put one block inside another, for example a Stake plan inside a Stake percent cap. None of these blocks makes a win more likely, and raising a stake after a loss can empty an account quickly.

The blocks

Stake plan

  • Kind: BRINOVS custom, block #10
  • Type id: bnv_stake_plan
  • Shape: Value block (gives a number)
  • Where it goes: Anywhere a number is wanted. It is made for the Stake box of the Trade options in "1. Trade parameters".
  • What it does: Gives the next stake, worked out from your finished rounds. It can keep the stake fixed, or raise it after each loss by a step, by a multiplier or along your own list. A maximum stake is required.
  • Inputs:
    • Stake plan: base stake: the starting stake (toolbox starts at 1).
    • mode: "fixed" (first choice), "add a step after a loss", "multiply after a loss" or "custom sequence".
    • step or multiplier: the amount added, or the number multiplied by, after each loss (starts at 2).
    • custom sequence: your own list of stakes, typed with commas (starts as 1, 2, 4, 8). Used only in custom mode.
    • max steps: how many raises are allowed, a whole number from 1 to 50 (starts at 4).
    • MAX STAKE (required): the hard cap, a number above 0 (starts at 16).
    • go back to the base stake: "after a win" (first choice), "only after max steps", "by hand (Resume ticket)" or "when the total profit of this run is above 0".
    • Resume ticket: a whole number, 0 or more (starts at 0).
    • recover the last losses in one win: "off" (first choice) or "on". Read the next paragraph before you switch it on.
  • Gives back: The next stake, as a number, never above MAX STAKE.
  • How it works: A round is one purchase; a hedge or a multi-contract purchase counts as one round with its profits added up. A loss moves one step up. A loss at the last step goes back to the base stake. A win goes back to the base stake only if you chose "after a win". A round that ends at exactly 0 changes nothing. With "when the total profit of this run is above 0", the plan looks at the total profit of the rounds finished in this run: while the total is at or below 0 a loss raises the step and a win KEEPS the step; the moment the total is above 0 the stake goes back to the base (a loss while the total is still above 0 does not raise it). A multiplier of 0 or 1 means no raise (martingale off). To restart by hand, raise the Resume ticket above its old value. Recover the last losses in one win (ON): after a loss the stake is worked out so that ONE win pays back everything lost since the plan was last at the base stake, to the cent and rounded up. Example: two contracts of 1 each, each paying 2.22. One wins +1.22 and one loses -1, so the round is +0.22. The next round loses both (-2), and the total is -1.78. The plan wants the total back at +0.22, so it must win 2.00. One win of a round like this nets 0.22 for every 1 staked, so the next stake is 9.10. How much a win pays is learned from the last finished round, from what its own contracts would have paid (so it follows the contract type and a hedge pair; for a hedge it uses the smallest single win, to be safe). If that round's payouts are not known, or a win would not pay, the plan uses its normal step. The MAX STAKE is still the limit: if the stake needed is above it, the stake is held at the MAX STAKE and the journal says a win may not win everything back. A loss at the recovery stake makes the next stake bigger again. It can raise stakes very fast and empty an account: the MAX STAKE is the only brake, so choose one you can afford to lose. It describes your past results; it does not make a win more likely.
  • Example:
┌─ 1. Trade parameters ──────────────────────────────────────┐
│ Stake: [ USD ▾ ] ( Stake plan: base stake (1)              │
│  mode [ multiply after a loss ▾ ]  step or multiplier (2)  │
│  max steps (4)  MAX STAKE (required) (16) )                │
└────────────────────────────────────────────────────────────┘

After losses the stakes run 1, 2, 4, 8, 16. A loss at 16 goes back to 1, and with the first "go back" choice a win does too. The tooltip shows the worst case, 16.

  • Good to know:
    • It refuses and stops the bot without a MAX STAKE, if the base stake is above it, or if a custom sequence has a number above it or fewer than 2 numbers.
    • Once the block has run, its MAX STAKE is enforced on every real purchase even if you delete the block: a larger stake is refused. A pretend (dry run) purchase is not stopped and has its own step count.
    • It needs the execution layer. Multiply modes can empty an account quickly, so pick a cap you can afford to lose.

Stake percent cap

  • Kind: BRINOVS custom, block #11
  • Type id: bnv_stake_percent_cap
  • Shape: Value block (gives a number)
  • Where it goes: Anywhere a number is wanted, usually the Stake box of the Trade options in "1. Trade parameters". It can wrap a Stake plan.
  • What it does: Keeps a stake from being bigger than a percentage of your balance, and never above your ceiling. It asks Deriv for a fresh balance every time it works out a stake.
  • Inputs:
    • Stake percent cap: stake: the stake to check, a number above 0 (starts at 1).
    • at most ... % of the balance: above 0 and at most 100 (starts at 5).
    • balance to use: "at the start of this run" (first choice) or "now".
    • floor: the smallest stake you accept, 0 or more (starts at 0.35).
    • ceiling: the biggest stake you accept, above 0 (starts at 100).
  • Gives back: An approved stake: the smaller of your stake, the percentage of the balance and the ceiling, rounded down to cents.
  • How it works: "At the start of this run" uses the first fresh balance the bot saw in this run. "now" uses the balance at that moment. If the stake is cut, the journal says so. If the cap comes out below your floor, the bot stops instead of raising the stake.
  • Example:
┌─ 1. Trade parameters ──────────────────────────────────────┐
│ Stake: [ USD ▾ ] ( Stake percent cap: stake (8)            │
│    at most (5) % of the balance                            │
│    balance [ at the start of this run ▾ ]                  │
│    floor (0.35)  ceiling (100) )                           │
└────────────────────────────────────────────────────────────┘

With a starting balance of 100, 5% is 5. The stake of 8 is cut to 5.

  • Good to know:
    • The bot stops with the reason if the balance is unknown, zero, older than 60 seconds, or in a different currency than the trade.
    • It also stops if the floor is above the ceiling, or the cap is below the floor.
    • It checks only a stake that goes through this block. Unlike the Stake plan cap, it is not enforced on every purchase.

Volatility-scaled stake (experimental)

  • Kind: BRINOVS custom, block #12
  • Type id: bnv_volatility_stake
  • Shape: Value block (gives a number)
  • Where it goes: Anywhere a number is wanted, usually the Stake box of the Trade options in "1. Trade parameters".
  • What it does: Makes the stake smaller when the market moves more than usual and bigger when it is calm, always between your floor and your ceiling. Volatility means how much the price jumps around.
  • Inputs:
    • EXPERIMENTAL Volatility-scaled stake: base stake: a number above 0 (starts at 1).
    • compare the last ... ticks: a whole number from 10 to 200 (starts at 50).
    • rule: "full (stake x usual / now)" (first choice) or "gentle (square root of that)".
    • floor: the smallest stake, 0 or more (starts at 0.35).
    • ceiling: the biggest stake, above 0 (starts at 5).
  • Gives back: The scaled stake as a number, between the floor and the ceiling, rounded down to cents.
  • How it works: "Usual" is the average size of a tick move over the last 1000 ticks of the traded market. "Now" is the same measure over the last ticks you choose. Full means base stake x usual / now. Gentle means base stake x the square root of that.
  • Example:
┌─ 1. Trade parameters ──────────────────────────────────────┐
│ Stake: [ USD ▾ ] ( EXPERIMENTAL Volatility-scaled stake:   │
│    base stake (1)  compare the last (50) ticks             │
│    rule [ full (stake x usual / now) ▾ ]                   │
│    floor (0.35)  ceiling (5) )                             │
└────────────────────────────────────────────────────────────┘

If the market moves twice as much as usual, the stake becomes 0.5. If it is half as lively as usual, the stake becomes 2.

  • Good to know:
    • It is experimental. The bot stops with the reason if the price history cannot be read, has fewer than 100 prices, or did not move at all.
    • A bigger stake in calm periods is a bigger risk. Set a ceiling you can afford.
    • It does not make a win more likely.

Position size (experimental)

  • Kind: BRINOVS custom, block #13
  • Type id: bnv_position_size
  • Shape: Value block (gives a number)
  • Where it goes: Anywhere a number is wanted.
  • What it does: A calculator for multiplier-style trades with a stop loss and a take profit. It is not useful for digit contracts. It only does arithmetic and buys nothing.
  • Inputs:
    • EXPERIMENTAL Position size: capital: your money for the trade (starts at 1000).
    • risk ... % of it: the share of the capital you risk, above 0 and at most 100 (starts at 1).
    • entry: the entry price (starts at 100).
    • stop loss: the price where you give up (starts at 99).
    • take profit: the price where you take the win (starts at 102).
    • give me: "the position size" (first choice), "the risk / reward ratio" or "the amount at risk".
  • Gives back: A number. The amount at risk is capital x risk share. The position size is that amount divided by the distance from the entry to the stop loss. The ratio is the distance to the take profit divided by the distance to the stop loss.
  • How it works: It calculates and returns a number straight away. It does not look at the market. The position size is rounded down to 4 decimals, the amount at risk to cents and the ratio to 2 decimals.
  • Example:
┌─ 1. Trade parameters ──────────────────────────────────────┐
│ Run once at start:                                         │
│   set [ size ▾ ] to                                        │
│     ( EXPERIMENTAL Position size: capital (1000)           │
│       risk (1) % of it  entry (100)  stop loss (99)        │
│       take profit (102)  give me [ the position size ▾ ] ) │
└────────────────────────────────────────────────────────────┘

The amount at risk is 10 and the stop loss is 1 away from the entry, so the size is 10. The ratio would be 2 and the amount at risk 10.

  • Good to know:
    • The stop loss and the take profit must be on opposite sides of the entry, and neither can equal it, or the bot stops with the reason.
    • The entry, the stop loss and the take profit must all be prices above 0.
    • It is only arithmetic. It does not make a win more likely.

Martingale

  • Kind: BRINOVS custom, extra block (no catalogue number)
  • Type id: bnv_martingale
  • Shape: Action block in the middle of a stack (blocks can go above and under it)
  • Where it goes: Inside "3. Restart trading conditions" (after a trade), above "Trade again". Anywhere else it greys out, like Deriv's "Result is" block, because only there the result of the last trade is known.
  • What it does: A whole martingale in one block. After each trade it looks at the result. If the result matches, it changes the stake of the NEXT trade. You need no variable: the Stake box of Trade options is the start stake.
  • Inputs:
    • If result is: "loss" (first choice) or "win".
    • what to do: "multiply" (first choice), "increase", "decrease" or "set".
    • stake by: the number (toolbox starts at 2). Multiply by 2 doubles, increase by 2 adds 2, decrease by 2 takes 2 away, set to 2 makes the stake 2.
    • "continuously" (first choice: again on each result in a row) or "only once".
    • start at ... in a row: how many results in a row before it acts, a whole number from 1 to 50 (starts at 1 = at once). Empty means 1.
    • max stake: the biggest stake it may reach, a number above 0 (starts at 50). Required.
  • How it works: A round is one purchase; a hedge or a multi purchase counts as one round with its profits added up. A round that ends at exactly 0 changes nothing.
    • continuously: with multiply by 2, losses in a row give 1, 2, 4, 8, 16.
    • only once: with multiply by 2, the first loss gives 2 and more losses keep it at 2.
    • start at 2: the first loss changes nothing, the second loss in a row changes the stake (and, with "continuously", every loss after it).
    • The other result (a win, for a "loss" block) sends the stake back to the start stake. If you put a second Martingale block for that result, that block decides instead. Example: "If result is win, set stake by 1".
    • Max stake: if the next stake would be above it, the stake goes back to the start stake, and the journal says so. A decrease never goes below 0.35 (or the start stake, if it is smaller).
    • The journal says every change, for example "BRINOVS martingale: loss 2 in a row: multiply by 2, the next stake is 4."
    • Nothing is saved: every run starts from the start stake. Pretend (Dry run) rounds have their own count.
  • Example:
┌─ 3. Restart trading conditions ────────────────────────────┐
│ [ If result is [ loss ▾ ] [ multiply ▾ ] stake by (2)      │
│   [ continuously ▾ ] start at (1) in a row                 │
│   max stake (50) ]                                         │
│ Trade again                                                │
└────────────────────────────────────────────────────────────┘

With a Stake box of 1: loss, loss, loss gives 2, 4, 8; then a win gives 1 again. After 1, 2, 4, 8, 16, 32 the next would be 64, above 50, so it goes back to 1.

  • Good to know:
    • It refuses and stops the bot, with the reason, if the number is not above 0, the max stake is missing, "start at" is not a whole number from 1 to 50, "set" is above the max stake, or the start stake is above the max stake.
    • Do not use it together with a Stake plan block in the Stake box: the bot stops and says "use one or the other".
    • Purchase with prediction with its own stake, Hedge purchase and Multi purchase use their own stakes, so this block does not change them. Purchase, Purchase with prediction without its own stake, and the Hedge toggle use it.
    • Do not also change a stake variable yourself in the same bot: two martingales would fight.
    • It needs the execution layer. Raising stakes after losses can empty an account quickly. It does not make a win more likely.

Martingale stake

  • Kind: BRINOVS custom, extra block (no catalogue number)
  • Type id: bnv_martingale_stake
  • Shape: Value block (gives a number)
  • Where it goes: Anywhere a number is wanted, for example in a Notify or Print block in "3. Restart trading conditions", under the Martingale block.
  • What it does: Gives the stake the next trade will use after the Martingale block.
  • Inputs: none.
  • Gives back: A number: the Stake box of Trade options until a Martingale block changes it. Before the first trade starts it is 0.
  • How it works: It works out the last finished round the same way the Martingale block will, without counting it twice.
  • Example:
┌─ 3. Restart trading conditions ────────────────────────────┐
│ [ If result is [ loss ▾ ] [ multiply ▾ ] stake by (2) ... ]│
│ Notify [ green ▾ ] with sound [ silent ▾ ]                 │
│   ( join ("Next stake: ") ( Martingale stake ) )           │
│ Trade again                                                │
└────────────────────────────────────────────────────────────┘
  • Good to know:
    • It only reads; it changes nothing.

Build a bot with these blocks

BRINOVS is free to open. Sign in with Deriv, open the Bot Builder, and try everything on a demo account.

Open BRINOVS

BRINOVS Digits is a free bot builder and trading page built on Deriv's Bot Builder. Trading carries risk and you can lose money. Nothing in this guide is financial advice or a promise of profit. Test every bot on a demo account first.

Guide home · Open BRINOVS