OPEN-SOURCE SCRIPT
更新済 Swing Move Area

Highlights sustained directional price swings — stretches where a stock has moved significantly in one direction over several days or weeks — while filtering out normal day-to-day noise.
How it works:
The indicator tracks price in one of two states: an up-swing or a down-swing. While in an up-swing, it continuously records the highest close reached. If price pulls back from that high by more than your Reversal Threshold (default 25%), the swing is considered over — a new down-swing begins, and the indicator starts tracking the low from there. The same logic applies in reverse for down-swings. Small retracements that don't exceed the threshold are ignored, so the swing keeps building through normal volatility instead of resetting on every wiggle.
The plotted area shows the cumulative % change from the start of the current swing to the current close — so a stock that ran from ₹100 to ₹432 over 54 days will show as one continuous green area reaching +332%, and a decline from ₹443 to ₹32 will show as one continuous red area reaching -93%.
Reading the chart:
Green area (above zero) — active up-swing; height = % gained from the swing's starting point
Red area (below zero) — active down-swing; height (depth) = % lost from the swing's starting point
Tall towers — large, sustained moves, exactly the kind of high-momentum stretches worth investigating
Flat/shallow ripples — normal chop that stayed within the reversal threshold
Inputs:
Reversal Threshold (%) — how much of a pullback from the peak/trough is needed to flip the swing direction. Lower = more sensitive, flips more often. Higher = smoother, only flags major trend changes.
Up/Down Swing Fill colors — customizable.
Note: This is a pane-only indicator (no chart overlay). It's a confirmed/lagging signal by design — a swing's full height is only known once it reverses, so use it for identifying and studying historical high-momentum moves rather than as a real-time entry trigger.
How it works:
The indicator tracks price in one of two states: an up-swing or a down-swing. While in an up-swing, it continuously records the highest close reached. If price pulls back from that high by more than your Reversal Threshold (default 25%), the swing is considered over — a new down-swing begins, and the indicator starts tracking the low from there. The same logic applies in reverse for down-swings. Small retracements that don't exceed the threshold are ignored, so the swing keeps building through normal volatility instead of resetting on every wiggle.
The plotted area shows the cumulative % change from the start of the current swing to the current close — so a stock that ran from ₹100 to ₹432 over 54 days will show as one continuous green area reaching +332%, and a decline from ₹443 to ₹32 will show as one continuous red area reaching -93%.
Reading the chart:
Green area (above zero) — active up-swing; height = % gained from the swing's starting point
Red area (below zero) — active down-swing; height (depth) = % lost from the swing's starting point
Tall towers — large, sustained moves, exactly the kind of high-momentum stretches worth investigating
Flat/shallow ripples — normal chop that stayed within the reversal threshold
Inputs:
Reversal Threshold (%) — how much of a pullback from the peak/trough is needed to flip the swing direction. Lower = more sensitive, flips more often. Higher = smoother, only flags major trend changes.
Up/Down Swing Fill colors — customizable.
Note: This is a pane-only indicator (no chart overlay). It's a confirmed/lagging signal by design — a swing's full height is only known once it reverses, so use it for identifying and studying historical high-momentum moves rather than as a real-time entry trigger.
リリースノート
title changeオープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。