Backtesting Guide By BitLogic Team Published 11 min read

How to Set Stop-Loss and Take-Profit, and Which Indicators Work Best for Stocks and Crypto

Test stops, targets and indicators free: BitLogic Backtester on the Microsoft Store (Windows) lets you try fixed, ATR, swing-level and risk-reward stops, trailing stops and 60+ indicators on stocks and crypto, without code. 3 backtests and 1 optimization free. See what it does.

Quick answer: set the stop-loss at the price that proves your trade idea wrong (beyond a recent swing level, or 1.5 to 3 × ATR from the entry), then size the position so a stop-out costs 0.5 to 2% of your account. Set the take-profit at 1.5 to 3 times the stop distance for swing trades, or use a trailing stop with no fixed target for trend following. For indicators, combine one for trend, one for timing and one for risk, from different families. Then backtest several versions on many stocks or coins and keep the one that works across a range of values.

Written by the BitLogic Team, 27 November 2026. Example strategies are for illustration and testing, not recommendations. This article is for education only and is not financial advice. Past results do not guarantee future returns.

Key Takeaways

How Should I Set a Stop-Loss and Take-Profit?

Short answer: set the stop-loss at the price that proves your trade idea wrong (beyond a recent swing level, or a multiple of ATR from the entry), size the position from that stop, and set the take-profit as a multiple of the stop distance (1.5R to 3R), or use a trailing stop instead of a fixed target for trend-following strategies. Then backtest several versions and keep the one that works across a range of values and markets.

The 5 Main Types of Stop-Loss and Take-Profit

TypeHow it worksProsConsBest for
Fixed %Stop 3% below entry, target 6% aboveSimpleIgnores volatility: too tight for crypto, too loose for calm stocksQuick first tests
ATR multipleStop 2 × ATR(14) from entryAdapts to each market's volatilityWider stops in volatile periods mean smaller positionsMost strategies, stocks and crypto
Swing levelStop just beyond the recent swing low (long) or high (short)Placed where the idea failsDistance varies a lot from trade to tradeBreakouts, pullbacks, price action
Indicator levelStop at a moving average, Supertrend or Bollinger BandFollows the trend logicCan be far from entryTrend following
Risk-rewardTarget = 2 × the stop distance (2R)Keeps the win/loss ratio fixedCaps big winnersSwing and mean reversion

BitLogic Backtester supports all five for both stop-loss and take-profit, plus a trailing stop and the option of no target at all. Every choice is made from menus, in the Risk & Profit Exits panel.

Why ATR Stops Work on Both Stocks and Crypto

The Average True Range (ATR) measures how far a market normally moves per candle. A stop of 2 × ATR is the same rule everywhere, but it gives very different distances. Typical daily figures (they change with market conditions):

MarketTypical daily ATR2 × ATR stopA fixed 3% stop would be
Large-cap stockAbout 1 to 2%About 2 to 4%About right, or a little wide
BitcoinAbout 3 to 5%About 6 to 10%Inside normal daily noise
Small altcoinOften 6 to 10%+12 to 20%+Hit almost at random

That is why a strategy tested with one fixed percentage on Apple and on Solana usually fails on one of them. With an ATR stop and risk-based sizing, the same rules carry the same risk on both.

Step-by-Step: Setting a Stop-Loss

  1. Decide where the idea is wrong. For a breakout above a 20-day high, the idea fails if the price falls back well inside the range, for example below the 10-day low or 2 ATR below the entry.
  2. Prefer volatility-based distances. Bitcoin can move 3 to 5% on a normal day; a large-cap stock 1 to 2%. A 2% stop is noise on Bitcoin and wide on a utility stock. ATR scales automatically.
  3. Size from the stop. Risk-based sizing makes each stop-out cost the same share of the account (for example 1%), whatever the stop distance. BitLogic Backtester offers this as "risk % of the account".
  4. Remember stops can gap. Stocks gap overnight and on earnings; crypto can wick through levels in seconds. A realistic backtest fills a gapped stop at the open, not at your stop price. BitLogic Backtester does this.
  5. Test a range. Try 1.5, 2, 2.5 and 3 ATR. If only one value works, it is probably luck.

Position Size From the Stop: a Worked Example

Size = risk amount ÷ stop distance

With a $10,000 account and 1% risk per trade, you risk $100. On a stock with a 4% stop, the position is $100 ÷ 4% = $2,500. On Bitcoin with an 8% stop, it is $100 ÷ 8% = $1,250. Both trades lose the same $100 if stopped out, before costs and gaps.

Step-by-Step: Setting a Take-Profit

  1. Match the target to the strategy type. Mean reversion (buy oversold, sell on the bounce) works with close targets; trend following needs room for big winners.
  2. For swing trades, start at 2R and compare 1.5R and 3R.
  3. For trend following, try no target and a trailing stop, or an exit signal such as a close below a moving average. Capping winners can ruin a trend system's profit factor.
  4. Check the win rate it implies. At 2R you need about 33% wins to break even before costs; at 3R, 25%. See what is a good win rate and profit factor.

Trailing Stops

A trailing stop follows the price at a set distance (a % or ATR multiple) below the best price since entry, and never moves back. It locks in profit while letting winners run. Too tight, and normal pullbacks stop you out; too loose, and you give back most of the gain. In a correct backtest the trail only moves on previous candles; moving it on the current candle's high and then checking that candle's low assumes an order of events the data can't show (see look-ahead bias).

Example: a Breakout Strategy With an ATR Stop and a Trailing Exit

BitLogic Backtester strategy builder with Turtle Breakout rules: buy when close is above the 20-period Donchian upper band, close when below the 10-period lower band
The Turtle Breakout template in BitLogic Backtester. Rules are shown in plain English. Stops, targets and trailing stops are set in the Risk & Profit Exits panel.

Tip: in BitLogic Backtester you can optimize fixed stop and target percentages with walk-forward testing to find a robust range, rather than the single best value from the past.

Which Indicators or Combinations Work Best?

Short answer: no indicator works best in every market. The combinations that hold up best combine three jobs: a trend filter (such as the 200-period moving average, Supertrend or ADX), an entry trigger (such as RSI, Stochastic, MACD or a Donchian or Bollinger breakout) and a risk measure (ATR for stops and sizing). Use indicators from different families, keep it to two or three conditions, and confirm with backtests on many markets.

Indicator Families: Pick One From Each, Not Three From One

FamilyExamplesAnswers the question
TrendEMA/SMA, Supertrend, Ichimoku, Parabolic SAR, ADX, AroonWhich way is the market going, and how strongly?
MomentumRSI, Stochastic, Stochastic RSI, MACD, CCI, Williams %R, MFIIs the move stretched or gaining speed?
VolatilityATR, Bollinger Bands, Keltner Channels, Donchian Channels, SqueezeHow big are normal moves? Is price breaking out?
VolumeOBV, Chaikin Money Flow, Accumulation/Distribution, Force IndexIs money flowing in or out?

RSI, Stochastic and Williams %R all measure similar things. Requiring all three adds conditions (and overfitting risk) without adding information.

Popular Combinations to Backtest

StrategyRulesOften suits
Trend + pullbackPrice above 200 EMA (trend) and RSI(14) dips below 40 then recovers (timing); ATR stopStocks and major coins in uptrends
Turtle breakoutClose above 20-day high; exit below 10-day low; ATR stopTrending crypto, strongly trending stocks
MA crossEMA 20 crosses above EMA 50, with ADX above 20 to avoid chopDaily and 4h charts
Mean reversionClose below lower Bollinger Band while above 200 SMA; exit at middle bandLarge-cap stocks and indexes
SupertrendEnter when Supertrend flips up; exit when it flips downVolatile crypto trends
RSI(2) pullbackPrice above 200 SMA and RSI(2) below 10; exit when RSI(2) rises above 70Stock indexes and large caps

All of these are ready-made templates or take minutes to build in BitLogic Backtester, which has 16 templates (including Turtle Breakout, Golden Cross, EMA 20/50 Trend, Supertrend Follower, RSI(2) Pullback, Bollinger Band Bounce and MACD Momentum) and 60+ indicators and candlestick patterns. Our strategy guides cover several of these setups in detail, such as the Supertrend flip + RSI and the Bollinger squeeze breakout.

Stocks vs Crypto: What Changes

TopicStocksCrypto
BehaviourLarge caps often mean-revert in the short termStrong, long trends and big swings
StrategiesPullback and mean-reversion systems are commonTrend and breakout systems with wide ATR stops
Stop riskOvernight and earnings gaps through stopsWicks through levels, 24/7, and liquidation on futures
Extra costsCommission, spread, UK stamp dutyExchange fees and futures funding

If you trade both, test across both: BitLogic Backtester covers crypto spot and futures, and stocks from the US, India, the UK, Germany, Hong Kong, Canada, Australia and Japan.

BitLogic Backtester symbol picker for stocks listing Apple, Microsoft, NVIDIA and Tesla, with search for any company or ticker
Switch between Crypto and Stocks and search any company or ticker. The same indicators, stops and targets work on both.

How to Find the Indicators That Work for You

  1. Start from a template with a logical reason behind it.
  2. Change one thing at a time and backtest after each change.
  3. Use Test on many to check it on 10 coins or stocks.
  4. Use walk-forward optimization to tune indicator lengths without overfitting (see walk-forward testing explained).
  5. Paper trade the result on live prices.
Test stops, targets and indicators without code, free: BitLogic Backtester for Windows has 60+ indicators and patterns, AND/OR rules, multi-timeframe conditions, fixed, ATR, swing-level, indicator and risk-reward stops and targets, trailing stops and risk-based sizing, for stocks and crypto. Your first 3 backtests and 1 optimization are free. Get it on the Microsoft Store.

Get Indicator Alerts on Your Phone With BitLogic

Once a combination tests well, you need to know when it triggers. BitLogic, our crypto screener for Windows, iPhone/iPad and Android, scans coins for indicator setups such as RSI levels, breakouts and trend changes, and sends alerts. One account works in both apps, and paying BitLogic Pro members get the full BitLogic Backtester included.

FAQ

How should I set a stop-loss?

Place the stop where your trade idea is proven wrong, not at a random percentage: beyond a recent swing low or high, or a multiple of ATR (often 1.5 to 3 ATR) from the entry. Then size the position so that hitting the stop loses a fixed small share of the account, commonly 0.5 to 2%. Backtest several stop distances and prefer a range that works, not one exact value.

How should I set a take-profit?

Use a risk-reward multiple of the stop distance (for example 1.5R to 3R) for swing and mean-reversion strategies, or no fixed target with a trailing stop for trend-following strategies, which depend on a few large winners. Test both in a backtest.

What percentage should my stop-loss be?

There is no universal percentage. A 3% stop is wide for a calm large-cap stock and normal noise for Bitcoin. Base the stop on volatility (ATR) or a swing level, then size the position so a stop-out loses about 0.5 to 2% of your account.

What is an ATR stop-loss?

An ATR stop-loss is placed a multiple of the Average True Range away from the entry, for example 2 × ATR(14). Because ATR measures how much a market normally moves, the stop is automatically wider on volatile coins and tighter on calm stocks.

What is a good risk-reward ratio?

Commonly 1:1.5 to 1:3. A higher ratio needs a lower win rate to break even: 1:2 breaks even at about 33% wins before costs, 1:3 at 25%.

Should I always use a take-profit?

No. Trend-following strategies often do better with a trailing stop or an exit signal and no fixed target. Backtest both versions.

Which indicators work best?

No indicator works best everywhere. Robust combinations pair one indicator for trend direction (such as a 200-period moving average or Supertrend), one for entry timing (such as RSI, Stochastic or a breakout), and one for risk (ATR). Use indicators from different families rather than several that measure the same thing, and validate on many markets.

What is the best indicator for crypto?

There is no single best one. Trend tools (moving averages, Supertrend, Donchian breakouts) with ATR stops are widely used for crypto because of its strong trends. Test them on several coins.

What is the best indicator for stocks?

Common robust choices are the 200-day moving average as a trend filter with RSI or Bollinger Bands for pullback entries. Validate on several stocks and markets.

How many indicators should I use?

Usually two or three, from different families. More conditions mean fewer trades and a higher risk of overfitting.

The Bottom Line

Put the stop where the idea fails, measure it in ATR rather than a fixed percentage, and size the trade from the stop so every loss costs the same. Use a 1.5R to 3R target for swing trades and a trailing stop for trends. Pick two or three indicators from different families, and backtest every choice on many stocks or coins before trusting it.

Get the apps: BitLogic Backtester on the Microsoft Store (Windows; Mac, iPhone, iPad and Android coming soon) | BitLogic screener on the App Store, Google Play and the Microsoft Store

Related guides: Good win rate, profit factor, Sharpe and drawdown | Walk-forward testing | Paper trading vs backtesting | Why a backtest wins but loses live | BitLogic Backtester

Nothing here is financial advice. Example strategies are for illustration and testing, not recommendations. BitLogic Backtester is an analysis tool: it does not place real trades. Past results do not guarantee future returns. Questions: backtester_support@bitlogic.info.