TechniTrend: Dynamic Pair CorrelationTechniTrend: Dynamic Pair Correlation
Description:
The TechniTrend: Dynamic Pair Correlation is a powerful and versatile indicator designed to track the correlation between two assets—whether cryptocurrencies, indices, or other financial instruments—across multiple timeframes. Understanding correlations can provide deep insights into market behavior, helping traders make informed decisions based on how two assets move in relation to each other.
Key Features:
Customizable Pair Selection: Compare any two assets (e.g., Bitcoin and DXY, Ethereum and SP500) to study how their price movements relate over time.
Multi-Timeframe Analysis: Simultaneously track correlations across different timeframes—standard, lower, and higher—providing a comprehensive view of market dynamics.
Dynamic Color Coding for Correlation Strength: Instantly spot correlations with visually intuitive colors—green for strong positive correlation, red for strong negative correlation, and yellow for neutral.
Heatmap Background: An easy-to-read background color heatmap highlights when correlations hit extreme levels, adding another layer of insight to your charts.
Real-Time Alerts: Get notified when correlations exceed your custom thresholds, signaling opportunities for potential breakouts, reversals, or divergences.
Divergence Detection: Automatically highlight moments when asset prices diverge, offering potential entry/exit points for smart trading decisions.
How to Use:
Asset Pair Comparison: Select two symbols to analyze their price correlation, such as BTC/USDT and DXY, or any other pair that fits your strategy.
Set Your Timeframes: Customize your standard, lower, and higher timeframes to monitor correlations at different intervals, allowing you to capture both short-term and long-term relationships.
Track Correlation Strength: Use dynamic color coding to quickly see how closely two assets are moving together. Strong correlations (positive or negative) could signal potential opportunities, while low correlations may indicate the absence of a strong trend.
Utilize Alerts: Receive real-time alerts when correlations cross your predefined thresholds, helping you take action when the market presents strong alignment or divergence.
Divergence Signals: Watch for divergence between the assets on multiple timeframes, which could indicate a potential trend reversal or a shift in market behavior.
Why It’s Essential:
Understanding the relationship between two assets can be a game changer for traders. Whether you're comparing Bitcoin to DXY, tracking the correlation between Ethereum and major indices, or evaluating two cryptocurrencies, this indicator gives you the tools to visualize and respond to market conditions with precision.
Perfect For:
Crypto traders looking to optimize strategies by monitoring the relationship between major cryptocurrencies and other assets.
Arbitrageurs seeking to capitalize on temporary pricing anomalies between correlated pairs.
Trend-followers aiming to catch large movements by detecting alignment or divergence between asset classes.
Portfolio managers monitoring how different asset classes impact each other to hedge or diversify investments.
By leveraging the TechniTrend: Dynamic Pair Correlation indicator, traders can gain deeper insights into market trends, correlations, and divergences, giving them an edge in fast-moving markets.
Fundamental Analysis
US Sentiment Index [CryptoSea]The US Sentiment Index is an advanced analytical tool designed for traders seeking to uncover patterns, correlations, and potential leading signals across key market tickers. This indicator surpasses traditional sentiment measures, providing a data-driven approach that offers deeper insights compared to conventional indices like the Fear and Greed Index.
Key Features
Multi-Ticker Analysis: Integrates data from a diverse set of market indicators, including gold, S&P 500, U.S. Dollar Index, Volatility Index, and more, to create a comprehensive view of market sentiment.
Customisable Sensitivity Settings: Allows users to adjust the moving average period to fine-tune the sensitivity of sentiment calculations, adapting the tool to various market conditions and trading strategies.
Detailed Sentiment Scaling: Utilises a 0-100 scale to quantify sentiment strength, with colour gradients that visually represent bearish, neutral, and bullish conditions, aiding in quick decision-making.
Below is an example where the sentiment index can give leading signals. We see a first sign of wekaness in the index as it drops below its moving average. Shortly after we see it dip below our median 50 level, another sign of weakeness. We see the SPX price action to take a hit following the sentiment index decrease.
Tickers Used and Their Impact on Sentiment
The impact of each ticker on sentiment can be bullish or bearish, depending on their behaviour:
Gold (USGD): Typically seen as a safe-haven asset, rising gold prices often indicate increased market fear or bearish sentiment. Conversely, falling gold prices can signal reduced fear and a shift towards bullish sentiment in riskier assets.
S&P 500 (SPX): A rising S&P 500 is usually a sign of bullish sentiment, reflecting confidence in economic growth and market stability. A decline, however, suggests bearish sentiment and a potential move towards risk aversion.
U.S. Dollar Index (DXY): A strengthening U.S. Dollar can be a sign of fear as investors seek safety in the dollar, which is bearish for risk assets. A weakening dollar, on the other hand, can signal bullish sentiment as capital flows into riskier assets.
Volatility Index (VIX): Known as the "fear gauge," a rising VIX indicates increased market fear and bearish sentiment. A falling VIX suggests a calm, bullish market environment.
Junk Bonds (JNK): Rising junk bond prices often reflect bullish sentiment as investors take on more risk for higher returns. Conversely, falling junk bond prices signal increased fear and bearish sentiment.
Long-Term Treasury Bonds (TLT): Higher prices for long-term treasuries usually indicate a flight to safety, reflecting bearish sentiment. Lower prices suggest a shift towards riskier assets, indicating bullish sentiment.
Financial Sector ETF (XLF): Strength in the financial sector is typically bullish, indicating confidence in economic conditions. Weakness in this sector can reflect bearish sentiment and concerns about financial stability.
Unemployment Rate (USUR): A rising unemployment rate is a bearish signal, indicating economic weakness. A declining unemployment rate is bullish, reflecting economic strength and job growth.
U.S. Interest Rates (USINTR, USIRYY): Higher interest rates can be bearish, as they increase borrowing costs and reduce spending. Lower rates are generally bullish, promoting economic growth and risk-taking.
How it Works
Sentiment Calculation: The US Sentiment Index combines data from multiple tickers, calculating sentiment by scaling the distance from their respective moving averages. Each asset's behaviour is interpreted within the context of market fear or greed, providing a refined sentiment reading that adjusts dynamically.
Market Strength Analysis: When the index is above 50 and also above its moving average, it indicates particularly strong or bullish market conditions, driven by greed. Conversely, when the index is below 50 and under its moving average, it signals bearish or weak market conditions, associated with fear.
Correlation and Pattern Detection: The indicator analyses correlations among the included assets to detect patterns that might signal potential market movements, giving traders a leading edge over simpler sentiment measures.
Adaptive Background Colouring: Utilises a colour gradient that dynamically adjusts based on sentiment values, highlighting extreme fear, neutral, and extreme greed levels directly on the chart.
Flexible Display Options: Offers settings to toggle the moving average plot and adjust its period, giving users the ability to tailor the indicator's sensitivity and display to their specific needs.
In this example below, we can see the Sentiment rise above the Moving Average (MA). Price action goes on to follow this, although there is an instance where it dips below the MA, it quickly rises back above again as a sign of strength.
Another way you can use this index is by simply using the MA, if its trending up, we know the macro sentiment is bullish.
Application
Data-Driven Insights: Offers traders a detailed, data-driven approach to sentiment analysis, incorporating a broad spectrum of market indicators to deliver actionable insights.
Pattern Recognition: Helps identify patterns and correlations that may lead to market reversals or continuations, providing a nuanced view that goes beyond simple sentiment gauges.
Enhanced Decision-Making: Equips traders with a robust tool to validate trading strategies and make informed decisions based on comprehensive sentiment analysis.
The US Sentiment Index by is an essential addition to the toolkit of any trader looking to navigate market complexities with precision and confidence. Its advanced features and data-driven approach offer unparalleled insights into market sentiment, setting it apart from conventional sentiment indicators.
Big 5 Checklist | XEONEDIAThe Big 5 Checklist | XEONEDIA indicator is a powerful trading tool designed to help traders prepare their trading decisions in a structured and effective manner. The indicator encompasses five key areas:
Strategy Documentation :
✅ Ensure that the trading strategy is clearly defined and documented.
✅ Conduct backtesting.
✅ Perform demo testing with an 80% success rate.
✅ Analyze trading results.
✅ Regularly refine the strategy.
Risk Management :
✅ Minimize financial losses and ensure responsible trading.
✅ Set a risk limit of 1-2%.
✅ Use stop-loss orders.
✅ Ensure a risk-reward ratio of at least 2:1.
✅ Adjust position sizes.
Technical Analysis :
✅ Evaluate charts and indicators to identify trading opportunities.
✅ Identify support and resistance levels.
✅ Use technical indicators (e.g., RSI).
✅ Set entry and exit points.
✅ Establish alerts for specific market conditions.
Market Conditions :
✅ Consider external factors that may influence trading.
✅ Monitor the economic calendar.
✅ Apply fundamental analysis.
✅ Observe market volatility.
✅ Analyze global trends.
Psychological Management :
✅ Control emotions and mindset during trading.
✅ Adhere to the trading plan.
✅ Manage emotions while trading.
✅ Set realistic expectations.
✅ Take regular mental breaks.
Mastercheck
The Mastercheck provides a digital checklist where traders can track their progress live. Users can make their own notes and view their checklist on any TradingView device, ensuring they stay informed about their trading readiness and can make adjustments in real-time. ✅
Overall, the Big 5 Checklist | XEONEDIA indicator helps minimize risks and maximize the chances of successful trades by promoting systematic and comprehensive trading preparation.
TrendYFriend Description
This script is designed for automatic trendline plotting and generating alerts for key market events: retests and trendline breakouts. Using trendlines is one of the core methods of technical analysis, helping traders to identify the current market trend and open positions in its direction. The script is based on detecting pivot points and connecting them with trendlines, which helps visualize important support and resistance levels.
Importance of Trading with the Trend
Trend trading is one of the most reliable and time-tested approaches in trading. The main principle is that a trend is more likely to continue than to reverse. Following the trend allows traders to enter positions when the probability of further movement in the direction of the trend is high. By trading with the trend, traders can capture prolonged market movements, reducing risk and increasing profit potential.
Opening Positions from Trendlines
Trendlines help identify key levels from which price may either bounce or break through. Upward trendlines serve as dynamic support levels, while downward lines act as resistance levels. It’s important to understand that trendline retests can provide a signal to enter trades in the direction of the primary trend. Conversely, a trendline breakout may signal a trend reversal or correction, which is also an important trading signal.
Main Features of the Script:
1. **Automatic Trendline Drawing** — connecting key pivot points and displaying upward and downward trends on the chart.
2. **Alerts for Retests and Breakouts** — generating signals when the price touches (retest) or breaks through a trendline.
- **Retest of Uptrend Line** — a signal of a potential bounce from support and continuation of the upward trend.
- **Retest of Downtrend Line** — a signal of a potential bounce from resistance in a downward trend.
- **Breakout of Uptrend Line** — a signal of a potential reversal or correction of the upward trend.
- **Breakout of Downtrend Line** — a signal of a potential reversal or continuation of the downward trend.
How to Use the Script:
1. Apply the script to the chart.
2. When an alert triggers, pay attention to the current market situation and verify if the signal aligns with your trading strategy.
3. Open positions in the direction of the trend during retests, or exit trades if a trendline breakout occurs.
DRIP Yearly PerformanceOverview: The DRIP Yearly Performance indicator is designed for long-term investors using Dividend Reinvestment Plans (DRIP). This script calculates both the total and average yearly performance of an asset, factoring in the reinvestment of dividends over time. It provides key insights into portfolio growth by tracking the number of accumulated units from dividend reinvestment and how this impacts overall performance.
Key Features:
Dividend Reinvestment (DRIP) Calculation: Automatically adjusts the number of units held by reinvesting dividends, enhancing the calculation of total returns.
Custom Start Date: Choose a custom start date to begin tracking performance from a specific time period, allowing for more tailored performance analysis.
Performance Metrics: Displays key metrics such as the initial investment value, current value, total performance percentage, and the average yearly performance, all in an easy-to-read table format.
Visual Representation: Plots accumulated units and overall performance on the chart, with customizable colors for clarity.
Inputs Explained:
Start Quantity: Define the initial number of units (shares) held at the start of the investment.
Dividend Type: Choose between tracking Net or Gross dividends for reinvestment purposes. Net is always better unless you have a special case and you need to base your calculations on gross.
Start Date: Select a custom date to begin tracking performance. This allows users to focus on performance from any historical point.
Table Size: Customize the size of the text in the performance table to suit your visual preferences.
Performance Line Color: Choose the color of the performance plot line that tracks the value of your investment over time.
Accumulator Line Color: Customize the color of the line that tracks the accumulated units (shares) due to reinvested dividends.
Who Can Benefit: This indicator is ideal for long-term investors and dividend growth investors who want to measure their investment returns over time while factoring in the effects of dividend reinvestment.
Use Cases:
Tracking Dividend Impact: See how reinvesting dividends enhances your overall portfolio value.
Custom Performance Analysis: Set a custom start date to analyze performance from a specific point in time.
Visualizing Growth: Use the chart's plots to visually track your growing number of shares (units) and overall performance.
Sector Performance v0.3Sector Performance Dashboard v0.3 (Work In Progress)
- Provides a comprehensive view of sector and stock performance across multiple timeframes
Features:
- Displays performance data for various Indian market sectors and their constituent stocks
- Allows selection of different sector groups (e.g., NIFTY, BANKNIFTY, CNXAUTO, etc.)
- Shows performance over four customizable time periods (default: Year, Quarter, Month, Week)
- Calculates percentage change for each time period
- Presents current price, 250-day high and low, and percentage distance from these extremes
- Uses color-coding to quickly identify positive (green) and negative (red) performance
- Adjustable text size for better visibility
- Functionality:
- Creates a table in the center of the chart
- Populates the table with up to 15 symbols per sector
- Updates data in real-time on daily timeframe
- Allows for easy comparison of different stocks within a sector
- User Inputs:
- Sector selection
- Four customizable date inputs for different time periods
- Adjustable text size for the table
- Use Cases:
- Quick sector rotation analysis
- Identifying outperforming and underperforming stocks within a sector
- Monitoring multiple timeframes simultaneously for comprehensive market view
- Assisting in stock screening and selection process
CANSLIM Screener [TrendX_]INTRODUCTION:
The CANSLIM investment strategy, developed by William J. O'Neil, is a powerful tool for identifying growth stocks that have the potential to outperform the market. TrendX has enhanced this approach with its unique indicators, making it easier for investors to assess stocks based on seven critical criteria.
➊ C: Current Quarterly EPS or PE with Growth Benchmark
The first criterion focuses on the Earnings Per Share (EPS) growth in the most recent quarter compared to previous quarters. A company should demonstrate significant EPS growth, ideally exceeding expectations and benchmarks within its industry.
➋ A: Average Annual EPS Growth with Growth Benchmark
This aspect evaluates a company's average annual EPS growth over the last three years. A consistent upward trend suggests that the company is effectively increasing its profitability. TrendX provides a customizable benchmark to help investors identify firms with sustainable growth trajectories.
➌ N: New Highs or New Product Development
TrendX interprets this criterion through an Annual Research & Development to Revenue Ratio (RNDR). A decreasing RNDR ratio may indicate that a company is finishing new products, which could lead to reduced revenue if product launches are unsuccessful.
➍ S: Supply and Demand
This component assesses supply and demand dynamics by analyzing the movement of Float Shares Outstanding. A decrease in float shares typically indicates higher demand for the stock, suggesting that the company is in good shape for future growth.
➎ L: Leader
TrendX employs comparative analysis between the Relative Strength Index (RSI) of a company and that of the overall market. If a company's RSI is higher than the market's, it signifies that the stock is leading rather than lagging.
➏ I: Institutional Sponsorship
Institutional sponsorship is gauged through the total dividends paid by a company. High dividend payouts can signal strong institutional interest, support and confidence in the company's future prospects.
➐ M: Market Direction
TrendX evaluates market direction by comparing a company's RSI against its Moving Average of RSI, along with utilizing Market Structure in Smart Money Concept indicator for alternative trend insights.
HOW TO USE
The TrendX CANSLIM indicator provides an evaluation score based on each of the seven criteria outlined above, which displays in a table containing:
Scoring System: Each letter in CANSLIM contributes to a total score out of 100%. A stock does not need to meet all seven criteria; achieving a score above 70% (5 out of 7) is generally considered indicative of a promising growth stock.
Screening Feature: The tool includes a screening feature that evaluates multiple stocks simultaneously, allowing investors to compare their CANSLIM scores efficiently. This feature streamlines identifying potential investment opportunities across various sectors.
DISCLAIMER
This indicator is not financial advice, it can only help traders make better decisions. There are many factors and uncertainties that can affect the outcome of any endeavor, and no one can guarantee or predict with certainty what will occur.
Therefore, one should always exercise caution and judgment when making decisions based on past performance.
Universal Trend Following Valuation | viResearch Universal Trend Following Valuation | viResearch
Conceptual Foundation and Innovation
The "Universal Trend Following Valuation" script represents a comprehensive approach to trend-following systems. It combines multiple technical indicators and methods to assess market trends, integrating Sharpe, Sortino, and Omega ratios with various moving averages and Z-score calculations. By utilizing advanced statistical tools, the script provides traders with a well-rounded evaluation of trend strength, direction, and potential reversals. The inclusion of Z-scores and custom ratios allows for a more in-depth and accurate market analysis, making it a valuable tool for trend valuation.
Technical Composition and Calculation
This script is built on various performance metrics and trend-following methods. It features ratio calculations, such as Sharpe, Sortino, and Omega, which provide insight into the risk-adjusted performance of assets, helping traders gauge the strength of market trends. Weekly RSI values are smoothed using dema, ema, and median methods to offer a clearer view of trend momentum. Additionally, Z-scores are applied to these ratios and the weekly RSI, offering a standardized assessment of trend deviations from historical performance. A custom scoring system is used to generate a cumulative trend score, highlighting potential market reversals or confirmations.
Key Indicators and Features
The script uses weekly RSI and EMA/Dema smoothing to reduce market noise and produce clearer trend signals. The Sharpe, Sortino, and Omega ratio calculations help assess market performance and volatility, with Z-scores adding another analytical layer. Different moving averages (HMA, DEMA, SMMA) are incorporated to evaluate both short-term and long-term trends, making the script adaptable to various market conditions. Furthermore, the script provides trend confirmation through multiple layers by using indicators like the Supertrend and the Average True Range (ATR) factor to cross-check trends for increased reliability.
Practical Applications
This script is ideal for traders looking to systematically evaluate market trends and effectively position themselves. The combination of advanced statistical tools and customizable moving averages and ratios ensures that the script remains both flexible and powerful. It is particularly useful for confirming trends and highlighting potential reversals, giving traders a reliable signal for either trend continuation or reversals. The inclusion of Sharpe and Sortino ratios allows traders to focus on trends that offer a favorable risk-reward profile.
Advantages and Strategic Value
The "Universal Trend Following Valuation" script offers a detailed, multifaceted approach to trend analysis. Its use of advanced statistical tools provides a more precise evaluation of market trends, making it valuable for both novice and experienced traders. The script reduces noise while ensuring that the core trend signals remain accurate, helping traders make more informed decisions in volatile market conditions.
Summary and Usage Tips
Incorporating the "Universal Trend Following Valuation" into your trading system can significantly enhance your ability to follow and confirm trends. With its customizable parameters and alerts, this script offers a powerful and reliable tool for navigating market volatility and optimizing trade entries and exits. By combining trend-following signals with performance metrics, traders can refine their strategies with increased confidence.
Disclaimer: Backtests are based on past results and are not indicative of future performance.
Session HighlighterSession Highlighter Script
This Pine Script highlights the major trading sessions on your chart with distinct background colors and markers:
- Asian Session: From 22:00 to 06:00 UTC (Tokyo Open to Close), highlighted in blue.
-European Session: From 07:00 to 15:00 UTC (London Open to Close), highlighted in green.
-U.S. Session: From 13:00 to 21:00 UTC (New York Open to Close), highlighted in red.
Features:
- Background Colors: Different colors indicate the active trading session.
- Markers: Displays labels or shapes at the start of each session to show session changes.
Usage:
- Helps visualize trading session overlaps and market activity throughout the day.
- Ideal for identifying session-specific trends and planning trading strategies.
This script ensures that you can easily see when each major trading session starts and ends, allowing for better market timing and analysis.
Stablecoins: Market Cap Delta [Kendrick_Chan]Stablecoins Market Cap Growth Indicator is a tool designed to track and analyze the changes in the market capitalization of stablecoins over time. This indicator provides valuable insights into the stability and growth trends of stablecoins, which are digital currencies pegged to a stable asset like fiat currency or commodities.
Key Features:
1. Market Cap Tracking: Monitors the total market capitalization of various stablecoins, such as USDT, USDC, and BUSD, providing a comprehensive view of the stablecoin market.
2. Growth Analysis: Analyzes the growth rate of stablecoins, highlighting periods of significant increase or decrease in market cap.
3. Dominance Metrics: Shows the dominance of individual stablecoins within the overall market, helping to identify leading stablecoins and their market share.
4. Historical Data: Provides historical data on market cap changes, allowing users to identify long-term trends and patterns.
5. Comparative Insights: Compares the market cap growth of stablecoins against other cryptocurrencies and traditional financial assets.
Benefits:
Investment Decisions: Helps investors make informed decisions by understanding the stability and growth potential of different stablecoins.
Market Sentiment: Offers insights into market sentiment and investor confidence in stablecoins.
Risk Management: Assists in risk management by identifying stablecoins with consistent growth and stability.
By leveraging this indicator, users can gain a clearer perspective on the performance and reliability of stablecoins in the ever-evolving digital currency landscape.
ETH Signal 15m
This strategy uses the Supertrend indicator combined with RSI to generate buy and sell signals, with stop loss (SL) and take profit (TP) conditions based on ATR (Average True Range). Below is a detailed explanation of each part:
1. General Information BINANCE:ETHUSDT.P
Strategy Name: "ETH Signal 15m"
Designed for use on the 15-minute time frame for the ETH pair.
Default capital allocation is 15% of total equity for each trade.
2. Backtest Period
start_time and end_time: Define the start and end time of the backtest period.
start_time = 2024-08-01: Start date of the backtest.
end_time = 2054-01-01: End date of the backtest.
The strategy will only run when the current time falls within this specified range.
3. Supertrend Indicator
Supertrend is a trend-following indicator that provides buy or sell signals based on the direction of price changes.
factor = 2.76: The multiplier used in the Supertrend calculation (increasing this value makes the Supertrend less sensitive to price movements).
atrPeriod = 12: Number of periods used to calculate ATR.
Output:
direction: Determines the buy/sell direction based on Supertrend.
If direction decreases, it signals a buy (Long).
If direction increases, it signals a sell (Short).
4. RSI Indicator
RSI (Relative Strength Index) is a momentum indicator, often used to identify overbought or oversold conditions.
rsiLength = 12: Number of periods used to calculate RSI.
rsiOverbought = 70: RSI level considered overbought.
rsiOversold = 30: RSI level considered oversold.
5. Entry Conditions
Long Entry:
Supertrend gives a buy signal (ta.change(direction) < 0).
RSI must be below the overbought level (rsi < rsiOverbought).
Short Entry:
Supertrend gives a sell signal (ta.change(direction) > 0).
RSI must be above the oversold level (rsi > rsiOversold).
The strategy will only execute trades if the current time is within the backtest period (in_date_range).
6. Stop Loss (SL) and Take Profit (TP) Conditions
ATR (Average True Range) is used to calculate the distance for Stop Loss and Take Profit based on price volatility.
atr = ta.atr(atrPeriod): ATR is calculated using 12 periods.
Stop Loss and Take Profit are calculated as follows:
Long Trade:
Stop Loss: Set at close - 4 * atr (current price minus 4 times the ATR).
Take Profit: Set at close + 2 * atr (current price plus 2 times the ATR).
Short Trade:
Stop Loss: Set at close + 4 * atr (current price plus 4 times the ATR).
Take Profit: Set at close - 2.237 * atr (current price minus 2.237 times the ATR).
Summary:
This strategy enters a Long trade when the Supertrend indicates an upward trend and RSI is not in the overbought region. Conversely, a Short trade is entered when Supertrend signals a downtrend, and RSI is not oversold.
The trade is exited when the price reaches the Stop Loss or Take Profit levels, which are determined based on price volatility (ATR).
Disclaimer:
The content provided in this strategy is for informational and educational purposes only. It is not intended as financial, investment, or trading advice. Trading in cryptocurrency, stocks, or any financial markets involves significant risk, and you may lose more than your initial investment. Past performance is not indicative of future results, and no guarantee of profit can be made. You should consult with a professional financial advisor before making any investment decisions. The creator of this strategy is not responsible for any financial losses or damages incurred as a result of following this strategy. All trades are executed at your own risk.
CRT overlay 2Overview
The "CRT overlay 2" is designed to plot key levels and detect market patterns based on the 4-hour candle around a specific start time (5AM). It incorporates elements like the high, low, and 50% level of a key 4-hour candle, and also tracks Fair Value Gaps (FVGs) to help identify potential price imbalances in the market. The indicator is primarily based on Candle Range Theory (CRT), which focuses on the significance of price movements within key candles and their relation to future market activity.
How the Script is Made
Key Components:
4-hour CRT Candle: The script identifies a specific 4-hour candle using a customizable start time (by default, it’s set to the 5 AM candle).
High, Low, and Midline Levels: For this selected 4-hour candle, the script calculates and draws the high, low, and 50% midpoint. These levels are used as reference points for further analysis.
Fair Value Gaps (FVGs): The script detects price gaps between candles (where the third candle does not fully overlap the first), which can act as areas of potential support or resistance. The user can toggle the plotting of midlines for these gaps.
Time Restrictions: The script limits its key functionalities (e.g., detecting highs, lows, and gaps) to a specific time window, between the target hour and the end hour (e.g., 5 AM to 10 AM).
Extensions and Visibility:
The plotted high, low, and midlines of the 4-hour candle extend a certain number of bars forward for visibility.
These lines stop extending after the end of the defined session (e.g., after 10 AM).
Wick Length Calculation:
The script calculates the length of a candle's wick as a percentage of the total range of the candle, which may provide insights into market rejections or momentum shifts.
Fair Value Gap (FVG) Detection:
The script detects both bullish and bearish FVGs based on a 3-candle pattern, plotting the gaps with customizable colors. The FVGs are then drawn on the chart for visual guidance.
Midlines of these gaps can also be drawn, and outdated or filled FVGs are removed after a set number of bars or if they are filled by price action.
How to Use It
Indicator Setup:
After adding the indicator to your chart, you will be able to customize settings for your desired timezone and the target 4-hour candle. By default, the script is set to the 5 AM candle, but this can be changed to any hour depending on your analysis needs.
The "CRT Candle Start" and "CRT Candle End" allow you to define the time range when the high, low, and midlines will be plotted and tracked.
Key Levels:
The script draws white lines for the high and low of the selected 4-hour candle, along with a green dashed line for the 50% mid-level. These lines serve as significant support and resistance levels.
During the defined session (e.g., 5 AM to 10 AM), these lines will actively extend and be visible on your chart.
After the session ends, these lines stop extending but remain on the chart for reference.
Fair Value Gaps (FVGs):
The script automatically identifies gaps between candles and plots them on the chart with colored boxes (green for bullish gaps, orange for bearish gaps). These areas can serve as potential reversal or continuation zones.
You can choose whether or not to plot a dashed line at the 50% mark of these FVGs. This midline can be important for targeting partial fills or retracements.
Sweep Alerts and Higher Highs/Lower Lows:
The script monitors price action to detect when the market forms the very first higher high or lower low within the high and low range of the 4-hour candle. When a higher high or lower low is detected, the script plots a yellow label on the chart to mark the event and triggers an alert.
These events can indicate potential sweep patterns or liquidity grabs.
FVG Removal:
The script includes a feature to automatically remove FVGs when they are filled by price action or after they become too old (based on a user-defined number of bars). This helps keep the chart clean for further analysis without clutter from outdated information.
Practical Application
Intraday Traders: The script helps traders focus on specific time windows (like 5 AM to 10 AM) and provides key reference levels (high, low, midline) that can guide trading decisions. Breaks and retests of these levels are common trading strategies.
Market Reversal and Continuation: The detection of Fair Value Gaps and higher highs/lower lows within the defined range can be useful for identifying potential reversal points or continuation signals in the market.
Candle Range Theory (CRT): The script is rooted in CRT, which emphasizes the importance of high and low levels of key candles for future price action. This theory is often used by traders looking to identify support/resistance zones or liquidity grabs in the market.
In summary, CRT overlay 2 is designed for precision trading around key timeframes, focusing on levels from the 4-hour candle and incorporating Fair Value Gaps for potential trade entries or exits. Its customizable inputs make it flexible for various strategies, and its focus on time-based levels is aligned with concepts in intraday trading and market structure analysis.
SMA, 20%UP, 20% SMA, LTH newFeatures:
Simple Moving Averages (SMAs):
200 SMA (Gray): Long-term trend indicator. A widely used benchmark in many trading strategies.
50 SMA (Red): Mid-term trend indicator.
20 SMA (Green): Short-term trend indicator. These three SMAs allow traders to visualize the general market trend over different time horizons.
20% Gain on Green Candles:
This feature tracks continuous green candles and calculates the percentage gain from the lowest low to the highest high in that series.
If the gain is greater than or equal to 20%, the script highlights it with a purple triangle above the candle.
If the series of green candles starts with a candle where the low is below the 200 SMA, a purple diamond appears under the bar, indicating potential strong buying signals.
Lifetime High (LTH):
The script automatically tracks and displays the Lifetime High (LTH), i.e., the highest price ever recorded on the chart.
This level is important for identifying potential resistance areas and monitoring long-term market tops.
Once a new LTH is reached, it is displayed as a green line across the chart.
Support Levels from LTH:
The script calculates 30%, 50%, and 67% down from the LTH, marking key support levels.
These levels are plotted on the chart as orange lines and labeled to assist in spotting potential buy zones or market reversals.
52-Week Low:
It also calculates and displays the 52-week low for quick reference, plotted as a green line.
This helps traders assess major market bottoms and potential areas of support.
Historical Fed Interest rate This script is Historical Fed Interest rate
The data is between 1991 - 2023 , but for some reason data between 1991 - 10/2001 is not work
Green line for rate cut and Red line for rate hike and detail at the label
Fundamental AnalysisThis indicator compiles a wide range of essential financial metrics directly onto your chart, providing a quick and easy reference to the financial condition of any listed company. Instead of diving into lengthy financial reports, you get an at-a-glance overview of the most critical financial ratios and figures.
Key Metrics Included:
Interest Coverage Ratio: Helps assess a company’s ability to pay interest on its debt. Higher values suggest greater financial stability and lower default risk.
Gross Profit Margin: Shows how much profit a company makes after covering its production costs. A higher margin indicates better efficiency and profitability in managing costs.
Dividend Yield: Reflects the annual dividend payout as a percentage of the current stock price. A moderate dividend yield may indicate a balance between income generation and growth potential.
Enterprise Value (EV): A comprehensive measure of a company's total value, including debt. Useful for comparing companies with different capital structures.
Free Cash Flow to Equity (FCFE): Reveals how much cash is available to shareholders after accounting for capital expenditures and debt repayments, indicating the company’s ability to reward investors.
Price-to-Book Ratio (P/B): Compares a company's market value to its book value. Lower values might indicate undervaluation, while higher values can suggest overvaluation.
Price-to-Cash Flow Ratio (P/CF): Helps identify companies that generate a significant amount of cash relative to their price, a key metric for assessing liquidity and sustainability.
Price-to-Free Cash Flow Ratio: Shows how much investors are paying for the company's free cash flow, which is crucial for assessing value, especially in capital-intensive sectors.
Price Earnings Ratio (P/E): The classic metric for valuing a company based on its earnings. Useful for comparing valuations across companies and industries.
Debt-to-Equity Ratio: Indicates the proportion of company financing that comes from debt and equity. A lower ratio typically signifies a less risky investment.
Return on Equity (ROE): Measures how effectively a company uses equity capital to generate profit. A higher ROE can indicate a profitable, well-managed company.
Quick Ratio: Assesses a company’s short-term liquidity by comparing its liquid assets to its current liabilities. Higher values indicate better liquidity.
Operating Margin: Reflects the percentage of revenue left after covering operating expenses. Higher margins suggest greater operational efficiency.
How to Use This Indicator:
Use this indicator as part of your due diligence when analyzing potential investments. Each metric is color-coded to quickly highlight whether the value is within a favorable range, making it easy to identify strong or weak aspects of a company’s financial position.
Green indicates favorable metrics, suggesting financial strength or value.
Red highlights areas of concern, pointing to potential risks or weaknesses.
This tool can help you compare different companies, spot trends over time, and make more informed decisions based on solid financial analysis. Whether you’re a value investor looking for undervalued stocks, a dividend seeker searching for sustainable payouts, or a growth investor focused on profitability and efficiency, this indicator can be tailored to your strategy.
Stochastic RSI Strategy with Inverted Trend LogicOverview:
The Stochastic RSI Strategy with Inverted Trend Logic is a custom-built Pine Script indicator that leverages the Stochastic RSI and a 200-period moving average to generate precise buy and sell signals. It is specifically designed for traders looking to capture opportunities during short-term market movements while factoring in broader trend conditions.
Key Components:
Stochastic RSI:
Stochastic RSI is a momentum indicator that applies stochastic calculations to the standard Relative Strength Index (RSI), rather than price data. This makes it particularly sensitive to market momentum changes, which is essential for timing entries and exits.
K Line and D Line: The indicator calculates and smooths both the K and D lines to capture momentum shifts more accurately.
200-Period Moving Average:
The 200-period Simple Moving Average (SMA) is used as a trend filter.
If the price is above the 200-period SMA, the trend is considered bullish.
If the price is below the 200-period SMA, the trend is considered bearish.
Inverted Trading Logic:
The trading logic is inverted from traditional strategies:
Long trades are executed only when the market is in a bearish trend (price below the 200-period moving average).
Short trades are executed only when the market is in a bullish trend (price above the 200-period moving average).
This inversion allows traders to take advantage of potential trend reversals by entering positions in the opposite direction of the prevailing trend.
Trading Rules:
Long Trade Conditions (Buy Signal):
The Stochastic RSI K line must be below 5 for 4 consecutive candles (oversold condition).
The price must be below the 200-period SMA (indicating a bearish trend).
Once these conditions are met, the indicator will generate a buy signal on the close of the 4th candle.
Exit Condition: The long position is exited when the Stochastic RSI K line crosses above 50 (neutral level).
Short Trade Conditions (Sell Signal):
The Stochastic RSI K line must be above 95 for 4 consecutive candles (overbought condition).
The price must be above the 200-period SMA (indicating a bullish trend).
Once these conditions are met, the indicator will generate a sell signal on the close of the 4th candle.
Exit Condition: The short position is exited when the Stochastic RSI K line crosses below 50.
Visual Signals on the Chart:
Buy Signal:
A green triangle below the bar is displayed on the chart when a buy condition is met, indicating a potential long trade opportunity.
The text "BUY" is displayed for further clarity.
Sell Signal:
A red triangle above the bar is displayed on the chart when a sell condition is met, indicating a potential short trade opportunity.
The text "SELL" is displayed for further clarity.
How to Use the Indicator:
Attach the Indicator: Apply the indicator to your desired chart (works on any time frame, but is optimized for short- to medium-term trading).
Monitor Signals: Watch for buy and sell signals on the chart:
Buy Signal: Enter long positions when a green triangle appears below the candle.
Sell Signal: Enter short positions when a red triangle appears above the candle.
Exit Positions: Exit long positions when the Stochastic RSI crosses above the 50 level, and exit short positions when the Stochastic RSI crosses below the 50 level.
Indicator Display:
Stochastic RSI: A visual representation of the Stochastic RSI (K and D lines) is plotted below the price chart, with overbought (100), midpoint (50), and oversold (0) levels clearly marked.
200-period SMA: The 200-period moving average is plotted on the price chart, giving a clear indication of the broader trend direction (orange line).
Key Benefits:
Reversal Opportunities: This strategy allows traders to capture reversal trades by using an inverted logic where longs are taken in bearish conditions and shorts are taken in bullish conditions. This can help capitalize on potential trend exhaustion and reversals.
Clear and Simple Rules: The use of Stochastic RSI and the 200-period moving average ensures the strategy remains simple yet effective, making it easy for traders to follow.
Visual Alerts: The indicator provides clear buy and sell signals, making it easy for traders to spot trading opportunities in real-time without needing to monitor multiple conditions manually.
Limitations and Considerations:
Trend Changes: Since the strategy is designed to work during trend reversals, it might not perform as well during strong, prolonged trends where price continues moving in one direction without significant pullbacks.
Time Frame Suitability: While the indicator works on any time frame, shorter time frames may result in more frequent signals and higher trade frequency, whereas higher time frames will provide fewer but potentially stronger signals.
Conclusion:
The Stochastic RSI Strategy with Inverted Trend Logic is a powerful tool for traders looking to capture market reversals by entering trades against the prevailing trend direction based on momentum exhaustion. Its simple and clear logic, combined with easy-to-understand visual signals, makes it a versatile indicator for both novice and experienced traders.
Solar System in 3D [Astro Tool w/ Zodiac]Hello Traders and Developers,
I am excited to announce my latest Open Source indicator. At the core, this is a demonstration of PineScript’s capabilities in Rendering 3D Animations, while at the same time being a practical tool for Financial Astrologists.
This 3D Engine dynamically renders all the major celestial bodies with their individual orbits, rotation speeds, polar inclinations and astrological aspects, all while maintaining accurate spatial relationships and perspective.
This is a Geocentric model of the solar system (viewed from the perspective of Earth), since that is what most Astrologists use. Thanks to the AstroLib Library created by @BarefootJoey, this model uses the real coordinates of cosmic bodies for every timestamp.
This script truly comes to life when using the “Bar Replay” mode in TradingView, as you can observe the relationships between planets and price action as time progresses, with the full animation capabilities as mentioned above.
In addition to what I have described, this indicator also displays the orbital trajectories for each cosmic body, and has labels for everything. I have also added the ability to hover on all the labels, and see a short description of what they imply in Astrology.
Optional Planetary Aspect Computation
This indicator supports all the Major Planetary Aspects, with an accuracy defined by the user (1° by default).
Conjunction: 0° Alignment. This draws a RED line starting from the center, and going through both planets.
Sextile: 60° Alignment. This draws three YELLOW lines, connecting the planets to each other and to the center.
Square: 90° Alignment. This draws three BLUE lines, connecting the planets to each other and to the center.
Trine: 120° Alignment. This draws three PURPLE lines, connecting the planets to each other and to the center.
Opposition: 180° Alignment. This draws a GREEN line starting from one planet, passing through the center and ending on the second planet.
The below image depicts a Top-Down view of the system, with the Moon in Opposition to Venus and with Mars in Square with Neptune .
Retrograde Computation
This indicator also displays when a planet enters Retrograde (Apparent Backward Motion) by making its orbital trajectory dashed and the planet name getting a red background.
The image below displays an example of Jupiter, Saturn, Neptune and Pluto in Retrograde Motion, from the camera perspective of a 65 degree inclination.
Optional Zodiac Computation (Tropical and Sidereal)
Zodiac represents the relatively stationary star formations that rest along the ecliptic plane, with planets transitioning from one to the next, each with a 30° separation (making 12 in total). I have implemented the option to switch between Tropical mode (where these stars were 2,000 years ago) and Sidereal (where these stars are today).
The image below displays the Zodiac labels with clear lines denoting where each planet falls into.
While this indicator is deployed in a separate pane, it is trivial to transfer it onto your price chart, just by clicking and dragging the graphics. After that, you can adjust the visuals by dragging the scale on the side, or optimizing model settings. You can also drag the model above or below the price, as shown in the following image:
Of course, there are a lot of options to customize this planetary model to your tastes and analytical needs. Aside from visual changes for the labels, colors or resolution you can also disable certain planets that don’t meet your needs as shown below:
Once can also infer the current lunar phases using the Aspects between the Sun and Moon. When the Moon is Opposite the Sun that is a Full Moon, while when they are Conjunct that is a New Moon (and sometimes Eclipse).
—---------------------------------------------------------------------------
I have made this indicator open source to help PineScript programmers understand how to approach 3D graphics rendering, enabling them to develop ever more capable scripts and continuously push the boundaries of what's possible on TradingView.
The code is well documented with comments and has a clear naming convention for functions and variables, to aid developers understand how everything operates.
For financial astrologists, this indicator offers a new way to visualize and correlate planetary movements, adding depth and ease to astrological market analysis.
Regards,
Hawk
Bitcoin Thermocap [InvestorUnknown]The Bitcoin Thermocap indicator is designed to analyze Bitcoin's market data using a variant of the "Thermocap Multiple" concept from BitBo. This indicator offers several modes for interpreting Bitcoin's historical block and price data, aiding investors and analysts in understanding long-term market dynamics and generating potential investing signals.
Key Features:
1. Thermocap Calculation
The core of the indicator is based on the Thermocap Multiple, which evaluates Bitcoin's value relative to its cumulative historical blocks mined.
Thermocap Formula:
Source: Bitbo
btc_price = request.security("INDEX:BTCUSD", "1D", close)
BTC_BLOCKSMINED = request.security("BTC_BLOCKSMINED", "D", close)
// Variable to store the cumulative historical blocks
var float historical_blocks = na
// Initialize historical blocks on the first bar
if (na(historical_blocks))
historical_blocks := 0.0
// Update the cumulative blocks for each day
historical_blocks += BTC_BLOCKSMINED * btc_price
// Calculate the Thermocap
float thermocap = ((btc_price / historical_blocks) * 1000000) // the multiplication is just for better visualization
2. Multiple Display Modes:
The indicator can display data in four different modes, offering flexibility in interpretation:
RAW: Displays the raw Thermocap value.
LOG: Applies the logarithm of the Thermocap to visualize long-term trends more effectively, especially for large-value fluctuations.
MA Oscillator: Shows the ratio between the Thermocap and its moving average (MA). Users can choose between Simple Moving Average (SMA) or Exponential Moving Average (EMA) for smoothing.
Normalized MA Oscillator: Provides a normalized version of the MA Oscillator using a dynamic min-max rescaling technique.
3. Normalization and Rescaling
The indicator normalizes the Thermocap Oscillator values between user-defined limits, allowing for easier interpretation. The normalization process decays over time, with values shrinking towards zero, providing more relevance to recent data.
Negative values can be allowed or restricted based on user preferences.
f_rescale(float value, float min, float max, float limit, bool negatives) =>
((limit * (negatives ? 2 : 1)) * (value - min) / (max - min)) - (negatives ? limit : 0)
f_max_min_normalized_oscillator(float x) =>
float oscillator = x
var float min = na
var float max = na
if (oscillator > max or na(max)) and time >= normalization_start_date
max := oscillator
if (min > oscillator or na(min)) and time >= normalization_start_date
min := oscillator
if time >= normalization_start_date
max := max * decay
min := min * decay
normalized_oscillator = f_rescale(x, min, max, lim, neg)
Usage
The Bitcoin Thermocap indicator is ideal for long-term market analysis, particularly for investors seeking to assess Bitcoin's relative value based on mining activity and price dynamics. The different display modes and customization options make it versatile for a variety of market conditions, helping users to:
Identify periods of overvaluation or undervaluation.
Generate potential buy/sell signals based on the MA Oscillator and its normalized version.
By leveraging this Thermocap-based analysis, users can gain a deeper understanding of Bitcoin's historical and current market position, helping to inform investment strategies.
Supply and Demand Zones
Script Introduction:
I have spent a long time searching for the perfect supply and demand zone indicator, but most of the ones I found were based on lines instead of proper zones, which didn’t quite meet my needs. After much trial and error, I decided to build my own indicator that generates clear and reliable supply and demand zones based on price swings and volatility. This indicator dynamically adjusts to market conditions, creating zones that are more responsive to price movements. Whether you're day trading or swing trading, this indicator will help you identify key price levels where buying and selling pressures exist.
Overview:
This indicator identifies supply and demand zones based on swing highs and lows, combined with market volatility. These zones represent areas where price is likely to experience reversals due to buying or selling pressures. The zones are displayed as rectangles (boxes) rather than lines, making it easier to visualize the areas of interest on the chart.
How the Indicator Works:
1. Supply Zones (Red Box):
- A supply zone is identified when the price forms a swing high (a local high point) and there is sufficient volatility (using ATR). The zone represents an area where sellers are likely to step in and push the price down.
2. Demand Zones (Green Box):
- A demand zone is identified when the price forms a swing low (a local low point) and volatility is sufficient. The zone represents an area where buyers are likely to step in and push the price up.
3. Extension Direction:
- You can control whether the zones extend to the left, to the right, or both directions. This lets you choose how far back or forward you want the zones to appear on the chart.
4. Volatility Filter (ATR Multiplier):
- The indicator uses the Average True Range (ATR) to filter out minor price movements. The ATR multiplier is hardcoded to 0.25, meaning that the indicator is more responsive to smaller price swings. This setting helps the zones adjust dynamically to changing market conditions.
How to Use the Indicator:
1. Adding to Chart:
- After publishing, you or invited users can apply the script to any chart. The indicator will automatically generate supply (red) and demand (green) zones.
2. Settings:
- Swing Length (Look-back Period): This controls how many bars back the script looks for significant swing highs and lows. Increasing this value will create zones based on larger swings.
- Extend Zone Horizontally (Bars): This controls how far the zones extend horizontally (left or right). You can adjust this to make the zones extend more or less on the chart.
- Extension Direction: Choose whether the zones extend to the left, right, or both directions. This gives flexibility on how you want the zones to display on the chart.
- Supply Zone Color: You can customize the color and opacity of the supply zone (default is red).
- Demand Zone Color: You can customize the color and opacity of the demand zone (default is green).
Best Practices for Trading:
- Combine with Other Indicators: While supply and demand zones are powerful on their own, combining this indicator with other tools like moving averages, volume analysis, or momentum indicators can provide further confirmation of potential price reversals.
- Watch for Price Action in Zones: When price approaches a supply or demand zone, watch for price action signals such as candlestick patterns (e.g., pin bars, engulfing candles) that can give you an idea of whether the zone will hold or break.
- Adjust for Different Timeframes: The indicator works well across different timeframes. Use a higher look-back period for larger timeframes (e.g., 4-hour, daily) and a lower look-back period for shorter timeframes (e.g., 5-minute, 15-minute charts).
Final Notes:
This script is intended to help traders identify key supply and demand zones and make better trading decisions. Since it dynamically adjusts to market volatility, it is well-suited for both day traders and swing traders who want to capture price reversals at significant levels.
Earnings Date Highlighter - from0_to_1This indicator, called "Earnings Date Highlighter," is designed to visualize earnings data for up to four different stocks on a single chart. It's particularly useful for traders or investors who want to track earnings events for multiple companies simultaneously, such as the top holdings of an ETF.
Key features:
1. Tracks earnings data (estimates and actuals) for four user-defined symbols.
2. Plots earnings data points with customizable colors for each symbol.
3. Highlights earnings dates with background colors.
4. Displays green up arrows for earnings beats and red down arrows for earnings misses.
Why someone would use it:
1. To monitor earnings events for multiple stocks in a single view.
2. To quickly identify potential market-moving events for key components of an ETF or portfolio.
3. To spot patterns in earnings performance across different companies or sectors.
4. To help with timing trades or adjusting positions around earnings announcements.
This tool can be particularly valuable for investors focused on ETFs, as it allows them to visualize earnings dates and performance for the ETF's major holdings all in one place, potentially providing insights into how the ETF might behave around these key events.
Author:
www.tradingview.com
Revenue GridDescription:
The Revenue Grid indicator helps traders and investors visualize a stock’s valuation by plotting horizontal lines based on its price-to-sales (P/S) ratio. This tool displays how the stock price compares to multiples of its total revenue per share, giving a clear perspective on valuation benchmarks.
Fundamental Concept:
The price-to-sales ratio compares a company’s stock price to its revenue per share. It’s used to evaluate whether a stock is overvalued or undervalued based on its revenue.
This indicator offers a unique way to view this ratio by applying Fibonacci multiples to the revenue per share. It plots lines at these multiples to show how the stock price measures up against different valuation levels.
How It Works:
Data Inputs:
Total Revenue (TR): The company’s revenue over the past twelve months.
Total Shares Outstanding (TSO): The total number of shares in circulation.
Calculation:
Calculates the revenue per share (TR/TSO).
Plots lines at fixed Fibonacci multiples (e.g., 1x, 2x, 3x, 5x, 8x, 13x) of the revenue per share value.
How to Use:
1. Add the "Revenue Grid" indicator to your chart by searching for it in the indicator library and applying it.
2. Observe the lines plotted on the chart. If these lines are trending upwards, it indicates that the revenue is increasing.
3. Analyze how historical prices trend relative to these lines. Look for periods where the stock price supports around specific multiples, you can easily get a sense of overvaluation or undervaluation in certain periods.
Use this information to guide further analysis and investment decisions.
Benefits:
1. Clear Valuation View: Easily see how the company’s revenue translates into stock price levels.
2. Investment Insight: Identify if the stock price is lagging behind revenue growth, which might signal a buying opportunity.
3. Historical Context: Understand how the market has historically valued the company and assess the current valuation.
Do let me know your feedbacks in comments. Happy Investing :)
Realized Price Oscillator [InvestorUnknown]Overview
The Realized Price Oscillator is a fundamental analysis tool designed to assess Bitcoin's price dynamics relative to its realized price. The indicator calculates various metrics using data from the realized market capitalization and total supply. It applies normalization techniques to scale values within a specified range, helping investors identify overbought or oversold conditions over the long time horizon. The oscillator also features DCA-based signals to assist in strategic market entry and exit.
Key Features
1. Normalization and Scaling:
The indicator scales values using a limit that can be adjusted for decimal precision (Limit). It allows for both positive and negative values, providing flexibility in analysis.
Decay functionality is included to progressively reduce the extreme values over time, ensuring recent data impacts the oscillator more than older data.
f_rescale(float value, float min, float max, float limit, bool negatives) =>
((limit * (negatives ? 2 : 1)) * (value - min) / (max - min)) - (negatives ? limit : 0)
2. Realized Price Oscillator Calculation:
Realized Price Oscillator is computed using logarithmic differences between the open, high, low, and close prices and the realized price. This helps in identifying how the current market price compares with the average cost basis of the Bitcoin supply.
f_realized_price_oscillator(float realized_price) =>
rpo_o = math.log(open / realized_price)
rpo_h = math.log(high / realized_price)
rpo_l = math.log(low / realized_price)
rpo_c = math.log(close / realized_price)
3. Oscillator Normalization:
The normalized oscillator calculates the range between the maximum and minimum values over time. It adjusts the oscillator values based on these bounds, considering a decay factor. This normalized range assists in consistent signal generation.
normalized_oscillator(float x, float b) =>
float oscillator = b
var float min = na
var float max = na
if (oscillator > max or na(max)) and time >= normalization_start_date
max := oscillator
if (min > oscillator or na(min)) and time >= normalization_start_date
min := oscillator
if time >= normalization_start_date
max := max * decay
min := min * decay
normalized_oscillator = f_rescale(x, min, max, lim, neg)
4. Dollar-Cost Averaging (DCA) Signals:
DCA-based signals are generated using user-defined thresholds (DCA IN and DCA OUT). The oscillator triggers buy signals when the normalized low value falls below the DCA IN threshold and sell signals when the normalized high value exceeds the DCA OUT threshold.
5. Visual Representation:
The indicator plots candlestick representations of the normalized Realized Price Oscillator values (open, high, low, close) over time, starting from a specified date (plot_start_date).
Colors are dynamically adjusted using a gradient to represent the state of the oscillator, ranging from green (buy zone) to red (sell zone). Background and bar colors also change based on DCA conditions.
How It Works
Data Sourcing: Realized price data is sourced using Bitcoin’s realized market cap (BTC_MARKETCAPREAL) and total supply (BTC_SUPPLY).
Realized Price Oscillator Metrics: Logarithmic differences between price and realized price are computed to generate Realized Price Oscillator values for open, high, low, and close.
Normalization: The indicator rescales the oscillator values based on a defined limit, adjusting for negative values if allowed. It employs a decay factor to reduce the influence of historical extremes.
Conclusion
The Realized Price Oscillator is a sophisticated tool that combines market price analysis with realized price metrics to offer a robust framework for understanding Bitcoin's valuation. By leveraging normalization techniques and DCA thresholds, it provides actionable insights for long-term investing strategies.
Cantom Chart - CL CTG vs BKDEnglish : This Pine Script indicator, named "Cantom Chart - CL CTG vs BKD," uniquely analyzes the immediate state of oil futures contracts to determine if they are in contango or backwardation. The script uses the price ratio between the nearest (CL1) and the next nearest (CL2) NYMEX crude oil futures contracts. It multiplies this ratio by 100 for clarity and scales fluctuations for enhanced visibility.
Key Features:
Dynamic Ratio Calculation: Computes the ratio (CL1/CL2 * 100) to determine the immediate market state.
Market State Interpretation: A ratio above 100 indicates backwardation, suggesting higher demand than supply, while a ratio below 100 indicates contango, suggesting higher supply than demand.
Volatility Adjustment: Amplifies market state changes by tripling the deviation from the baseline of 100, making it easier to observe subtle shifts.
Anomaly Detection: Caps the adjusted ratio at 125 for highs and 75 for lows, maintaining these limits until the ratio returns to normal levels.
Usage: This indicator is especially useful for traders analyzing supply-demand dynamics and inflationary pressures in the oil market. To apply it, simply add the script to your TradingView chart and adjust the 'Lower Threshold' and 'Upper Threshold' lines as needed based on your trading strategy.
-----
日本語 : この「Cantom Chart - CL CTG vs BKD」Pine Scriptインジケーターは、直近の原油先物契約がコンタンゴまたはバックワーデーションにあるかを特定するための独自の分析を提供します。最近の(CL1)と次の(CL2)NYMEX原油先物契約間の価格比を使用し、この比率に100を掛けて明確性を高め、変動の視認性を向上させます。
主要機能:
動的比率計算: 市場の即時状態を判断するために比率(CL1/CL2 * 100)を計算します。
市場状態の解釈: 比率が100を超える場合はバックワーデーション(需要が供給を上回る)、100未満の場合はコンタンゴ(供給が需要を上回る)を示します。
変動調整: 基準値100からの偏差を3倍にして、微妙な変化を容易に観察できるようにします。
異常値検出: 調整された比率を高値で125、低値で75に制限し、通常のレベルに戻るまでこれらの限界を維持します。
使用方法: このインジケーターは、原油市場における需給ダイナミクスとインフレ圧力を分析するトレーダーにとって特に有用です。使用するには、このスクリプトをTradingViewチャートに追加し、トレーディング戦略に基づいて「Lower Threshold」と「Upper Threshold」のラインを必要に応じて調整します。