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提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。