Skip to content

Worked examples: amount, leverage, stop

Four trades from signal to result, using the same formulas the bot uses. Fees and funding are not included in the examples.

Example 1. Balance percentage, leverage and stop mode

Settings: Balance percentage 5 %, leverage all-10, Custom Stop-Loss 5 %. Balance 2,000 USDT. A LONG signal on BTC: entry 50,000, targets 51,000 and 52,000, target map 1-50 2-50.

StepCalculationResult
Trade amount2,000 × 5 %100 USDT of margin
Position100 × 101,000 USDT = 0.02 BTC
Stop, 📈 price mode50,000 × (1 − 0.05)47,500; loss 1,000 × 5 % = 50 USDT (50 % of margin)
Stop, 📊 margin mode5 % / 10 = 0.5 %; 50,000 × 0.99549,750; loss 5 USDT (5 % of margin)
TP10.01 BTC × (51,000 − 50,000)+10 USDT
TP20.01 BTC × (52,000 − 50,000)+20 USDT

Both targets taken — +30 USDT, that is +30 % on the margin and +1.5 % on the account. One and the same “5 % stop” risks half the margin in price mode and a twentieth of it in margin mode.

Example 2. Sizing from the acceptable loss

Settings: Risk percentage 2 %, leverage x10. Balance 2,000 USDT — so the acceptable loss is 40 USDT. The stop comes from the signal.

SignalDistance to the stopPosition = loss / distanceMargin at x10Check
Entry 50,000, stop 49,0002 %40 / 0.02 = 2,000 USDT = 0.04 BTC200 USDT0.04 × 1,000 = 40 USDT
Entry 50,000, stop 48,5003 %40 / 0.03 ≈ 1,333 USDT ≈ 0.0267 BTC133 USDT0.0267 × 1,500 ≈ 40 USDT

The farther the stop, the smaller the position — the loss on a stop hit is always around 40 USDT. Leverage here changes only the margin, not the risk: at x5 the first trade would have used 400 USDT of margin for the same 40 USDT loss.

Example 3. Target shares and breakeven

Position 0.05 BTC, entry 60,000, stop 58,800. Targets: 61,200, 62,400, 63,600. Target map 1-40 2-30 3-30, TrailingBreakeven (target), trigger TP #1.

EventClosedProfit of the partStop
TP1 filled (61,200)0.02 BTC0.02 × 1,200 = +24 USDTmoves 58,800 → 60,000
The market reversed, stop 60,0000.03 BTC0 USDT

Result: +24 USDT. Without the move the remaining 0.03 BTC would have gone out at 58,800: 0.03 × (58,800 − 60,000) = −36 USDT, making the trade −12 USDT overall.

The same scenario with Moving 1, trigger TP #2, assuming TP1 and TP2 are taken:

EventClosedProfit of the partStop
TP1 filled (61,200)0.02 BTC+24 USDT58,800 (the trigger has not fired yet)
TP2 filled (62,400)0.015 BTC0.015 × 2,400 = +36 USDTmoves to TP1: 61,200
Reversal, stop 61,2000.015 BTC0.015 × 1,200 = +18 USDT

Result: 24 + 36 + 18 = +78 USDT. The volumes add up: 0.02 + 0.015 + 0.015 = 0.05 BTC.

Example 4. Entry Zone and entry distribution

Settings: Fixed amount 200 USDT, leverage x5, Entry Zone 4, Entry distribution DECREASING_EXP, TrailingBreakout % 3 %. A LONG signal on ETH with two entry prices: 3,000 and 2,850.

  1. Position: 200 × 5 = 1,000 USDT.
  2. Entry Zone expands the zone into 4 levels with a step of 50: 3,000, 2,950, 2,900, 2,850. Notification: “📐 Entry Zone: range 3000–2850 expanded into 4 entry levels.”
  3. DECREASING_EXP — the entry nearest to the market gets the most, each next one half as much: shares 8 : 4 : 2 : 1, 15 parts in total.
LevelSharePosition amountVolume
3,0008/15 ≈ 53.3 %533.3 USDT0.1778 ETH
2,9504/15 ≈ 26.7 %266.7 USDT0.0904 ETH
2,9002/15 ≈ 13.3 %133.3 USDT0.0460 ETH
2,8501/15 ≈ 6.7 %66.7 USDT0.0234 ETH

Total: 533.3 + 266.7 + 133.3 + 66.7 = 1,000 USDT.

The price reached 2,950 and turned around — the two upper entries were filled: 800 USDT, 0.1778 + 0.0904 = 0.2682 ETH. The weighted average entry price: 800 / 0.2682 ≈ 2,983. Breakout % 3 % moves the stop to breakeven once the price reaches 2,983 × 1.03 ≈ 3,072: the stop goes to 2,983, and the remaining entries at 2,900 and 2,850 keep waiting for their price.

What to check in your own settings

  • Position = amount × leverage. The loss on the stop is counted from the position, not from the margin — if the stop is set by price.
  • Sizing from the acceptable loss (example 2) keeps the risk constant, but it needs a stop in the signal or in Custom Stop-Loss.
  • The target map and the entry map must each add up to exactly 100 %.
  • The breakeven point is the weighted average price of all filled entries, not the first price from the signal.