Skip to content
All library documents

Bitcoin Trend Entries with ATR Trailing Stops

Article TradingView scripts

Summary

This Bitcoin strategy combines a long-term trend filter with shorter-term price crossings for entries. It treats closes above a 200-period exponential moving average as an uptrend and opens long positions when price crosses above a 20-period EMA. Below the long EMA, a cross beneath the shorter EMA triggers a short entry.

Exits use ATR-based trailing parameters: the strategy sets a trail distance at twice the 14-period ATR and an offset at one ATR. The script plots both moving averages and specifies full-equity sizing with an initial capital setting, but the document provides no strategy report, performance statistics, or comparison against alternatives. Although it also calculates candidate stop prices from the close, those values are not used by its exit calls. The rules are therefore a code-defined example rather than evidence of profitability; results would depend on market, timeframe, execution assumptions, and backtest settings.

Key ideas

  • The 200-period EMA defines the broad directional filter for long and short entries.
  • A close crossing the 20-period EMA triggers an entry aligned with the broad trend.
  • Exit orders use an ATR-based trailing distance and offset.
  • The document supplies strategy rules but no performance evidence or tested-market details.

Tags

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