Skip to content
All library documents

Bitcoin Trend Following with Moving Average Crossovers and ATR Stops

Article Strategy library · Author: ChaoZhang

Summary

This BTC strategy uses a crossover between two configurable trend lines to determine entries and exits. The described setup uses a faster 25-period EMA and a slower 100-period LSMA: a cross above opens a long position, while a cross below closes it. Other moving average types and lengths can be selected. The strategy also calculates an ATR-based trailing stop, combines it with a percentage stop and moving-average exit, and places two partial take-profit orders at configurable price gains.

The document describes this as an automated long-term approach and identifies risks such as sideways-market signals, parameter sensitivity, delayed averages, news-related slippage, and server interruptions. It provides code parameters and a backtest start date, but no backtest results or evidence supporting its claims of reliability and profit capture. The accompanying explanation and code also differ in some details, so the precise stop behavior should be checked before relying on the described method.

Key ideas

  • A crossover between two configurable moving averages opens or closes a long BTC position.
  • The example defaults to a 25-period EMA and a 100-period LSMA.
  • An ATR-derived trailing level, a percentage stop, and a trend-line exit provide exit conditions.
  • Two configurable partial take-profit levels are included.
  • The document identifies ranging markets, parameter choices, slippage, and outages as risks, but reports no performance results.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.