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 ×10 for “All coins”, Own stop-loss 5 %. Balance 2,000 USDT. A LONG signal on BTC: entry 50,000, targets 51,000 and 52,000, target shares 50 / 50.
| Step | Calculation | Result |
|---|---|---|
| Trade amount | 2,000 × 5 % | 100 USDT of margin |
| Position | 100 × 10 | 1,000 USDT = 0.02 BTC |
| Stop, “Of price” | 50,000 × (1 − 0.05) | 47,500; loss 1,000 × 5 % = 50 USDT (50 % of margin) |
| Stop, “Of margin” | 5 % / 10 = 0.5 %; 50,000 × 0.995 | 49,750; loss 5 USDT (5 % of margin) |
| TP1 | 0.01 BTC × (51,000 − 50,000) | +10 USDT |
| TP2 | 0.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.
| Signal | Distance to the stop | Position = loss / distance | Margin at x10 | Check |
|---|---|---|---|---|
| Entry 50,000, stop 49,000 | 2 % | 40 / 0.02 = 2,000 USDT = 0.04 BTC | 200 USDT | 0.04 × 1,000 = 40 USDT |
| Entry 50,000, stop 48,500 | 3 % | 40 / 0.03 ≈ 1,333 USDT ≈ 0.0267 BTC | 133 USDT | 0.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 shares 40 / 30 / 30, Trailing stop-loss — Breakeven (target), trigger TP #1.
| Event | Closed | Profit of the part | Stop |
|---|---|---|---|
| TP1 filled (61,200) | 0.02 BTC | 0.02 × 1,200 = +24 USDT | moves 58,800 → 60,000 |
| The market reversed, stop 60,000 | 0.03 BTC | 0 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.
With Breakeven (percentage) 40 % the result is the same: TP1 closed 40 % of the take-profit volume (0.02 of 0.05 BTC), 40 % ≥ 40 % — the stop moves to breakeven right after TP1. With 50 % the stop stays at 58,800 after TP1 and moves only after TP2 (40 % + 30 % = 70 %) — a reversal after TP1 would give the same −12 USDT as without the move.
The same scenario with Moving 1, trigger TP #2, assuming TP1 and TP2 are taken:
| Event | Closed | Profit of the part | Stop |
|---|---|---|---|
| TP1 filled (61,200) | 0.02 BTC | +24 USDT | 58,800 (the trigger has not fired yet) |
| TP2 filled (62,400) | 0.015 BTC | 0.015 × 2,400 = +36 USDT | moves to TP1: 61,200 |
| Reversal, stop 61,200 | 0.015 BTC | 0.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 amount distribution “More to the nearest”, Trailing stop-loss — Breakout % 3 %. A LONG signal on ETH with two entry prices: 3,000 and 2,850.
- Position: 200 × 5 = 1,000 USDT.
- 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.”
- “More to the nearest” — the entry nearest to the market gets the most, each next one half as much: shares 8 : 4 : 2 : 1, 15 parts in total.
| Level | Share | Position amount | Volume |
|---|---|---|---|
| 3,000 | 8/15 ≈ 53.3 % | 533.3 USDT | 0.1778 ETH |
| 2,950 | 4/15 ≈ 26.7 % | 266.7 USDT | 0.0904 ETH |
| 2,900 | 2/15 ≈ 13.3 % | 133.3 USDT | 0.0460 ETH |
| 2,850 | 1/15 ≈ 6.7 % | 66.7 USDT | 0.0234 ETH |
Total: 533.3 + 266.7 + 133.3 + 66.7 = 1,000 USDT.
The price dropped to 3,000 — the upper entry was filled in full: 533.3 USDT, 0.1778 ETH. As soon as one entry is filled in full, the bot removes the other entries (2,950, 2,900, 2,850) and places the take-profits on what was bought — building the position ends there. The average entry price is 3,000. Breakout % 3 % moves the stop to breakeven once the price reaches 3,000 × 1.03 = 3,090 — no take-profit at that level is needed. If the price then comes back to 3,000, the stop closes the position at zero.
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 the Own stop-loss, % field.
- The target shares and the entry shares 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.
