OPEN-SOURCE SCRIPT

MSTR-BTC Premium

This custom indicator, “MSTR-BTC Premium with High, Average, and Low Levels,” helps you analyze the premium of MicroStrategy Incorporated’s (MSTR) stock price in relation to its Bitcoin holdings. By comparing the market capitalization of MSTR to the value of its Bitcoin holdings (using BTCUSD from Coinbase), this indicator calculates a premium that reflects how much the stock price deviates from its Bitcoin-related value.

Key Features:

• Premium Line: The primary feature is the “Premium,” which shows the ratio of MSTR’s market cap relative to its Bitcoin holdings and the BTCUSD price.
• High, Average, and Low Levels: The indicator calculates the highest, lowest, and average premium values over a user-defined period (default is 14 bars). These levels help identify overbought and oversold conditions relative to the stock’s Bitcoin valuation.
• Visual Shading: The area between the premium line and the average is shaded, making it easier to see when the premium is above or below its typical level. Optional shading is also available between the high and low levels to visualize the price range.

How to Use:
• Overbought/Undervalued Conditions: When the premium line rises significantly above the average, it may indicate that MSTR stock is overbought compared to its Bitcoin holdings. Conversely, when the premium falls below the average or approaches the low line, it might signal an undervalued opportunity.
• Trend and Mean Reversion: The high and low lines provide insight into extreme levels. Monitoring these alongside the average can assist in identifying potential mean reversion trades.

Customization:
• Calculation Period: The period for calculating the high, low, and average values can be adjusted to suit your trading strategy (default is 14).
• Shading Options: By default, the area between the premium and its average is shaded. You can enable or disable the shading between the high and low as needed.

This indicator is particularly useful for traders and investors following MicroStrategy (MSTR) and its Bitcoin strategy, providing a deeper understanding of the stock’s relationship to its underlying Bitcoin assets. It can assist in identifying key levels for decision-making based on deviations from historical norms.

How to Add the Indicator:

1. Adjust the calculation period (default is 14) to customize the analysis according to your preferred timeframe.
2. Watch for significant deviations of the premium line from its average to identify potential overbought/oversold conditions.
3. Use the high and low levels to help gauge extreme premium values and possible mean reversion opportunities.

Enjoy the analysis and make more informed decisions with the MSTR-BTC Premium Indicator!

This description should be clear and informative for anyone considering using your indicator. It highlights the functionality, purpose, and customization options in a straightforward way. Let me know if you’d like to tweak or adjust any part of it!
Bands and ChannelsBreadth IndicatorsCandlestick analysismicrostrategy

開源腳本

在真正的TradingView精神中,這個腳本的作者以開源的方式發佈,這樣交易員可以理解和驗證它。請向作者致敬!您可以免費使用它,但在出版物中再次使用這段程式碼將受到網站規則的約束。 您可以收藏它以在圖表上使用。

想在圖表上使用此腳本?


更多:

免責聲明