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.
| Step | Calculation | Result |
|---|---|---|
| Trade amount | 2,000 × 5 % | 100 USDT of margin |
| Position | 100 × 10 | 1,000 USDT = 0.02 BTC |
| Stop, 📈 price mode | 50,000 × (1 − 0.05) | 47,500; loss 1,000 × 5 % = 50 USDT (50 % of margin) |
| Stop, 📊 margin mode | 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 map 1-40 2-30 3-30, Trailing — 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.
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 distribution DECREASING_EXP, Trailing — 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.”
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.
| 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 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.
