OPEN-SOURCE SCRIPT
AHR999 | Astral Vision

AHR999 | Astral Vision 🌠💠
This indicator computes the AHR999 index, a composite valuation metric that combines two independent measures of Bitcoin's price position: its distance from a geometric moving average of recent price, and its distance from a long-term power law growth model based on Bitcoin's age in days. When both measures agree that price is depressed, the index produces low readings historically associated with strong accumulation opportunities.
Calculation ⚙️
The first component is the ratio between current Bitcoin price and its geometric mean over a configurable lookback window. Unlike an arithmetic mean, the geometric mean multiplies all values together and takes the N-th root, making it more representative of compounded growth and less sensitive to extreme price spikes. To keep the numbers computationally manageable, the daily close is scaled by dividing by 10,000 before computing the geometric mean, then rescaled afterward. The ratio of current price to this geometric mean measures whether price is above or below its recent compounded average.
The second component is the ratio between current price and a power law estimate of Bitcoin's fair value derived from its age. The power law estimate is: estimated price = 10 ^ (5.84 × log10(bitcoin age in days) + (-17.01)), where bitcoin age counts from the genesis block. This formula captures the empirically observed relationship between Bitcoin's price and the time elapsed since its creation, producing a continuously rising fair value line that reflects Bitcoin's historical growth trajectory. The ratio of current price to this estimate measures how far price sits above or below its age-implied fair value.
The AHR999 index is then the product of these two ratios: geometric mean ratio multiplied by power law ratio. Historically, readings below approximately 0.45 have corresponded to strong accumulation zones, while readings above 1.2 have corresponded to elevated valuation. A configurable oversold level controls when the index triggers the accumulation signal, and the corresponding price level at which the index would reach that threshold is plotted directly on the price chart as a dynamic support reference.
The price overlay band is derived by inverting the AHR999 formula: given a target index value of `os_level`, the implied price is the square root of (`os_level` × geometric mean price × estimated power law price).
Plots 📊
Inputs 🎛️
Colors 🎨
5 Astral Vision presets + custom override. Default: Paradiso.
Purpose 🎯
Standard moving average crossovers or RSI-based oversold signals measure Bitcoin's price relative only to its own recent history, without any reference to the long-term growth trajectory implied by its age and adoption curve. The AHR999 index introduces a second reference frame — the power law model — making it possible to distinguish between price being temporarily below its short-term average in a bull market versus being genuinely depressed relative to its structural long-term fair value. The dynamic price band on the chart further operationalizes this by showing in price terms exactly where the accumulation threshold currently sits, rather than requiring the user to mentally translate an oscillator reading back into a price level.
Disclaimer ⭕️
This indicator is for informational and educational purposes only. It does not constitute financial advice. Past performance is not indicative of future results. Always do your own research before making investment decisions.
This indicator computes the AHR999 index, a composite valuation metric that combines two independent measures of Bitcoin's price position: its distance from a geometric moving average of recent price, and its distance from a long-term power law growth model based on Bitcoin's age in days. When both measures agree that price is depressed, the index produces low readings historically associated with strong accumulation opportunities.
Calculation ⚙️
The first component is the ratio between current Bitcoin price and its geometric mean over a configurable lookback window. Unlike an arithmetic mean, the geometric mean multiplies all values together and takes the N-th root, making it more representative of compounded growth and less sensitive to extreme price spikes. To keep the numbers computationally manageable, the daily close is scaled by dividing by 10,000 before computing the geometric mean, then rescaled afterward. The ratio of current price to this geometric mean measures whether price is above or below its recent compounded average.
The second component is the ratio between current price and a power law estimate of Bitcoin's fair value derived from its age. The power law estimate is: estimated price = 10 ^ (5.84 × log10(bitcoin age in days) + (-17.01)), where bitcoin age counts from the genesis block. This formula captures the empirically observed relationship between Bitcoin's price and the time elapsed since its creation, producing a continuously rising fair value line that reflects Bitcoin's historical growth trajectory. The ratio of current price to this estimate measures how far price sits above or below its age-implied fair value.
The AHR999 index is then the product of these two ratios: geometric mean ratio multiplied by power law ratio. Historically, readings below approximately 0.45 have corresponded to strong accumulation zones, while readings above 1.2 have corresponded to elevated valuation. A configurable oversold level controls when the index triggers the accumulation signal, and the corresponding price level at which the index would reach that threshold is plotted directly on the price chart as a dynamic support reference.
The price overlay band is derived by inverting the AHR999 formula: given a target index value of `os_level`, the implied price is the square root of (`os_level` × geometric mean price × estimated power law price).
Plots 📊
- AHR999 index line colored by position relative to the oversold threshold
- Oversold threshold line in the sub-panel
- Dynamic price level on the chart corresponding to the oversold threshold
- Background color highlight in the sub-panel and on the price chart when index is below threshold
- Candle coloring with continuous gradient reflecting the index value
Inputs 🎛️
- Length: lookback window for the geometric mean calculation
- Oversold Level: index threshold below which accumulation conditions are signaled
Colors 🎨
5 Astral Vision presets + custom override. Default: Paradiso.
Purpose 🎯
Standard moving average crossovers or RSI-based oversold signals measure Bitcoin's price relative only to its own recent history, without any reference to the long-term growth trajectory implied by its age and adoption curve. The AHR999 index introduces a second reference frame — the power law model — making it possible to distinguish between price being temporarily below its short-term average in a bull market versus being genuinely depressed relative to its structural long-term fair value. The dynamic price band on the chart further operationalizes this by showing in price terms exactly where the accumulation threshold currently sits, rather than requiring the user to mentally translate an oscillator reading back into a price level.
Disclaimer ⭕️
This indicator is for informational and educational purposes only. It does not constitute financial advice. Past performance is not indicative of future results. Always do your own research before making investment decisions.
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
My premium indicators are available on Whop:
whop.com/astralvision
Astral Vision 🌠💠
whop.com/astralvision
Astral Vision 🌠💠
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
My premium indicators are available on Whop:
whop.com/astralvision
Astral Vision 🌠💠
whop.com/astralvision
Astral Vision 🌠💠
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.