OPEN-SOURCE SCRIPT
MHIDa Relative-Weakness vs BTC

WHAT IT DOES
This indicator measures how much the asset on your chart is underperforming Bitcoin (or any reference symbol you choose) over a rolling window of bars. It plots the difference between the asset return and the reference return over the same window, in percent, in a separate pane. Values below zero mean the asset is weaker than the reference.
HOW IT WORKS
- It takes the asset return over the last N bars (default 10) and subtracts the reference symbol return over the same N bars. The comparison uses the just-closed bar (close[1] versus close[1+N]), so the reading is based on completed bars.
- Relative weakness = (asset return - reference return) * 100.
- When this value drops below your chosen threshold (default 8%), the pane background is shaded: that is an excess-of-weakness zone.
- If, inside that zone, the current candle closes green (close above open), a small watch triangle prints at the bottom of the pane: the underperformance is extreme AND a first sign of stabilization has appeared. The marker draws only on standard chart types.
WHY THESE PIECES ARE TOGETHER
The shaded zone alone tells you the underperformance is extreme, but an extreme can keep getting worse. The green-candle condition adds the first hint that the fall against the reference is cooling off. Neither piece is a trade signal on its own; together they point at spots worth examining by eye.
HOW TO USE IT
Works on any symbol and timeframe. Inputs: reference symbol (default BTC), window length in bars, weakness threshold in percent, and whether to require a green candle before flagging. An optional alert fires on the flag - it is a reminder to go look at the chart, not an order.
HONEST LIMITS
This is a context tool, not a signal and not financial advice. It is not a winning system on its own. The decision, the context and the risk stay with you.
This indicator measures how much the asset on your chart is underperforming Bitcoin (or any reference symbol you choose) over a rolling window of bars. It plots the difference between the asset return and the reference return over the same window, in percent, in a separate pane. Values below zero mean the asset is weaker than the reference.
HOW IT WORKS
- It takes the asset return over the last N bars (default 10) and subtracts the reference symbol return over the same N bars. The comparison uses the just-closed bar (close[1] versus close[1+N]), so the reading is based on completed bars.
- Relative weakness = (asset return - reference return) * 100.
- When this value drops below your chosen threshold (default 8%), the pane background is shaded: that is an excess-of-weakness zone.
- If, inside that zone, the current candle closes green (close above open), a small watch triangle prints at the bottom of the pane: the underperformance is extreme AND a first sign of stabilization has appeared. The marker draws only on standard chart types.
WHY THESE PIECES ARE TOGETHER
The shaded zone alone tells you the underperformance is extreme, but an extreme can keep getting worse. The green-candle condition adds the first hint that the fall against the reference is cooling off. Neither piece is a trade signal on its own; together they point at spots worth examining by eye.
HOW TO USE IT
Works on any symbol and timeframe. Inputs: reference symbol (default BTC), window length in bars, weakness threshold in percent, and whether to require a green candle before flagging. An optional alert fires on the flag - it is a reminder to go look at the chart, not an order.
HONEST LIMITS
This is a context tool, not a signal and not financial advice. It is not a winning system on its own. The decision, the context and the risk stay with you.
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。