OPEN-SOURCE SCRIPT
Adaptive Gap Bands - DolphinTradeBot

1️⃣Overview
Adaptive Gap Bands is a momentum indicator that measures the percentage difference between fast and slow moving averages. This helps identify potential overbought or oversold zones.
The goal is to analyze “gap” behaviors within a trend and generate clearer entry–exit signals.
Since the bands are anchored to the slow moving average, they are more sensitive to the trend direction, making signals stronger in line with the prevailing trend.
📌 Signals do not repaint — once confirmed, they remain fixed on the chart.
2️⃣How It Works ?
The indicator tracks the distance between fast and slow MAs.
3️⃣How to Use It ?
Add the script to your chart.
4️⃣⚙️Settings
Adaptive Gap Bands is a momentum indicator that measures the percentage difference between fast and slow moving averages. This helps identify potential overbought or oversold zones.
The goal is to analyze “gap” behaviors within a trend and generate clearer entry–exit signals.
Since the bands are anchored to the slow moving average, they are more sensitive to the trend direction, making signals stronger in line with the prevailing trend.
📌 Signals do not repaint — once confirmed, they remain fixed on the chart.
2️⃣How It Works ?
The indicator tracks the distance between fast and slow MAs.
- The indicator measures the percentage gap between the fast and slow moving averages, relative to the slow MA.
- Each time the gap reaches a new extreme during a swing, that value is stored.
When the averages cross, the stored values from the last N swings (defined by Swing Count) are collected. - These gap values are then averaged to create a smoother and more adaptive reference.
- The bands are built by multiplying this average gap with the % Multiplier and projecting it around the slow MA.
3️⃣How to Use It ?
Add the script to your chart.
- Green label → potential Long signal.
- Red label → potential Short signal.
- Signals often appear when price moves outside the adaptive bands, showing extreme momentum.
- Can also be used as a reference tool in manual trades to set profit/loss expectations.
- By comparing upward vs. downward gaps, it can help analyze and confirm the dominant trend direction.
4️⃣⚙️Settings
- Swing Count → Number of past swings considered.
- % Multiplier → Adjusts band width (narrower or wider).
- MA Lengths & Types → Choose fast and slow moving averages (EMA, SMA, RMA, etc.).
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。