India market cap and smart dataThis indicator displays important financial and technical data, such as Market Cap, P/E Ratio, ADR %, etc.
It is specially designed for swing traders.
Key Features and Highlights
- Market Cap Alert: If the Market Cap of a stock is below 1000 crore , it is displayed in red to indicate a potential liquidity issue.
- P/E Ratio for Loss-Making Companies : For companies with net losses, the P/E ratio is shown as 0 and displayed in red , alerting you to the unprofitable status of the company.
- ADR Alert: When the ADR is below 4% , it is highlighted in red . Swing traders typically look for stocks with high ADR.
- 52-Week High Proximity: If a stock is more than 20% below its 52-week high , this data is shown in red .
- 52-Week Low Performance: If a stock is up by more than 70% from its 52-week low , the data is displayed in green , indicating strong performance.
Additional Features
- Toggle data points on or off as desired.
- Supports both dark and light modes.
- Position the table wherever preferred on the chart.
- Customize the ADR % calculation based on the desired number of days (default is 20 days).
Note: The calculation for the percentage away from the 52-week high is based on the closing price of the 52-week high candle, not the high price.
Fundamental Analysis
RiskMosaic | SandiB V2Risk On/Off System
This indicator acts as a comprehensive framework that integrates a diverse range of indicators—spanning liquidity, sentiment, market volatility, and macroeconomic factors—to construct a holistic view of risk.
By blending these varied components, the system identifies shifts in risk-on and risk-off environments, providing a complete and dynamic assessment of global market conditions.
This allows for more informed decision-making by capturing both localized and broad market influences in real time, enabling proactive risk management and the ability to adapt to rapidly changing conditions.
Composition :
4 different categories - each one equal weight
-> Mix of Global & U.S Liquidity
-> Mix of different macro factors
-> Mix of Crypto and Commodities
-> Mix of Volatility & Risk Indicators
Colors description:
- Green = strong = full risk on sentiment/environment
- Red = weak = full risk off sentiment/environment
- Blue = recovery = medium risk on sentiment/environment
- Purple = contraction = medium risk of sentiment/environment
-> Colors are based on oscillator line:
- crossing over 0 or 0.4 = green
- crossing under 0 or -0.5 = red
- crossing over -0.35 = blue
- crossing under 0.35 = purple
RV- Dynamic Trend AnalyzerRV Dynamic Trend Analyzer
The RV Dynamic Trend Analyzer is a powerful TradingView indicator designed to help traders identify and capitalize on trends across multiple time frames—daily, weekly, and monthly. With dynamic adjustments to key technical indicators like EMA and MACD, the tool adapts to different chart periods, ensuring more accurate signals. Whether you are swing trading or holding longer-term positions, this indicator provides reliable buy/sell signals, breakout opportunities, and customizable visual elements to enhance decision-making. Its intelligent use of EMAs and MACD values ensures high potential returns, making it suitable for traders seeking strong, data-driven strategies. Below are its core features and their respective benefits.
Supertrend Indicator:
Importance: The Supertrend is a trend-following tool that helps traders identify the market’s direction by offering clear buy and sell signals based on price movement relative to the Supertrend line.
Benefits:
Helps filter out market noise and enables traders to stay in trends longer.
The pullback detection feature enhances trade timing by identifying potential entry points during retracements.
ATH/ATL & 52-Week High/Low with Candle Coloring:
Importance: Tracking all-time highs (ATH), all-time lows (ATL), and 52-week high/low levels helps traders identify key support and resistance levels.
Benefits:
Offers insights into the strength of price movements and potential reversal zones.
Candle coloring improves visual analysis, allowing quick identification of bullish or bearish conditions at critical levels.
Multi-Time Frame Analysis
Importance: The ability to view indicators like RSI and MACD across multiple time frames provides a more in-depth and comprehensive view of market behavior, allowing traders to make informed decisions that align with both short-term and long-term trends.
Benefits:
Align Strategies Across Time frames: By using multiple time frames, traders can align their strategies with larger trends (such as weekly or daily) while executing trades on lower time frames (like 1-minute or 5-minute charts). This improves the accuracy of trade entries and exits.
Reduce False Signals: Viewing key technical indicators like RSI and MACD across different time frames reduces the likelihood of false signals by offering a broader market context, filtering out noise from smaller time frames.
Customization of Table Display: Traders can customize the position and size of a table that displays RSI and MACD values for selected time frames. This flexibility enhances visibility and ease of analysis.
Time frame-Specific Data: The code allows for displaying RSI and MACD data for up to seven different time frames, making it highly customizable for traders depending on their preferred analysis period.
Visual Clarity: The table displays key values such as RSI and MACD histogram readings in a visually clear format, with color coding to quickly indicate overbought/oversold levels or MACD crossovers.
Pivot Points:
Importance: Pivot points serve as key support and resistance levels that help predict potential price movements.
Benefits:
Assists in identifying potential reversal zones and breakout points, aiding in trade planning.
Displaying pivot points across multiple time frames enhances market insight and improves strategic planning.
Quarterly Earnings Table:
Importance: Understanding a company’s quarterly earnings releases is crucial, as these events often lead to significant price volatility. Traders can leverage this information to adjust their strategies around earnings reports and prevent unexpected losses.
Benefits:
Helps traders anticipate potential price movements due to earnings reports.
Allows traders to avoid sudden losses by being aware of important earnings announcements and adjusting positions accordingly.
Customizable Visuals for Traders:
Dark Mode: Toggle between dark and light themes based on your chart's color scheme.
Mini Mode: A condensed version that visually simplifies the data, making it quicker to interpret through color-coded traffic lights (green for positive, red for negative).
Table Size & Position: Customize the size and position of the table for better visibility on your charts.
Data Period (FQ vs FY): Easily switch between displaying quarterly or yearly data based on the selected period.
Top-Left Cell Display: Option to display Free Float or Market Cap in the top-left cell for quick reference.
Exponential Moving Averages (EMAs) with Adjustable Lengths:
Importance: EMAs are essential for identifying trends and generating reliable buy/sell signals. The indicator plots four EMAs that dynamically adjust based on the selected time frame.
Benefits:
Dynamic Time frame Logic: EMA lengths and sources automatically adapt based on whether the user selects daily, weekly, or monthly time frames. This ensures the EMAs are relevant for the chosen strategy.
Multiple EMAs: By incorporating four different EMAs, users can observe both short-term and long-term trends simultaneously, improving their ability to identify key trend shifts.
Breakout Arrow Functionality:
Importance: This feature visually signals potential buy/sell opportunities based on the interaction between EMAs and MACD crossovers.
Benefits:
Crossover Signals: Arrows are plotted when EMAs and MACD cross, indicating breakout opportunities and aiding in quick trade decisions.
RSI Filter Option: Users can apply an optional RSI filter to refine buy/sell signals, reducing false signals and improving overall accuracy.
Disclaimer:
Before engaging in actual trading, we strongly recommend back testing the this indicator to ensure it fits your trading style and risk tolerance. Be sure to adjust your risk-reward ratio and set appropriate stop-loss levels to safeguard your investments. Proper risk management is key to successful trading.
Earnings Surprise Indicator (Post-Earnings Announcement Drift)What It Does:
- Displays a company's actual earnings vs. analysts' estimates over time
- Shows "earnings surprises" - when actual results beat or miss expectations
- Helps identify trends in a company's financial performance
How It Works:
- Green bars: Positive surprise (earnings beat estimates)
- Red bars: Negative surprise (earnings missed estimates)
- Yellow line: Analysts' earnings estimates
Correlation with Post Earnings Announcement Drift (PEAD): PEAD is the tendency for a stock's price to drift in the direction of an earnings surprise for several weeks or months after the announcement.
Why It Matters:
- Positive surprises often lead to upward price drift
- Negative surprises often lead to downward price drift
- This drift can create trading opportunities
How to Use It:
1. Spot Trends:
- Consistent beats may indicate strong company performance
- Consistent misses may signal underlying issues
2. Gauge Market Expectations:
- Large surprises may lead to significant price movements
3. Timing Decisions:
- Consider long positions after positive surprises
- Consider short positions or exits after negative surprises
4. Risk Management:
- Be cautious of reversal if the drift seems excessive
- Use in conjunction with other technical and fundamental analysis
Key Takeaways:
- Earnings surprises can be fundamental-leading indicators of future stock performance, especially when correlated with analyst projections
- PEAD suggests that markets often underreact to earnings news initially
- This indicator helps visualize the magnitude and direction of surprises
- It can be a valuable tool for timing entry and exit points in trades
ICT Killzones with Market BehaviorIndicator Title: ICT Killzones with Market Behavior
Description:
Introducing the ICT Killzones with Market Behavior indicator, a powerful tool designed for traders looking to capitalize on key trading timeframes in the New York session.
Key Features:
Visual Timeframes: This indicator highlights essential trading periods, including Pre-Market, NY Open, NY Lunch, and NY PM sessions. These visual markers help you quickly identify when the market is likely to experience heightened activity and liquidity.
Real-Time Insights: Stay informed with dynamic text displayed at the top of your chart. The indicator updates in real-time, providing actionable insights on what to expect during each session—whether it’s volatility, consolidation, or potential trend continuation.
Custom Color Options: Tailor the color settings for each killzone to fit your personal trading style and enhance the visual clarity of your chart.
User-Friendly Design: Built with simplicity in mind, this indicator integrates seamlessly into TradingView, making it easy for traders of all experience levels to utilize.
How to Use:
Add to Your Chart: Integrate the ICT Killzones with Market Behavior indicator into your TradingView setup.
Monitor Market Conditions: Keep an eye on the highlighted timeframes and the real-time insights displayed at the top. This information can guide your trading strategy effectively.
Adjust Your Approach: Use the insights from the indicator to modify your trading decisions based on the expected market behavior during each session.
Note: This indicator is for educational purposes only and should not be interpreted as financial advice. Always perform your own research and assess risks before making any trading decisions.
DMR By ANTExplanation of the DMR by ANT Script
a. What is This Script and How Is It Useful?
This Pine Script, named "DMR by ANT, " is designed for use on TradingView, focusing on dynamically assessing market conditions. It calculates key levels, specifically the high and low of the previous two days, to establish trading zones that assist traders in making informed decisions.
The script highlights:
Previous Day's High and Low : It captures the high and low prices from the previous two days to help set up trading ranges.
First 15 Minutes Candles High and low is marked with Orange Lines .
Trade Zones : It identifies whether the current price is in a 'tradeable' zone or 'non-tradeable' zone. The zones are determined based on the relationship between the current price, today's open price, and the calculated high and low levels.
Targets and Stop Losses : The script dynamically provides target and stop-loss levels based on user-defined input points, which can help manage risk effectively.
This script is beneficial for traders looking to enter (or avoid) trades based on defined price action criteria and can effectively streamline the analysis process in fast-moving markets.
Customize Input Parameters:(settings)
Adjust the ATR, based on ATR target and stop-loss is calculated and displayed. The default values 7(rest see the help), Dynamics changes based on ATR values changes in real time.
b. How to Effectively Use This Script
The DMR script can be utilized across various trading instruments, including:
Indexes: Suitable for gauging market sentiment and overall trends; can assist in short-term trading strategies.
Options: Helps determine the likely movement of the underlying assets, providing insight into probable volatility and directional bias.
ETFs (Exchange-Traded Funds): Useful for trading diversified portfolios; traders can define entry and exit points relevant to the basket of stocks.
Stocks: Ideal for individual stock trading, as traders can analyze stock movements concerning broader market trends.
When utilizing this script, traders should:
Identify key trading levels before entering trades based on the calculated high and low ranges.
Use the dynamic targets and stop-loss levels to protect capital and maximize potential gains.
Continuously monitor the script's signals and adapt to ongoing market changes.
c. Best Time Frames for Different Instruments
The optimal time frames for using the DMR script can vary based on the trading instrument.
Here’s a summary in tabular format for clearer guidance:
Instrument Best Time Frames
Index 5-minute, 15-minute, 1-hour
Options 1-minute, 5-minute, 15-minute
ETF 5-minute, 15-minute, 1-hour
Stocks 5-minute, 15-minute, 1-hour, Daily
Indexes: Shorter time frames (5 to 15 minutes) can capture quick market movements, while 1-hour frames can provide a broader market overview.
Options Trading: Given the time sensitivity of options, using very short time frames (1-5 minutes) can be effective to seize rapid price movements before expiry.
ETFs: Similar to indices, shorter frames help in effectively tracking movements of the underlying assets.
Stocks: A mix of short (5-15 minutes) for day trading and daily charts for swing trading can provide balanced insights.
Conclusion
Utilizing the DMR by ANT script can greatly enhance a trader's ability to analyze market conditions, identify opportunities, and manage risk effectively. By adapting the script through the different listed recommendations, traders can maximize their trading strategy’s effectiveness across various instruments.
Do comment below for further improvement.
Quarterly Highlight ModelDiscover a new edge in your market analysis with our latest TradingView script. Designed to highlight quarterly performance, this tool not only offers insights into individual companies but also serves as a powerful lens to examine broader market trends.
Key Features:
- Quarterly Highlights: Easily identify and analyze each company's performance across four quarters, with each quarter represented by a unique color for clear visual distinction.
- Trend Analysis: Use quarterly data to spot trends and make informed decisions.
Enhance your trading strategy with deeper insights and a comprehensive view of market conditions. Check it out and let’s revolutionize the way we understand the markets!
LV Stock QualityCritical financial and technical values are listed in the table.
PIOTROSKI_F_SCORE (expect. >5) -> The Piotroski score is a discrete score between zero and nine that reflects nine criteria used to determine the strength of a firm's financial position. The Piotroski score is used to determine the best value stocks, with nine being the best and zero being the worst. Having a score bigger than 5 is a good sign for the strength of a firm's financial position
ROE (expect. >11) --> Return on equity (ROE) is a measure of a company's financial performance. It is calculated by dividing net income by shareholders' equity. Because shareholders' equity is equal to a company’s assets minus its debt, ROE is a way of showing a company's return on net assets. A “good” ROE will depend on the company’s industry and competitors.
EPS_GROWTH (expect. >11) --> This indicator is calculated as the percentage change in Basic earnings per share for one year. This indicator reflects the growth rate of a company's basic profit per share outstanding for one year. It is calculated based using only common shares. An increase in EPS growth may signal that a company is becoming more profitable and efficient in its operations. A decline in EPS growth may signal that a company is spending more or losing business share. EPS growth should be viewed alongside other metrics like revenue and costs.
CURRENT_RATIO (expect. >1.25) --> The current ratio measures a company’s ability to pay current, or short-term, liabilities (debt and payables) with its current, or short-term, assets (cash, inventory, and receivables). Current ratios over 1.00 indicate that a company's current assets are greater than its current liabilities, meaning it could more easily pay of short-term debts.
OPERATING_MARGIN(expect. >11) --> The operating margin measures how much profit a company makes on a dollar of sales after paying for variable costs of production, such as wages and raw materials, but before paying interest or tax.
RETURN_CAPITAL (expect. >11) --> Return of capital (ROC) is a payment that an investor receives as a portion of their original investment and that is not considered income or capital gains from the investment.
ALTMAN_Z_SCORE (expect. >1.8) --> The Altman Z-score is the output of a credit-strength test that gauges a publicly traded manufacturing company's likelihood of bankruptcy. An Altman Z-score close to 0 suggests a company might be headed for bankruptcy, while a score closer to 3 suggests a company is in solid financial positioning.
REVENUE_GROWTH (expect. >11) --> Quarterly revenue growth is an increase in a company's sales in one quarter compared to sales of a different quarter. Comparing a company's financials from one period to another gives a clear picture of its revenue growth rate and can help investors identify the catalyst for such growth.
SUSTAINABLE_GROWTH (expect. >11) --> The sustainable growth rate (SGR) is the maximum rate of growth that a company or social enterprise can sustain without having to finance growth with additional equity or debt. In other words, it is the rate at which the company can grow while using its own internal revenue without borrowing from outside sources.
DEBT TO INCOME (expect. <0.4) --> A debt-to-income (DTI) ratio is a financial metric used by lenders to determine your borrowing risk. Your DTI ratio represents the total amount of debt you owe compared to the total amount of money you earn each month.
NORMALIZED ATR (expect. <8, W) --> The Normalized Average True Range (Normalized ATR) is an indicator used to measure market volatility by normalizing the average true range values. It does this by dividing the Average True Range (ATR) by the asset's closing price, converting it into a percentage. This normalization allows for the comparison of volatility levels across different securities or market conditions, regardless of the asset's price levels. The Normalized ATR helps traders to adjust their strategies based on relative volatility, rather than absolute price movements.
INDEX expect. EMA10>EMA20 --> it is expected to have EMA 10 > EMA 20 in weekly basis graph. It is known that having a strong trend in index will also increases chance of strong trend on stock levels. You need to select INDEX Market of stock via settings.
M. RELATIVE STRENGTH expect. MRS>1 --> Stan Weinstein uses the Mansfield RS indicator as another relative strength indicator. The indicator measures the variation in the 52-week ratio of stock and market.
VOLUME CHANGE (expect. >30) --> Having an increase on volume comparing to previous week can be a good sign if it occurs at the same time of breakout.
PRICE CHANGE (expect. >5 and <20) --> Having an increase on price comparing to previous week can be a good sign if it occurs at the same time of breakout.
It is better to look on weekly basis graphs.
Chartonaut: GlimpseDisplays an overview of some key metrics as a table.
Market Cap : value of the company.
Float Shares : number of shares available for trading.
AR# : average range over the last # sessions.
ATR# : average true range over the last # sessions.
ATR#/MA# : distance of the current price from the given moving average (MA) in terms of ATR multiples.
Rel Volatility : current session's range, including gaps from previous close, relative to the ATR.
Additionally, it highlights some metrics if they are crossing a given threshold, as to warn that some criteria might not be met.
AOC Support & Resistance V1he AOC V1 indicator is designed to plot up to six customizable horizontal price levels on a chart with display options and label customization. This indicator is helpful for marking support (S1, S2, S3) and resistance (R1, R2, R3) levels, often used by traders to analyze market behavior.
Key Features:
Price Level Inputs: Six price levels (R1, S1, R2, S2, R3, S3) can be manually set. These levels are typically used as support and resistance levels.
Display On/Off Toggle: Each price level has an option to be toggled on or off, allowing the user to display only the relevant levels.
Custom Line Style: Users can adjust the color, width, and style (solid, dotted, or dashed) for each line to enhance the chart’s clarity and fit the user's preferences.
Label at Start of the Day: Each price level has a label that shows the price and is placed at the start of the trading day. This helps traders easily identify and track key price levels throughout the session.
Session Control: You can choose to draw the lines either for the entire chart or just for the current day’s trading session. This flexibility allows traders to focus on real-time price movements or broader trends.
Auto-Update: The lines are automatically updated as new bars are formed, ensuring that they stay anchored to the specified price levels.
Inputs:
R1, S1, R2, S2, R3, S3: The specific price levels for the resistance and support levels.
Line Color: Users can customize the line color for each level (Red for resistance levels and Green for support levels by default).
Line Width: The width of the horizontal lines, which can be adjusted from 1 to 5 pixels.
Line Style: The line style can be set to solid, dotted, or dashed, depending on user preference.
Display On/Off: Each level can be individually displayed or hidden by toggling the display option.
This indicator is highly customizable and designed to provide traders with easy-to-interpret visual cues for key price levels in the market.
Risk Matrix [QuantraSystems]Risk Matrix
The Risk Matrix is a sophisticated tool that aggregates a variety of fundamental inputs, primarily external (non-crypto) market data is used to assess investor risk appetite. By combining external macroeconomic factors and proxies for liquidity data with specific signals from the cryptomarket - the Risk Matrix provides a holistic view of market risk conditions. These insights are designed to help traders and investors make informed decisions on when to adopt a risk-on or risk-off approach.
Core Concept
The Risk Matrix functions as a dynamic risk assessment tool that integrates both fundamental and technical market indicators to generate an aggregated Z-score. This score helps traders to identify where the market is in a risk-off or risk-on state, The system provides both binary risk signals and a more nuanced “risk seasonality” mode for deeper analysis.
Key Features
Global Liquidity Aggregate - The Liquidity score is a custom measure of global liquidity, built by combining a variety of traditional financial metrics. These include data from central bank balance sheets, reverse repo operations and credit availability. This data is sourced from organizations such as the U.S. Federal Reserve, the European Central Bank, and the People’s Bank of China. The purpose of this aggregate is to gauge how much liquidity is available in the global financial system - which often correlates with risk sentiment. Rising liquidity tends to boost risk-on appetite, while liquidity contractions signal increased caution (risk-off) in the markets. The data sources used in this global liquidity aggregate include:
- U.S. Commercial Bank Credit data
- Federal Reserve balance sheet and reverse repo operations
- Liquidity from major central banks including the Fed, Bank of Japan, ECB, and PBoC
- Asset performance from major global financial indices such as the S&P 500, TLT, DXY (U.S. Dollar Index), MOVE (bond market volatility), and commodities like gold and oil.
Other key Z-scores (measured individually) - The Risk Matrix also incorporates other major Z-scores that represent different facets of the financial markets:
- Collateral Risk - A measure of US bond volatility, where higher values indicate higher interest rate risk - leading to potential market instability and cautious market behaviors.
- Stablecoin Dominance - The dominance of stablecoins in the crypto markets - which can signal risk aversion the total capital allocated to stables increases relative to other cryptocurrencies.
- US Currency Strength - The U.S. Dollar Index Z-score reflects currency market strength, with higher values typically indicating risk aversion as investors sell more volatile assets and flock to the dollar.
- Trans-pacific Monetary Bias - Signals capital flow and monetary trends that link between the East and West, heavily influencing global risk sentiment.
- Total - A measure of the total cryptocurrency market cap, signaling broader risk sentiment with the crypto market.
Neural Network Synthesis - The NNSYNTH component adds a machine learning inspired layer to the Risk Matrix. This custom indicator synthesizes inputs from various technical indicators (such as RSI, MACD, Bollinger Bands, and others) to generate a composite signal that reflects the health of the cryptomarket. While highly complex in its design, the NNSYNTH ultimately helps detect market shifts early by synthesizing multiple signals into one cohesive output. This score is particularly useful for gauging momentum and identifying potential turning points in market trends. Because the NNSYNTH is a closed source indicator, and it is included here, the Risk Matrix by extension is a closed source indicator.
How it Works
Z-score Aggregation - The Risk Matrix computes a final risk score by aggregating several Z-scores from different asset classes and data sources, all of which contribute proportionally to the overall market risk assessment. Each input is equally weighted - normalization allows for direct comparisons across global liquidity trends, currency fluctuations, bond market volatility and crypto market conditions. Furthermore, this system employs multi-calibration aggregation - where each individual matrix is itself an aggregate of multiple Z-scores derived from various timeframes. This ensures that each matrix captures a distinct average across different time horizons before being combined into the overall Risk Matrix. This layered, multi timeframe approach enhances the precision and robustness of the final Z-score.
Risk-On / Risk-Off Mode - The system’s binary mode provides a clear Risk On and Off signal. This nature of this signal is determined by the behavior of the Z-score relative to the midline, or Standard Deviation Bands, depending on specific conditions:
Risk-On is signaled when the aggregated final Z-score crosses above 0. However, in extreme oversold conditions, Risk-On can trigger early if the upper standard deviation band falls below the zero line. In such cases, the Risk-On signal is triggered when the z-score crosses the upper standard deviation band - without waiting to cross the midline.
Risk-Off is signaled when the final Z-score moves below 0. Similarly, Risk-Off can also be triggered early if the lower standard deviation band rises above the midline. In this instance, Risk-Off is triggered when the Z-score crosses below the lower band.
Risk Seasonality Mode - This mode offers a more gradual transition between risk states, measuring the change in the Z-score to visualize the shifts in risk appetite over time. It's useful for traders seeking to understand broader market cycles and risk phases. The seasonality view breaks down the market into the following phases:
Risk-On - High risk appetite where risk/cyclical markets are generally bullish.
Weakening - Markets showing signs of cooling off, here the higher beta assets tend to sell off first.
Risk-Off - Investors pull back, and bearish sentiment prevails.
Recovery - Signs of bottoming out, potential for market re-entry.
Component Matrices - Each individual Z-score is visualized as part of the component matrices - scaled to a 3 Sigma range. These component matrices allow traders to view how each data source is contributing to the overall risk assessment in real time - offering transparency and granularity.
Visuals and UI
Main Risk Matrix - The aggregated Z-Score is displayed saliently in the main risk matrix. Traders and investors can quickly see what season the Risk Matrix is signaling and adjust their strategies accordingly.
Overview Table - A detailed overview table shows the current confirmed Z-scores for each component, along with values from 2, and 3 bars back. This helps traders spot trends and the rate of change (RoC) between signals, offering additional insights for shorter-term risk management.
Customizability - Users can customize the visual elements of the matrix, including color palettes, table sizes, and positions. This allows for optimal integration into any trader’s existing workspace.
Usage Summary
The Risk Matrix is an incredibly versatile tool. It is especially valuable as a means of achieving a cross-market view of risk, incorporating both crypto-specific and macroeconomic factors. Some key use cases include:
Adjusting Capital Allocation Based on Risk Seasons - Traders can use the Risk Matrix to adjust their capital allocation dynamically. During Risk-On periods, they might increase exposure to long positions, capitalizing on stronger market conditions. Conversely, during Risk-Off periods, traders could reduce or hedge long positions and potentially scale up short positions or move into safer assets.
Complementing Other Trading Systems - The Risk Matrix can work alongside other technical systems to provide context to market moves. For instance, a trend-following strategy might suggest an entry, but the Risk Matrix could be used to verify whether the broader market conditions support this trade. If the Matrix is in a Risk-Off period, a trader might opt for more conservative trade sizes or avoid the trade entirely.
This flexibility allows traders to adjust their strategies and portfolio risk dynamically, enhancing decision making based on broader market conditions - as indicated by external macroeconomic factors, liquidity, and risk sentiment.
Important Note
The Risk Matrix always uses the most up-to-date data available, ensuring analysis reflects the latest market conditions and macroeconomic inputs. In rare cases, governments or financial institutions revise past data - and the Risk Matrix will adjust accordingly. This behavior can only be seen in the Liquidity Matrix. and can affect the final score. While this is uncommon, it highlights the benefit of using a system that adapts in real-time, incorporating the most accurate and current information to enhance decision making processes.
CoffeeShopCrytpo Dynamic PPIIn the financial world, the Producer Price Index (PPI) is often used to measure how domestic products are performing over time, indicating the health of the market. Domestic products refer to goods and services that are produced within a specific country’s borders. However, in this indicator, we’ve taken that idea and applied it directly to financial assets, allowing traders to see how an asset is performing relative to its own base value over a given period of time.
Here, the asset’s base value is represented as 100%. When the asset performs above 100%, it's considered to be in a buyer's market—indicating strength and demand. Conversely, if the value dips below 100%, it's operating below its base value, signaling a potential seller's market.
Why This Matters:
This indicator not only converts an asset’s performance into a PPI-style calculation, but it also visualizes price movements as price candles. This dual perspective is crucial, because even if the asset’s performance is over 100%, the closing price might still fall below that threshold—adding nuance to your understanding of market conditions.
Key Features of the Indicator:
Bullish and Bearish Convergence Levels: These levels show whether the market leans bullish or bearish. If the Bullish Convergence level is higher than the Bearish one, the market is bullish, and vice versa. Importantly, these levels can signal shifts in market strength, regardless of where the PPI candles are positioned.
If Bullish Convergence is rising below Bearish, the bearish market is weakening and bullish pressure is growing. Conversely, if Bearish Convergence is falling above Bullish, the bearish side is losing ground.
Market Strength Visualizations:
Strong Bullish Market: Bullish Convergence is higher than Bearish, and it’s still rising.
Strong Bearish Market: Bearish Convergence is above Bullish, and it's climbing.
Weak Bullish Market: Bullish Convergence is above Bearish, but the PPI closes below Bullish Convergence.
Weak Bearish Market: Bearish Convergence is above Bullish, but the PPI closes above Bullish Convergence
Pullbacks:
Bullish Pullback: In a strong bullish market, the PPI shows lower closes below the Bullish Convergence.
Bearish Pullback: In a strong bearish market, the PPI shows higher closes above the Bullish Convergence.
Divergences:
Higher Price, Lower or Flat PPI: This indicates that while the asset’s price is rising, its underlying performance (relative to the PPI’s 100% base level) is not keeping up. Essentially, the asset is reaching new price highs, but its strength or "efficiency" of growth is weakening.
The PPI is designed to show the "return" of an asset's performance relative to its historical movement, so when it lags behind price, it suggests that the price rise may not be sustainable.
When you observe the first high of the PPI level above the bullish convergence level, followed by a second high of the PPI below the bullish convergence level in a bullish market, this creates a divergence.
Example of Divergence in image:
1. First High of PPI Above the Bullish Convergence Level:
This suggests strong bullish momentum. The asset’s performance, as measured by the PPI, is in line with or even outperforming price expectations, indicating the market is experiencing a robust bullish trend. The fact that the PPI level is above the bullish convergence line means that the asset is operating well above its base performance (above 100%) and bullish momentum is clearly dominant.
2. Second High of PPI Below the Bullish Convergence Level:
This marks a potential weakening of the bullish momentum. Although the market is still in a bullish state (since bullish convergence remains above bearish), the PPI failing to reach the bullish convergence level suggests that the asset’s performance is not keeping pace with price action or is underperforming relative to its earlier high.
The fact that this occurs while the market is still bullish (bullish convergence is greater than bearish) can signal a possible pullback or a temporary consolidation phase within the larger bullish trend.
What does a divergence mean:
Momentum Weakening: The second high of the PPI being below the bullish convergence line suggests that while prices may still be increasing, the strength behind the move is fading. The asset is not performing as strongly as it did during the first high, and the market’s confidence or momentum might be softening.
Potential Bullish Pullback: This could indicate that a pullback or correction within the larger bullish trend is underway. Traders might be taking profits, or buyers could be losing enthusiasm, causing the asset to stall temporarily. However, because the overall market remains bullish, this doesn’t necessarily mean a full reversal—just a cooling off period.
Caution in New Long Positions: If you see this divergence, it could be a sign to be more cautious about opening new long positions. It suggests that the asset may need to consolidate or correct before resuming its upward trend, and it’s worth waiting for confirmation of renewed momentum before jumping back in.
ATR Settings
Youll notice there are two ATR settings. One for short term and one for long term.
These values are based on your preferential strategy for what you consider to be long and short term.
The final ATR values are calculated against eachother and applied to the Volatility Label at the end of price.
This label shows you the current ATR as well as the previous candle ATR.
Why this is important:
If the short term ATR is greater than the long term ATR, then volatility is rising in the short term greater than the long term.
This gives your label a value greater than 1.0. This means the short term trend is about to move.
If the long term ATR is greater than the short term ATR, there is no volatility in the short term and only long term exists.
This gives you a value of less than 1.0. This means no volatility or ranging market in the short term.
AmirAli 20 Pairs/USDT&BTCThis TradingView indicator, titled "20 Pairs/USDT&BTC," is designed to analyze and display the Exponential Moving Averages (EMAs) of various cryptocurrency pairs against USDT and BTC. Here's a detailed breakdown of its features, functionality, and usage:
Key Features:
Pairs Display: The indicator allows users to select which cryptocurrency pairs they wish to display on the chart. The available options include popular cryptocurrencies such as Ethereum (ETH), Binance Coin (BNB), Solana (SOL), Dogecoin (DOGE), Ripple (XRP), Litecoin (LTC), Polkadot (DOT), Avalanche (AVAX), Uniswap (UNI), Chainlink (LINK), Cardano (ADA), Cosmos (ATOM), Filecoin (FIL), Stellar (XLM), VeChain (VET), Enjin (ENJ), Celo (CELO), Hedera (HBAR), and Sandbox (SAND).
Dynamic Price Retrieval: For each selected pair, the indicator retrieves the closing prices for both USDT and BTC from Binance. This is done using the request.security function, which fetches real-time data.
EMA Calculation: The indicator calculates and plots the EMA for each cryptocurrency pair over a user-defined length, allowing traders to identify trends and potential buy/sell signals based on price movements relative to their EMAs.
User Customization: Users can customize several parameters, including the time frame for data retrieval, EMA length, and the visibility of each pair.
Market Hours Visualization: The indicator highlights the trading hours with a gray background, helping users identify when the market is active.
How to Use the Indicator:
Adding the Indicator: To use the indicator, add it to your TradingView chart by searching for "20 Pairs/USDT&BTC" in the public library or by pasting the provided Pine Script code into a new indicator script.
Select Pairs: Enable or disable specific cryptocurrency pairs in the input options at the top of the script. For example, if you want to analyze ETH and ADA, ensure that the respective boxes are checked.
Adjust Time Frame: Set the time frame for the indicator. You can choose any time frame or leave it blank to use the current chart's time frame.
Set EMA Length: Choose the length for the EMA calculation based on your trading strategy. A shorter EMA (e.g., 5) reacts more quickly to price changes, while a longer EMA (e.g., 20) smooths out price fluctuations.
Observe Trends: Monitor the plotted EMAs for the selected pairs. Crossovers of the price with the EMA can indicate potential buy or sell signals. For instance, if the price crosses above the EMA, it may signal a bullish trend, whereas a crossover below could indicate a bearish trend.
Consider Market Hours: Pay attention to the gray background during U.S. trading hours, as this may indicate higher volatility and trading opportunities.
Conclusion
The "20 Pairs/USDT&BTC" indicator is a powerful tool for cryptocurrency traders looking to analyze multiple pairs simultaneously. By providing a visual representation of EMAs, it aids in identifying trends and potential trading opportunities in a user-friendly manner. Make sure to adapt the settings according to your trading strategy and market conditions for optimal results.
Amir Hasankhah & Ali Beyki
High and Low in Selected Time Window (Chart's Timezone)Simple indicator for finding the high and low in any selected time period. to use enter the start time by selecting the hour and minute and enter the end time the same.
a line will be drawn along with the price and a timestamp of when it occurred. shows multiple days of the same time period. Useful for observing ICT Macros, 6VS10 etc.
ADA Stock-to-Flow Model (BSP)ADA Stock-to-Flow Model
This script implements a Stock-to-Flow (S2F) model for ADA (Cardano). The Stock-to-Flow ratio is a popular metric used to assess the scarcity of an asset by comparing its current supply (stock) to the rate at which it is being produced (flow). By visualizing the S2F ratio on ADA, this model helps traders and analysts evaluate potential long-term price trends based on supply scarcity.
Key features:
Calculates ADA's Stock-to-Flow ratio dynamically, adjusting for changes in circulating supply and emission rates.
Provides easy-to-read visualizations with adjustable timeframes, making it accessible for both novice and experienced traders.
The Stock-to-Flow model is widely used in analyzing assets like Bitcoin, and this adaptation for ADA gives unique insights into the relationship between its supply and market value. While the model offers a useful perspective on ADA’s potential trajectory, it should be used in conjunction with other tools for a comprehensive market analysis.
CAPE / Shiller PE RatioThe CAPE (Cyclically Adjusted Price-to-Earnings) or Shiller PE ratio is a popular valuation measure used by investors to assess whether a stock or index is over or undervalued relative to its historical earnings. Unlike the traditional P/E ratio, the CAPE ratio smooths earnings over ten years, adjusting for inflation and providing a more stable and long-term view of valuation.
This indicator lets you quickly calculate and visualize the CAPE ratio for any stock on TradingView, helping you make informed decisions about the sustainability of current price levels. With its clear presentation and intuitive setup, you can compare historical CAPE levels and identify potential opportunities for long-term investments or avoid overvalued markets.
Advantages of the CAPE Ratio:
Long-Term Focus : Smooth earnings over ten years, reducing the impact of short-term volatility.
Inflation-Adjusted : Provides a more precise, inflation-adjusted valuation measure over time.
Historical Comparison : Allows for benchmarking against long-term historical averages.
Market Sentiment Indicator : Can highlight overvalued or undervalued markets for long-term investors.
Reduces Noise : Filters out short-term earnings fluctuations, offering a more stable view.
Disadvantages of the CAPE Ratio:
Ignores Recent Earnings : Misses short-term earnings changes, which can affect current valuations.
Outdated Data : Relies on old earnings data that may not reflect recent company performance.
Less Effective for Growth Stocks : May undervalue high-growth stocks focused on future earnings.
Sector Limitations : Works best for broad markets, less so for fast-changing industries.
Debated Predictive Power : It’s unreliable for timing short-term market movements.
In short, the CAPE ratio is excellent for long-term valuation but has limitations for short-term or growth-focused investing.
Disclaimer
Please remember that past performance may not be indicative of future results.
Due to various factors, including changing market conditions, the strategy may no longer perform as well as in historical backtesting.
This post and the script don’t provide any financial advice.
Larry Williams Valuation Index [tradeviZion]Larry Williams Valuation Index
Welcome to the Larry Williams Valuation Index by tradeviZion! This script is an interpretation of Larry Williams' famous WillVal (Valuation) Index, originally developed in 1990 to help traders determine whether a market or asset is overvalued or undervalued. We've extended it to support multiple securities and offer alerts for different valuation levels, helping you make more informed trading decisions.
What is the Valuation Index?
The Valuation Index measures how a security's current price compares to its historical price action. It helps identify whether the security is overvalued (priced too high), undervalued (priced too low), or in a normal range.
This version supports multiple securities and uses valuation parameters to help you assess the relative valuation of three securities simultaneously. It can help you determine the best times to enter (buy) or exit (sell) the market.
Key Features
Multi-Security Analysis: Analyze up to three securities simultaneously to get a broader view of market conditions.
Valuation Levels: Automatically calculate overvaluation and undervaluation levels or set manual levels for consistent analysis.
Custom Alerts: Create custom alerts when securities move between overvalued, undervalued, or normal ranges.
Customizable Table Display: Display a table with valuation values and their status on the chart.
Getting Started
Step 1: Adding the Script to Your Chart
First, add the Larry Williams Valuation Index script to your chart on TradingView. The script is designed to work with any timeframe, but for best results, use weekly or daily timeframes for a longer-term perspective.
Step 2: Configuring Securities
The script allows you to analyze up to three different securities :
Security 1 (Default: DXY)
Security 2 (Default: GC1!)
Security 3 (Default: ZB1!)
You can enable or disable each security individually.
Custom Timeframe Option: You have the option to select a custom timeframe for analysis. This allows you to see whether the security is overvalued or undervalued in lower or higher timeframes. Note that this feature is experimental and has not been extensively tested. Larry Williams originally used the weekly timeframe to determine if a stock was overvalued or undervalued. By default, the indicator compares the current price with the security based on the selected timeframe, except if you choose to use a custom timeframe.
Pro Tip : New users can start with the default securities to understand the concept before using other assets.
Step 3: Valuation Index Settings
Short EMA Length : This is the short-term average used for calculations. A lower value makes it more responsive to recent price changes.
Long EMA Length : This is the long-term average, used to smooth the valuation over time.
Valuation Length (Default: 156) : Represents approximately three years of daily bars (as recommended by Larry Williams).
How is the Valuation Index Calculated?
The valuation calculation is done using a method called WVI (WillVal Index), which compares the current price of a security to the price of another correlated security. Here’s a step-by-step explanation:
1. Data Collection: The script takes the closing price of the security you are analyzing and the closing price of the correlated security.
2. Ratio Calculation : The ratio of the two prices is calculated:
Price Ratio = (Price of your security) / (Price of correlated security) * 100.
This ratio helps determine how expensive or cheap your security is compared to the correlated one.
3. Exponential Moving Averages (EMAs) : The price ratio is used to calculate short-term and long-term EMAs (Exponential Moving Averages). EMAs are used to create smooth lines that represent the average price of a security over a specific period of time, with more weight given to recent data. By calculating both short-term and long-term EMAs, we can identify the trend direction and how the security is performing compared to its historical averages.
4. Valuation Index Calculation:
The Valuation Index is calculated as the difference between the short-term EMA and the long-term EMA. This difference helps to determine if the security is currently overvalued or undervalued:
A positive value indicates that the price is above its longer-term trend, suggesting potential overvaluation.
A negative value indicates that the price is below its longer-term trend, suggesting potential undervaluation.
5. Normalization:
To make the valuation easier to interpret, the calculated valuation index is then normalized using the highest and lowest values over the selected valuation length (e.g., 156 bars).
This normalization process converts the index into a percentage between 0 and 100, where higher values indicate overvaluation and lower values indicate undervaluation.
Step 4: Understanding Valuation Levels
The valuation levels indicate whether a security is currently undervalued, overvalued, or in a normal range.
Manual Levels : You can manually set the overvaluation and undervaluation thresholds (default is 85 for overvalued and 15 for undervalued).
Auto Levels : The script can automatically calculate these levels based on recent price action, allowing you to adapt to changing market conditions.
Auto Levels Calculation Explained:
The Auto Levels are calculated by taking the average of the valuation indices for all three securities (e.g., index1, index2, and index3).
The script then looks at the highest and lowest values of this average over a selected number of recent bars (e.g., 50 bars).
The overvaluation level is determined by taking the highest value and multiplying it by a multiplier (e.g., 5). Similarly, the undervaluation level is calculated using the lowest value and the multiplier.
These dynamic levels adjust according to recent price action, providing an adaptive approach to identifying overvalued and undervalued conditions.
Step 5: How to Use the Script to Make Trading Decisions
For new users, here's a step-by-step trading strategy you can use with the Valuation Index:
1. Identify Undervalued Opportunities
When two or more securities are in the undervalued range (below 15 for manual or below automatically calculated undervalue levels), wait for at least two of these securities to turn from undervalued to normal .
This transition indicates a potential buy opportunity .
2. Buying Signal
When at least two securities transition from undervalued to normal, you can consider buying the asset.
This indicates that the market may be recovering from undervalued conditions and could be moving into a growth phase.
3. Selling Signal
Exit when the price high closes below the EMA 21 (21-day exponential moving average).
Alternatively, if the valuation index reaches overvalued levels (above 85 manually or auto-calculated), wait for it to drop back to normal . This can be another point to exit the trade .
You can also use any other sell condition based on your r isk management strategy .
Alerts for Valuation Levels
The script includes alerts to notify you of changing market conditions:
To activate these alerts, follow these steps, referring to the provided screenshot with detailed steps:
1. Enable Alerts : Click on the settings gear icon on the script title in your chart. In the settings menu, scroll to the section labeled Alerts Settings .
Enable Alerts by checking the Enable Alerts box.
Set the Required Securities for Alert (default is 2 securities).
Choose the Alert Frequency : Selecting Once Per Bar Close will trigger alerts only at the close of each bar, ensuring you receive confirmed signals rather than potentially noisy intermediate signals.
2. Select Alert Type : Choose the type of alert you want to activate, such as Alert on Overvalued, Alert on Undervalued, Alert on Over to Normal , or Alert on Under to Normal .
3. Save Settings : Click OK to save your alert settings.
4. Add Alert on Indicator : Click the "..." (More button) next to the indicator name on the chart and select " Add alert on tradeviZion - WillVal ".
5. Create Alert : In the Create Alert window:
Set Condition to tradeviZion - WillVal .
Ensure Any alert() function call is selected.
Set the Alert Name and select your Expiration preferences.
6. Set Notification Preferences : Go to the Notifications tab and select how you want to receive notifications, such as via app notification, toast notification, email , or sound alert . Adjust these preferences to best suit your needs.
7. Click Create : Finally, click Create to activate the alert.
These alerts will help you stay informed about key market conditions and take action accordingly, ensuring you do not miss critical trading opportunities.
Understanding the Table Display
The script includes an interactive table on the chart to show the valuation status of each security:
Security : The name of the security being analyzed.
Value : The current valuation index value.
Status : Indicates whether the security is overvalued, undervalued , or in a normal range.
Color: Displays a color code for easy identification of status:
Red for overvalued.
Green for undervalued.
Other colors represent normal valuation levels.
Empowering Messages : Motivational messages are displayed to encourage disciplined trading. These messages will change periodically, helping keep a positive trading mindset.
Acknowledgment
This tool builds upon the foundational work of Larry Williams, who developed the WillVal (Valuation) Index concept. It also incorporates enhancements to extend multi-security analysis, valuation normalization, and advanced alerting features, providing a more versatile and powerful indicator. The Larry Williams Valuation Index [ tradeviZion ] helps traders make informed decisions by assessing overvalued and undervalued conditions for multiple securities simultaneously.
Note : Always practice proper risk management and thoroughly test the indicator to ensure it aligns with your trading strategy. Past performance is not indicative of future results.
Trade smarter with TradeVizion—unlock your trading potential today!
Consecutive Candle Detector Consecutive Candle Detector , can be used to highlight impulsive moves . 3 or more candles with the same colour in the same direction .
Set an alert notification to let you know price has moved in an impulsive way and is forming a pattern to sell or buy
Fed Net LiquidityNet Liquidity = Federal Reserve Total Assets - Treasury General Account (TGA) - Reverse Repurchase Agreements (RRP) Balance
1. Federal Reserve Total Assets: This is the sum of everything the Fed owns, like government bonds and mortgage-backed securities. You can snag this data from the Fed’s weekly balance sheet report.
2. Treasury General Account (TGA): Think of this as the U.S. government’s checking account at the Fed. When the TGA balance goes up, it means the government is pulling liquidity out of the market, and vice versa.
3. Reverse Repurchase Agreements (RRP) Balance: This represents the liquidity the Fed absorbs from the market through reverse repo operations. When financial institutions park money in the Fed’s RRP account, there’s less cash available in the market.
Why Use Net Liquidity?
Net liquidity is seen as a key indicator of the actual amount of money available in the market. It helps gauge the overall liquidity conditions that can influence financial markets.
Where to Find the Data:
1. Federal Reserve Total Assets: You can find this in the Fed’s weekly balance sheet (the H.4.1 report). Here’s the link: Federal Reserve Statistical Release - H.4.1.
Steps to Calculate Net Liquidity Yourself:
1. Get the Fed’s Total Assets: Look up the latest H.4.1 report and jot down the total assets figure.
2. Find the TGA Balance: Head over to the U.S. Treasury’s Daily Treasury Statement to locate the “Treasury General Account” balance.
3. Get the RRP Balance: You can find this number in the H.4.1 report or on the New York Fed’s website under “Reverse Repurchase Agreements.”
4. Do the Math: Simply subtract the TGA and RRP balances from the Fed’s total assets—that gives you the net liquidity.
Every $5 (3 Up, 3 Down) GOLD onlyDescription :
This indicator plots customizable horizontal lines spaced every $5 on the XAUUSD chart, with exactly 3 lines above and 3 lines below the nearest $5 level from the current price.
Key Features :
Line Spacing: The lines are plotted at $5 intervals starting from the nearest whole $5 price below the current price (e.g., $1900, $1905, etc.).
Customizable Line Color : Users can select the color of the lines via the indicator settings, making it adaptable to different chart themes and styles.
Customizable Line Style : The indicator allows you to choose from the following line styles:
Solid : Continuous line.
Dashed: Dashed line for a more discrete visual.
Dotted: Dotted line for minimalistic visibility.
Visibility Control : The indicator limits the number of lines to 3 above and 3 below the current price, keeping the chart clean and uncluttered while providing key levels of interest.
Use Cases :
Support and Resistance Identification: Easily spot key psychological levels in $5 increments, useful for identifying potential support or resistance zones in XAUUSD trading.
Price Action Monitoring : Traders can visually track how XAUUSD interacts with specific price levels spaced by $5 increments.
Customization Options :
Color Selection: Modify the line color to match your chart theme or highlight important levels.
Line Style: Select between solid, dashed, or dotted lines to customize the look of your chart.
This indicator is ideal for XAUUSD traders looking for clear, customizable visual levels on their charts to aid in decision-making, whether you're tracking price action or setting targets for entry and exit.
Leonid's Bitcoin Sharpe RatioThe Sharpe ratio is an old formula used to value the risk-adjusted return of an asset. It was developed by Nobel Laureate William F. Sharpe. In this case, I have applied it to Bitcoin with an adjustable look-back date.
The Sharpe Ratio shows you the average return earned after subtracting out the risk-free rate per unit of volatility (I've defaulted this to 0.02 ).
Volatility is a measure of the price fluctuations of an asset or portfolio. Subtracting the risk-free rate from the mean return allows you to understand what the extra returns are for taking the risk.
If the indicator is flashing red, Bitcoin is temporarily overbought (expensive).
If the indicator is flashing green, Bitcoin is temporarily oversold (cheap).
The goal of this indicator is to signal out local tops & bottoms. It can be adjusted as far as the lookback time but I have found 25-26 days to be ideal.
Bitcoin Cycle Master [InvestorUnknown]The "Bitcoin Cycle Master" indicator is designed for in-depth, long-term analysis of Bitcoin's price cycles, using several key metrics to track market behavior and forecast potential price tops and bottoms. The indicator integrates multiple moving averages and on-chain metrics, offering a comprehensive view of Bitcoin’s historical and projected performance. Each of its components plays a crucial role in identifying critical cycle points:
Top Cap: This is a multiple of the Average Cap, which is calculated as the cumulative sum of Bitcoin’s price (price has a longer history than Market Cap) divided by its age in days. Top Cap serves as an upper boundary for speculative price peaks, multiplied by a factor of 35.
Time_dif() =>
date = ta.valuewhen(bar_index == 0, time, 0)
sec_r = math.floor(date / 1000)
min_r = math.floor(sec_r / 60)
h_r = math.floor(min_r / 60)
d_r = math.floor(h_r / 24)
// Launch of BTC
start = timestamp(2009, 1, 3, 00, 00)
sec_rb = math.floor(start / 1000)
min_rb = math.floor(sec_rb / 60)
h_rb = math.floor(min_rb / 60)
d_rb = math.floor(h_rb / 24)
difference = d_r - d_rb
AverageCap() =>
ta.cum(btc_price) / (Time_dif() + btc_age)
TopCap() =>
// To calculate Top Cap, it is first necessary to calculate Average Cap, which is the cumulative sum of Market Cap divided by the age of the market in days.
// This creates a constant time-based moving average of market cap.
// Once Average cap is calculated, those values are multiplied by 35. The result is Top Cap.
// For AverageCap the BTC price was used instead of the MC because it has more history
// (the result should have minimal if any deviation since MC would have to be divided by Supply)
AverageCap() * 35
Delta Top: Defined as the difference between the Realized Cap and the Average Cap, this metric is further multiplied by a factor of 7. Delta Top provides a historically reliable signal for Bitcoin market cycle tops.
DeltaTop() =>
// Delta Cap = Realized Cap - Average Cap
// Average Cap is explained in the Top Cap section above.
// Once Delta Cap is calculated, its values over time are then multiplied by 7. The result is Delta Top.
(RealizedPrice() - AverageCap()) * 7
Terminal Price: Derived from Coin Days Destroyed, Terminal Price normalizes Bitcoin’s historical price behavior by its finite supply (21 million bitcoins), offering an adjusted price forecast as all bitcoins approach being mined. The original formula for Terminal Price didn’t produce expected results, hence the calculation was adjusted slightly.
CVDD() =>
// CVDD stands for Cumulative Value Coin Days Destroyed.
// Coin Days Destroyed is a term used for bitcoin to identify a value of sorts to UTXO’s (unspent transaction outputs). They can be thought of as coins moving between wallets.
(MCR - TV) / 21000000
TerminalPrice() =>
// Theory:
// Before Terminal price is calculated, it is first necessary to calculate Transferred Price.
// Transferred price takes the sum of > Coin Days Destroyed and divides it by the existing supply of bitcoin and the time it has been in circulation.
// The value of Transferred Price is then multiplied by 21. Remember that there can only ever be 21 million bitcoin mined.
// This creates a 'terminal' value as the supply is all mined, a kind of reverse supply adjustment.
// Instead of heavily weighting later behavior, it normalizes historical behavior to today. By normalizing by 21, a terminal value is created
// Unfortunately the theoretical calculation didn't produce results it should, in pinescript.
// Therefore the calculation was slightly adjusted/improvised
TransferredPrice = CVDD() / (Supply * math.log(btc_age))
tp = TransferredPrice * 210000000 * 3
Realized Price: Calculated as the Market Cap Realized divided by the current supply of Bitcoin, this metric shows the average value of Bitcoin based on the price at which coins last moved, giving a market consensus price for long-term holders.
CVDD (Cumulative Value Coin Days Destroyed): This on-chain metric analyzes Bitcoin’s UTXOs (unspent transaction outputs) and the velocity of coins moving between wallets. It highlights key market dynamics during prolonged accumulation or distribution phases.
Balanced Price: The Balanced Price is the difference between the Realized Price and the Terminal Price, adjusted by Bitcoin's supply constraints. This metric provides a useful signal for identifying oversold market conditions during bear markets.
BalancedPrice() =>
// It is calculated by subtracting Transferred Price from Realized Price
RealizedPrice() - (TerminalPrice() / (21 * 3))
Each component can be toggled individually, allowing users to focus on specific aspects of Bitcoin’s price cycle and derive meaningful insights from its long-term behavior. The combination of these models provides a well-rounded view of both speculative peaks and long-term value trends.
Important consideration:
Top Cap did historically provide reliable signals for cycle peaks, however it may not be a relevant indication of peaks in the future.
COT INDEX v2The **Commitment of Traders (COT)** report is a valuable tool for analyzing market sentiment, providing insight into the positions of futures traders at the close of the Tuesday trading session. Prepared by the Commodity Futures Trading Commission (CFTC), the report is published every Friday at 3:30 p.m. Eastern Time, and the data is freely available on the CFTC website.
Traders are categorized into three groups: **Commercial Traders**, **Non-Commercial Traders** (large speculators), and **Nonreportable** (small speculators). This information can be applied to charts to visualize the direction of the positions held by major market participants and to receive key COT signals.
The **COT index** ranges from 0% to 100%, reflecting market sentiment over the past 26 weeks. Extreme values, below 25% or above 75%, represent bearish or bullish sentiment, respectively. However, it is important to note that the COT index is not a timing tool but rather an indicator of the overall sentiment of major market players.
For a more tailored analysis, you can adjust the period for index calculation, customize chart styles, and highlight extreme areas.