OPEN-SOURCE SCRIPT
deKoder | Ultra High Timeframe Moving Average & Log StDev Bands

deKoder | Ultra High Timeframe Moving Average & Log StDev Bands
Identify long-term statistical extremes and map the core trend with the deKoder | uHTF MA indicator. Designed for macro analysis, this tool uses ultra high timeframe moving averages and logarithmic standard deviation bands to frame price action, providing clear signals for when an asset is statistically cheap, fairly priced, or expensive.
KEY FEATURES
• Ultra High Timeframe (uHTF) Moving Average:
• Acts as a dynamic long term fair value equilibrium line. Choose from periods like 1-Year, 2-Year, or 'Long Time'.
• Select your MA type: SMA, EMA, Hull MA, or a Rolling VWAP.
• Automatically fetches optimal data (4H/D) for smoother plotting on lower timeframes.
• Probabilistic Logarithmic Bands:
• The bands are calculated using log-standard deviation, creating a framework that adapts to exponential growth. As such, your chart price scale should be set to log.
• ~68% of price action typically occurs between the ±1σ bands (fair value zone).
• Trading in the ±1σ to ±2σ channel is typical in a strongly trending market. Moves towards the ±3σ bands can indicate that the market is becoming overextended. Expect strong price moves here and pay attention for signs of reversal.
• Bitcoin Halving Timeline:
• Integrated vertical lines and labels for all Bitcoin halvings.
• Correlates technical extremes with fundamental scarcity events.
• 4-Year Cycle Visual Aid:
• The background color cycle highlights yearly changes.
• Red years have historically aligned with bear markets, while the subsequent green zone has marked accumulation phases.
• Note: The bands provide the primary information - the background color is a contextual guide based on historical patterns around the BTC 4 year halving cycle that may not persist in future. It's quite possible that the market will act differently going forward considering the new types participants such as ETFs and government reserve funds.
HOW TO USE & INTERPRET
• Fair Value & Extremes:
• Price between ±1σ Bands: The asset is trading within a statistically fair value range.
• Price at +2σ / +3σ Bands: The asset is statistically expensive. Statistically, the price is overextended in this region, although you do NOT want to fade it based only upon this information.
• Price at -2σ / -3σ Bands: The asset is statistically cheap. These zones have frequently coincided with the end of bear markets and profound long-term buying opportunities.
• Dynamic Support & Resistance:
• The uHTF MA and its bands tend to act as support and resistance areas of interest on daily, weekly and monthly charts.
INPUTS & CUSTOMIZATION
• Toggles: Master switch for the MA, Bands, and Halving markers.
• uHTF Moving Average Filter: Select instrument (default: BITSTAMP:BTCUSD), price source, MA length, and type.
• Colours: Fine-tune the appearance of all elements.
PRO TIPS
• While created for Bitcoin, this principle will work well on other high-growth assets and major indices.
• The most reliable signals occur on the Daily, Weekly and Monthly timeframes.
• This is a lagging, macro-filter indicator. It is not for timing short-term entries but for confirming the long-term trend and cycle phase.
"Be Fearful When Others Are Greedy and Greedy When Others Are Fearful." - The deKoder | uHTF MA is here to help you quantify that greed and fear on a macro scale.
Identify long-term statistical extremes and map the core trend with the deKoder | uHTF MA indicator. Designed for macro analysis, this tool uses ultra high timeframe moving averages and logarithmic standard deviation bands to frame price action, providing clear signals for when an asset is statistically cheap, fairly priced, or expensive.
KEY FEATURES
• Ultra High Timeframe (uHTF) Moving Average:
• Acts as a dynamic long term fair value equilibrium line. Choose from periods like 1-Year, 2-Year, or 'Long Time'.
• Select your MA type: SMA, EMA, Hull MA, or a Rolling VWAP.
• Automatically fetches optimal data (4H/D) for smoother plotting on lower timeframes.
• Probabilistic Logarithmic Bands:
• The bands are calculated using log-standard deviation, creating a framework that adapts to exponential growth. As such, your chart price scale should be set to log.
• ~68% of price action typically occurs between the ±1σ bands (fair value zone).
• Trading in the ±1σ to ±2σ channel is typical in a strongly trending market. Moves towards the ±3σ bands can indicate that the market is becoming overextended. Expect strong price moves here and pay attention for signs of reversal.
• Bitcoin Halving Timeline:
• Integrated vertical lines and labels for all Bitcoin halvings.
• Correlates technical extremes with fundamental scarcity events.
• 4-Year Cycle Visual Aid:
• The background color cycle highlights yearly changes.
• Red years have historically aligned with bear markets, while the subsequent green zone has marked accumulation phases.
• Note: The bands provide the primary information - the background color is a contextual guide based on historical patterns around the BTC 4 year halving cycle that may not persist in future. It's quite possible that the market will act differently going forward considering the new types participants such as ETFs and government reserve funds.
HOW TO USE & INTERPRET
• Fair Value & Extremes:
• Price between ±1σ Bands: The asset is trading within a statistically fair value range.
• Price at +2σ / +3σ Bands: The asset is statistically expensive. Statistically, the price is overextended in this region, although you do NOT want to fade it based only upon this information.
• Price at -2σ / -3σ Bands: The asset is statistically cheap. These zones have frequently coincided with the end of bear markets and profound long-term buying opportunities.
• Dynamic Support & Resistance:
• The uHTF MA and its bands tend to act as support and resistance areas of interest on daily, weekly and monthly charts.
INPUTS & CUSTOMIZATION
• Toggles: Master switch for the MA, Bands, and Halving markers.
• uHTF Moving Average Filter: Select instrument (default: BITSTAMP:BTCUSD), price source, MA length, and type.
• Colours: Fine-tune the appearance of all elements.
PRO TIPS
• While created for Bitcoin, this principle will work well on other high-growth assets and major indices.
• The most reliable signals occur on the Daily, Weekly and Monthly timeframes.
• This is a lagging, macro-filter indicator. It is not for timing short-term entries but for confirming the long-term trend and cycle phase.
"Be Fearful When Others Are Greedy and Greedy When Others Are Fearful." - The deKoder | uHTF MA is here to help you quantify that greed and fear on a macro scale.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.