Indicator · Pine Script v6 · On the chart

BTC Pattern Breakout Final

by Yashiine-code

This indicator detects chart structure setups on the price chart, including W-bottom and convergence breakouts, M-top and convergence breakdowns, and false breakout alerts.

View on GitHub

GitHub stars2on the repository
Pine versionv6current
Lines of code750
Settings40inputs
LicenceNone stated
Last update5 months ago16 May 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.

Source Code

The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.

Overview

Signals are filtered using moving average volume expansion, ATR momentum growth, and external Open Interest (OI) percentage change via Binance data feeds, with an optional higher-timeframe EMA trend filter. Settings allow customization of pattern spacing, tolerance levels, OI thresholds, and visual elements such as reference lines and an optional status dashboard.

Details

Published by

Yashiine-code on GitHub

Draws

On the price chart

Markets

Crypto

Timeframes

M15-H1

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Topics

algorithmic-tradingcryptocurrencypine-scripttradingview

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
只在BTC上触发booltruebtcOnly
多头交易模式stringW底 + 收敛突破tradeMode
启用空头模型:M顶/收敛跌破booltrueenableShortModels
启用M顶跌破booltrueenableMTop
启用收敛跌破booltrueenableCompressionDown
显示关键突破/跌破线booltrueshowLevels
显示假突破提醒booltrueshowFake
显示假跌破提醒booltrueshowFakeBreakdown
显示假突破/假跌破参考线boolfalseshowFakeReference
显示右上角状态面板boolfalseshowTable
成交量均线周期int20volLen
放量倍数float1.3volMult
Show all 40 settings
SettingTypeDefaultVariable
ATR周期int14atrLen
ATR均线周期int14atrMaLen
ATR对比前N根K线int3atrCompareBars
ATR最小上升百分比float2.0atrMinRisePct
启用OI过滤booltrueuseOI
BTC OI数据源symbolBINANCE:BTCUSDT.P_OIoiSymbol
OI对比前N根K线int3oiLookback
OI最小健康上升%float0.1oiMinRise
OI最大健康上升%float6.0oiMaxRise
启用大周期趋势过滤boolfalseuseTrendFilter
趋势周期timeframe60trendTF
趋势EMA周期int200trendEmaLen
最少确认数量int2minConfirm
摆动低点确认K线int3pivotLen
两个底最小间隔int8wMinGap
两个底最大间隔int60wMaxGap
两个底允许误差%float0.8wLowTolerancePct
颈线至少高于底部%float0.4wNeckMinHeightPct
W底有效期K线数int48wExpireBars
收敛半周期int12compressHalfLen
区间收缩比例float0.85rangeShrinkMult
收敛期ATR上限倍数float1.05atrQuietMult
摆动高点确认K线int3mPivotLen
两个顶最小间隔int8mMinGap
两个顶最大间隔int60mMaxGap
两个顶允许误差%float0.8mHighTolerancePct
颈线至少低于顶部%float0.4mNeckMinDepthPct
M顶有效期K线数int48mExpireBars
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.

Similar Pine Scripts

Donchian Channels (DC)

by mihakralj
99 stars

This indicator calculates and plots Donchian Channels directly on the price chart. It determines the highest high and lowest low over a user-selected lookback period using an optimized monotonic deque algorithm, as well as a middle basis line computed as their

Indicator v6 Volatility & bandsSupport & resistance
Updated 4 weeks ago · Apache-2.0 GitHub repository of Donchian Channels (DC)
47 stars

The Donchian Channels indicator plots the middle basis line as the average of the high and low over the user-defined period. It also draws the upper band as the highest high and the lower band as the lowest low across the same period on the price chart. The ma

Indicator v6 Volatility & bandsSupport & resistance
Updated 8 months ago · MIT GitHub repository of Donchian Channels (DCHANNEL)
43 stars

This indicator plots Donchian channel bands and a midline on the price chart. It finds the highest and lowest values over a user-set length, then draws the upper band, lower band, and their average as the basis. The source setting chooses high and low, or the

Indicator v4 Volatility & bandsBreakout
Updated 1 year ago · None stated GitHub repository of Donchian Channels Experiment

Zen ABR Against

by Zen-Tim
29 stars

This overlay indicator measures average bar range as a simple moving average of high minus low, then draws short horizontal ticks at one to four times that range above and below the close. The user chooses which multipliers appear, their colors, and the line w

Indicator v6 Volatility & bandsSupport & resistance
Updated 2 weeks ago · MIT GitHub repository of Zen ABR Against

This indicator identifies and plots price compression zones directly on the price chart using multi-module scoring. It measures ATR compression, ADX chop levels, boundary touches, volume dry-up, and historical pivot levels to identify consolidation areas and s

Indicator v6 BreakoutSupport & resistance
Updated 3 days ago · MIT GitHub repository of CoilForge Zones [WavesUnchained]

Dereköy-Darvas

by Kalumur
4 stars

The Dereköy-Darvas indicator combines Darvas Box boundary levels with dual Bollinger Bands plotted directly on the main price chart. It calculates top and bottom box lines based on recent high and low extremes to outline price consolidation zones. Simultaneous

Indicator v5 Volatility & bandsSupport & resistance
Updated 2 years ago · None stated GitHub repository of Dereköy-Darvas

More Breakout scripts

Related on ForexR

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers