OPEN-SOURCE SCRIPT
更新済 Heavy Gustavo Fill Block

Here's a publish-ready description you can paste into the TradingView script editor:
---
Gustavo fill block
This indicator automatically detects a 3-candle momentum structure followed by an order block confirmation and plots a horizontal signal line directly on the chart.
**How the pattern works**
The indicator looks for a sequence of exactly 3 consecutive candles of the same color (the "A zone") preceded by a candle of the opposite color. Once that structure is identified, it then watches for consecutive candles in the opposite direction (the order block) to reach back and touch the wick of the first A-zone candle. When that touch occurs, a horizontal line is drawn at that wick level and labeled with a signal.
**Buy signal**
A green candle precedes exactly 3 consecutive red candles. One or more consecutive green candles then push back up and touch the high wick of the first red candle. A buy line is plotted at that level with the label "buy above this line."
**Sell signal**
A red candle precedes exactly 3 consecutive green candles. One or more consecutive red candles then push back down and touch the low wick of the first green candle. A sell line is plotted at that level with the label "sell below this line."
Each signal fires only once per setup — no duplicate lines.
**Settings**
*Pattern*
- Max Lines — controls how many signal lines are visible on the chart at once (default 10)
*Style*
- Line Length — how many bars the line extends to the right
- Buy / Sell Line Color
- Line Width
- Line Style — Solid, Dashed, or Dotted
*Labels*
- Buy / Sell Label Text — fully customizable signal text
- Text Size — Tiny, Small, Normal, Large, or Huge
- Label Color and Text Color for both buy and sell signals
**Notes**
- Signals are confirmed on bar close only — no repainting
- Works on any ticker and any timeframe
- Older lines are automatically removed when the Max Lines limit is reached
---
Gustavo fill block
This indicator automatically detects a 3-candle momentum structure followed by an order block confirmation and plots a horizontal signal line directly on the chart.
**How the pattern works**
The indicator looks for a sequence of exactly 3 consecutive candles of the same color (the "A zone") preceded by a candle of the opposite color. Once that structure is identified, it then watches for consecutive candles in the opposite direction (the order block) to reach back and touch the wick of the first A-zone candle. When that touch occurs, a horizontal line is drawn at that wick level and labeled with a signal.
**Buy signal**
A green candle precedes exactly 3 consecutive red candles. One or more consecutive green candles then push back up and touch the high wick of the first red candle. A buy line is plotted at that level with the label "buy above this line."
**Sell signal**
A red candle precedes exactly 3 consecutive green candles. One or more consecutive red candles then push back down and touch the low wick of the first green candle. A sell line is plotted at that level with the label "sell below this line."
Each signal fires only once per setup — no duplicate lines.
**Settings**
*Pattern*
- Max Lines — controls how many signal lines are visible on the chart at once (default 10)
*Style*
- Line Length — how many bars the line extends to the right
- Buy / Sell Line Color
- Line Width
- Line Style — Solid, Dashed, or Dotted
*Labels*
- Buy / Sell Label Text — fully customizable signal text
- Text Size — Tiny, Small, Normal, Large, or Huge
- Label Color and Text Color for both buy and sell signals
**Notes**
- Signals are confirmed on bar close only — no repainting
- Works on any ticker and any timeframe
- Older lines are automatically removed when the Max Lines limit is reached
リリースノート
ADDED ALERTリリースノート
ADD ALERTオープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。