Documentation Index
Fetch the complete documentation index at: https://uncoded.ch/docs/llms.txt
Use this file to discover all available pages before exploring further.
Stop-losses and trailing stops are the per-position protection layer. While the kill switch is a global pause, stops are per-trade — bounding the worst-case outcome on any individual position. Configured correctly, they ensure no single trade can do catastrophic damage.
The two types of stops
Hard stop-loss
A fixed price level (typically
-15% to -25% from entry, mode-specific). When hit, the position closes at market. Bounds the worst-case per-trade loss.Trailing stop
A dynamic level that follows the highest price observed since arming. Once armed, the trailing stop locks in profit by closing if price retraces by the trailing distance. Captures trend rides.
Hard stop-loss — the worst-case bound
What it does
What it does
Every shipped mode has a hard stop-loss configurable per mode. When the price falls to the configured level (e.g.,
-20% from average entry), the position closes at market.The stop-loss does not wait for the sell ladder to fill. It overrides the sell ladder when triggered. Once triggered, the position closes at whatever fill price the market currently provides.Default values per mode
Default values per mode
Each mode has its own default stop-loss. Conservative modes (BasicMode, LowMoney) have stricter stops; patient modes (LongTimeLong) have looser stops to accommodate their wider drawdown tolerance.The Modes panel in the Dashboard shows the exact stop-loss configuration for each active mode.Operators can tighten or loosen the stop-loss per mode. Tightening protects against deeper drawdowns at the cost of more frequent stop-outs (small losses); loosening accommodates larger drawdowns at the cost of larger worst-case losses.
When stop-loss is triggered
When stop-loss is triggered
A market-order close at the stop-loss level. The TradingBot:
- Cancels any open sell-ladder rungs.
- Places a market sell for the full position.
- Records the closure with the stop-loss flag in the trade ledger.
- Sends Telegram notification of the closed trade (showing the loss).
Slippage at stop-out
Slippage at stop-out
Stop-loss triggers a market order. In fast-moving markets, the actual fill price can be worse than the stop level. Typical slippage on majors at moderate size:
0.05% to 0.5%. On thin altcoins or during volatility spikes: can be much higher.The stop-loss bounds the trigger level, not the actual fill price. Real worst-case includes slippage on top.Operator implication: factor slippage into your worst-case planning. A -20% stop-loss may produce a -21% realized loss after slippage on a bad day.Disabling the stop-loss
Disabling the stop-loss
You can disable the per-mode stop-loss in the Modes panel. This is strongly discouraged.Without a stop-loss, a position with deep drawdown has no automatic exit. Operator vigilance is the only safety net. For 99% of operators, that’s not sufficient.Keep the stop-loss enabled. Tightening or loosening is fine; disabling is not.
Trailing stop — protecting profit
What it does
What it does
The trailing stop is a dynamic price level that follows the highest price observed since the position became profitable. Once armed, the trailing stop sits at a configured distance below the highest price.As price makes new highs, the trailing stop moves up with it. As price retraces by the trailing distance from a peak, the position closes.This locks in profit on trending positions while letting them ride.
Arming threshold
Arming threshold
The trailing stop doesn’t activate immediately on a buy fill. It arms once the position has reached a configured profit level (e.g.,
+2% profit).Until armed, the position behaves under the regular sell ladder. Arming threshold prevents a fast-and-sharp bounce immediately after entry from tripping the stop too early.Trailing distance
Trailing distance
The distance the price has to retrace from its peak to trigger the stop. Typical values:
1.5% to 5%.Tighter distance: locks in more profit but exits earlier on minor pullbacks. Wider distance: gives the position more room to breathe but exits at lower retraced levels.Mode defaults are calibrated for typical regime behavior. Tune carefully based on observed instrument behavior.Which modes have trailing stops
Which modes have trailing stops
- BasicMode (Mode 4): NO trailing stop. Pure sell ladder.
- FullBullMarket (Mode 1): YES.
- LongTimeLongMoreProfit (Mode 2): YES.
- LongTimeLong (Mode 3): YES.
- LowMoney (Mode 5): NO.
- MinimalMoney (Mode 6): NO.
- Tsl2Sell (Mode 7): YES — and trailing-dominant (the primary exit).
- MarketMaker (Mode 1001), MarketMakerMinimal (Mode 1002): N/A (different exit mechanism).
The downtime weakness — important caveat
Stop-loss vs sell ladder — interaction
The stop-loss and the sell ladder coexist on every position:- Sell ladder:
+0.25%to+5%(BasicMode example) — captures profit as price rises. - Stop-loss: e.g.,
-20%from entry — bounds worst-case loss.
5–15% of all closures. If you see consistently high stop-loss-trigger rates, the mode-symbol combination is mismatched and needs review.
Tuning stop-loss values
Default values are conservative
Default values are conservative
The shipped defaults err toward worst-case-bounded. Operators sometimes want tighter stops for their risk tolerance.Tightening from
-20% to -15%: more frequent stop-outs (more small losses), but smaller worst-case per-trade loss.Loosening from -20% to -25%: fewer stop-outs (more positions ride through drawdowns), but larger worst-case per-trade loss.Backtest the change before applying
Backtest the change before applying
Stop-loss tuning has substantial impact on equity curve. Before changing live, backtest the new value against your historical regime.A tighter stop might dramatically reduce max drawdown but also reduce total return (because stops trigger on dips that would have recovered). Trade-off.
Match to your stomach
Match to your stomach
The right stop-loss value is the one you can live with seeing trigger. If a
-25% stop-out makes you panic-close adjacent positions, that’s a real cost — your tighter stop should reflect your actual stress tolerance.Operator emotion is part of the system. Configure the stops to keep you in the system, not for theoretical optimum.Common stop-loss mistakes
❌ Disabling the stop-loss
❌ Disabling the stop-loss
“I want to ride through any drawdown to capture the eventual recovery.”Reality: not all drawdowns recover. Symbols delist, projects fail, regimes shift permanently. A position with
-50% drawdown and no stop-loss is a position that may go to zero.Fix: keep the stop-loss enabled. If you want to override on a specific position, do it manually (close earlier or later as you see fit) but keep the automatic safety net.❌ Setting stop-loss too tight
❌ Setting stop-loss too tight
-5% stop-loss on BasicMode is too tight — normal drawdowns will trigger it constantly, and you’ll never let trades work.Fix: the default values are tuned for the modes’ designed behavior. Tighten only with backtest evidence.❌ Setting stop-loss too loose
❌ Setting stop-loss too loose
-50% stop-loss is essentially no stop-loss. By the time it triggers, the damage is done.Fix: stay within -15% to -25% for most operators. Tighter for risk-averse, looser for explicitly-patient modes.❌ Different stop-losses on highly-correlated pairs
❌ Different stop-losses on highly-correlated pairs
Best practices
What’s next
Kill switch
Global pause — works alongside per-position stops.
Capital allocation
Sizing per pair determines absolute stop-loss exposure.
Reserves
The buffer that absorbs accumulated drawdowns.
Mode-specific stops
Per-mode stop-loss defaults.