Prozentualer Stop-Loss
Stop-loss at a fixed percentage distance from entry. Simple, parameterizable and well suited for backtesting comparisons.
Core idea
A fixed percentage stop places the stop-loss at a fixed percentage distance from the entry price — independent of volatility or market structure.
Long: stop = entry_price × (1 − fixed_stop_pct / 100)
Short: stop = entry_price × (1 + fixed_stop_pct / 100)
Botty implementation
strategies/conditions.py → exit condition fixed_stop. Computed in get_fixed_stop().
def get_fixed_stop(entry_price, side, fixed_stop_pct):
pct = fixed_stop_pct / 100.0
if side == LONG: return round(entry_price * (1 - pct))
if side == SHORT: return round(entry_price * (1 + pct))
Parameter: fixed_stop_pct (default: 1.0) — distance in percent.
Pros
- Easy to understand and to reproduce.
- Stable in backtesting — no dependence on running indicator values.
- Good baseline for comparing other stop methods.
Cons
- Ignores market structure: the stop can sit at a meaningless level.
- Ignores volatility: too wide in quiet markets, too tight in volatile ones.
- An ATR stop or swing stop is structurally better in most cases.
When to use it
- As a fallback / default in backtests
- When market structure is unclear
- As a comparison baseline against an ATR stop