NEWCard payments are live · from $18/month, USDT also acceptedSee plans
COINPRED / STRATEGY LIBRARY

Bitcoin Bollinger Bands Enhanced Strategy: EMA200 Filter, ATR Risk and Setup

Skyrexio open-source (MPL 2.0) Bollinger enhancement: long-only rules, ATR risk, defaults, author BTCUSDT 4h chart, setup. No invented performance.

Illustrated guidesPine Script®Included with monthly & annual plans
← All strategies
Skyrexio · 1.0 · 2026-10-29 · Breakouts
Bitcoin Bollinger Bands Enhanced Strategy: EMA200 Filter, ATR Risk and Setup

What problem this strategy targets

Buying every lower-band touch fails in downtrends. Bollinger Bands Enhanced Strategy only goes long when price stays above EMA 200 while the low reaches the lower band, then manages risk with ATR stops and an ATR-armed trailing take-profit.

Pine v5 strategy(). Author showcase: BINANCE:BTCUSDT, 4h. Bot webhook placeholders (sourceUuid/secretToken) must not be filled with real secrets on shared charts.

Author BTCUSDT 4h Bollinger enhanced strategy chart
Author showcase: BINANCE:BTCUSDT, 4h (interval=240). Publication main image. Not a Coinpred backtest.

Logic overview

Bands: SMA(close,20) ± StdDev*stdev. Filter EMA(close,200). ATR(14) for stop and trailing activation.

Entries

  • Long only: low > filterEMA and low <= lower.
  • Inside the Trade Start/Stop window.
  • strategy.entry("entry1", strategy.long) with optional JSON alert_message for bots.

Exits, stops, take-profit, sizing

  • ATR stop default 1.75×ATR.
  • Trailing take-profit arms near 2.25×ATR; basis used as a profit reference in code.
  • default_qty_type = percent_of_equity.
  • No short entries.

Parameters (source defaults)

InputDefaultRole
StdDev2.0Band width multiplier
ATR stop loss1.75Stop distance in ATR
ATR Trailing profit activation2.25Trail arm threshold
EMA filter200 (hardcoded)Longs require low above EMA
BB length20 (hardcoded)SMA/stdev window
sourceUuid / secretTokenplaceholdersBot webhook; leave blank if unused

Markets, timeframes, limits

  • Author showcase: BTCUSDT 4h. Other settings unverified.
  • Long-only; may idle or struggle in bear trends.
  • Default backtest window ends 2025-01-01 — update inputs if needed.
  • Repaint and webhook delivery not tested by Coinpred.

TradingView setup guide

  1. Download the .pine file from Coinpred (membership required; see below) or compare with the original publication page.
  2. Open TradingView → Pine Editor, create a blank script, paste the full source, then save.
  3. Click Add to chart. Confirm it is a strategy() script so the Strategy Tester is available.
  4. Review defaults in the Inputs panel using the parameter table below, then tune for your symbol and timeframe.
  5. Inspect signals in the Strategy Tester before wiring alerts. Historical curves are not a promise of future results.

Verification and backtests

Download rights and version notes

  • Author: Skyrexio; original title: Bollinger Bands Enhanced Strategy; version: 1.0 (pine-facade).
  • License: MPL 2.0; Coinpred ships the unmodified full source file.
  • Original page: https://www.tradingview.com/script/V4B5nKIx-Bollinger-Bands-Enhanced-Strategy/
  • Pine version: v5; type: strategy().
  • Charts are author showcase images; image rights are outside MPL and captions are labeled accordingly.
  • Downloads follow Coinpred membership rules; modified source files must remain under MPL 2.0.

Source, license and version

Mozilla Public License 2.0 (MPL 2.0),© Skyrex / Skyrexio。Mozilla Public License 2.0 (MPL 2.0),依据原脚本源码许可声明。再分发须保留原版权与许可声明;如修改源码文件,修改后的文件仍须按 MPL 2.0 提供。Coinpred 未修改源码。 / Licensed under MPL 2.0 per the source header. Redistribution must keep copyright and license notices; modified files must remain under MPL 2.0. Coinpred ships the unmodified source.

View original source ↗

Check the script license and your TradingView account features. Historical results do not guarantee future performance.