Time Marker Pro: Vertical Line at Key Times)Smart Vertical Line at Specific Time (with Timezone, Color, and Width Controls)
This script draws a vertical line on your chart at a user-defined time once per day, based on the selected timezone.
🕒 Key Features:
Set your target hour and minute
Choose from a list of common timezones (Tehran, UTC, New York, etc.)
Customize the line color and thickness
Works across all intraday timeframes (1min, 5min, 15min, etc.)
Adjusts automatically to bar intervals — no need for exact time matching
This is perfect for traders who want to:
Highlight the start of a session
Mark specific news times, breakouts, or routine entries
Visualize key time-based levels on the chart
Kitaran
US Presidents (Alternating Fills by Order)📜 Indicator Description: US Presidents Background Fill
This indicator highlights the terms of U.S. Presidents on your chart with alternating red and blue background fills based on their political party:
• 🟥 Republicans = Red
• 🟦 Democrats = Blue
• 🎨 Dark/Light shading alternates with each new president to clearly distinguish consecutive terms, even within the same party.
The fill starts from President Ulysses S. Grant (18th President, 1873) through to the 47th president in 2025. It is designed to work with any asset and automatically adapts to the visible date range on your chart.
Ideal for visualizing macro trends, historical context, and how markets may have reacted under different political administrations.
[COG]S&P 500 Weekly Seasonality ProjectionS&P 500 Weekly Seasonality Projection
This indicator visualizes S&P 500 seasonality patterns based on historical weekly performance data. It projects price movements for up to 26 weeks ahead, highlighting key seasonal periods that have historically affected market performance.
Key Features:
Projects price movements based on historical S&P 500 weekly seasonality patterns (2005-2024)
Highlights six key seasonal periods: Jan-Feb Momentum, March Lows, April-May Strength, Summer Strength, September Dip, and Year-End Rally
Customizable forecast length from 1-26 weeks with quick timeframe selection buttons
Optional moving average smoothing for more gradual projections
Detailed statistics table showing projected price and percentage change
Seasonality mini-map showing the full annual pattern with current position
Customizable colors and visual elements
How to Use:
Apply to S&P 500 index or related instruments (daily timeframe or higher recommended)
Set your desired forecast length (1-26 weeks)
Monitor highlighted seasonal zones that have historically shown consistent patterns
Use the projection line as a general guideline for potential price movement
Settings:
Forecast length: Configure from 1-26 weeks or use quick select buttons (1M, 3M, 6M, 1Y)
Visual options: Customize colors, backgrounds, label sizes, and table position
Display options: Toggle statistics table, period highlights, labels, and mini-map
This indicator is designed as a visual guide to help identify potential seasonal tendencies in the S&P 500. Historical patterns are not guarantees of future performance, but understanding these seasonal biases can provide valuable context for your trading decisions.
Note: For optimal visualization, use on Daily timeframe or higher. Intraday timeframes will display a warning message.
[COG]Nasdaq Weekly Seasonality ProjectionNasdaq Weekly Seasonality Projection
This indicator provides a visualization of Nasdaq seasonality patterns based on historical weekly performance data. It projects price movements for up to 26 weeks ahead, highlighting key seasonal periods that have historically affected tech stocks.
Key Features:
Projects price movements based on historical Nasdaq weekly seasonality patterns
Highlights six key seasonal periods: January Effect, March Lows, April-May Strength, Tech Summer Rally, September Dip, and Q4 Tech Rally
Customizable forecast length from 1-26 weeks with quick timeframe selection buttons
Optional moving average smoothing for more gradual projections
Detailed statistics table showing projected price and percentage change
Seasonality mini-map showing the full annual pattern with current position
Customizable colors and visual elements
How to Use:
Apply to Nasdaq indices or tech-focused instruments (daily timeframe or higher recommended)
Set your desired forecast length (1-26 weeks)
Monitor highlighted seasonal zones that have historically shown consistent patterns
Use the projection line as a general guideline for potential price movement
Settings:
Forecast length: Configure from 1-26 weeks or use quick select buttons (1M, 3M, 6M, 1Y)
Visual options: Customize colors, backgrounds, label sizes, and table position
Display options: Toggle statistics table, period highlights, labels, and mini-map
This indicator is designed as a visual guide to help identify potential seasonal tendencies in Nasdaq and tech stocks. Historical patterns are not guarantees of future performance, but understanding these seasonal biases can provide valuable context for your trading decisions.
Note: For optimal visualization, use on Daily timeframe or higher. Intraday timeframes will display a warning message.
HTF Coloured PeriodThe "HTF Coloured Period" indicator colors the candles on the current chart based on the direction of a higher timeframe (HTF) candle. Here's how it works:
Higher Timeframe Selection :
- The user can set the higher timeframe period, which can be adjusted in minute increments. The default is 1 day (1440 minutes) , but it can be customized to any desired timeframe.
Higher Timeframe Data :
- The indicator compares the open and close prices of the higher timeframe's candle.
Direction Determination :
- If the higher timeframe candle is bullish ( close > open ), it considers the candle as green .
Coloring Candles :
- If the higher timeframe candle is bullish, the current chart's candles are colored green . If it's bearish, the candles are colored red .
The result is a visual indicator where the lower timeframe candles are color-coded based on whether the higher timeframe candle is bullish or bearish, helping to identify alignment with the higher timeframe trend.
Power Balance Bull&Bear - CoffeeKillerPower Balance Bull&Bear - CoffeeKiller Indicator Guide
Welcome traders! This guide will walk you through the Power Balance Bull&Bear indicator, a unique and powerful market analysis tool developed by CoffeeKiller that visualizes the ongoing battle between buyers and sellers in any market.
Core Concept: Buyers vs. Sellers
The foundation of this indicator rests on a simple yet profound concept: every price movement in the market represents a battle between buyers and sellers.
Positive Green Line: Buyer Power
- Represents cumulative buying pressure in the market
- Tracks positive directional movement over a specified period
- Rising positive line indicates increasing buying momentum
- Peaks in the positive line show moments of maximum buyer dominance
Negative Red Line: Seller Power
- Represents cumulative selling pressure in the market
- Tracks negative directional movement over a specified period
- Falling negative line indicates increasing selling momentum
- Troughs in the negative line show moments of maximum seller dominance
Master Line: Market Balance
- Calculated as the difference between positive and negative movements
- Above zero: buyers are in control
- Below zero: sellers are in control
- Peaks and troughs: moments of extreme buyer or seller dominance
Core Components
1. Directional Movement Analysis
- Cumulative measurement of price changes in both directions
- Normalization for consistent visualization
- Optional smoothing for clearer signals
- Custom box size for sensitivity control
2. Distance Measurement
- Calculation of separation between buyer and seller lines
- Convergence and divergence thresholds
- Dynamic fill coloring based on distance trends
- Distance trend visualization
3. Peak Detection System
- Identification of local maxima and minima in buyer/seller dominance
- Background highlighting of significant peaks
- Zero-line cross detection for trend changes
- Visual cues for market extremes
4. Trend Analysis
- Buyer/seller line crossovers for major trend signals
- Distance trending for momentum confirmation
- Status monitoring (Near, Far, Normal)
- Direction tracking for both buyer and seller lines
Main Features
Time Resolution Settings
- Normal mode: calculations based on chart timeframe
- Custom resolution mode: calculations based on specified timeframe
- Multi-timeframe analysis capabilities
- Flexible time projection options
Visual Elements
- Color-coded buyer and seller lines
- Dynamic fill coloring based on convergence/divergence
- Background highlighting for significant peaks
- Distance line with threshold markers
Signal Generation
- Buyer/seller crossover alerts
- Convergence/divergence notifications
- Peak detection signals
- Status change alerts
Analysis Table(I personally don't use the table it was coded to take longer signals to show strength or weakness in overall trend)
- Current distance measurement
- Distance trend indication
- Status monitoring (Near, Far, Normal)
- Buyer and seller line trend tracking
Trading Applications
1. Trend Identification
- Buyer line crossing above seller line: bullish trend beginning
- Seller line crossing above buyer line: bearish trend beginning
- Distance between lines: trend strength
- Distance trending: momentum confirmation
2. Reversal Detection
- Peak formation after extended trend: potential exhaustion
- Buyer/seller line convergence: decreasing trend strength
- Distance falling below convergence threshold: potential trend change
- Background highlighting: visual cue for significant peaks
3. Momentum Analysis
- Increasing distance: accelerating trend
- Decreasing distance: decelerating trend
- Distance above divergence threshold: strong momentum
- Distance below convergence threshold: weak momentum
4. Market Balance Assessment
- Buyer line trend: indicates strength/weakness of bulls
- Seller line trend: indicates strength/weakness of bears
- Master line position relative to zero: overall market bias
- Distance between lines: consensus or disagreement in the market
Optimization Guide
1. Period Settings
- Longer period: smoother signals, less noise, fewer false signals
- Shorter period: more responsive, captures minor moves, potentially more noise
- Default (20): balanced approach for most timeframes
2. Box Size Parameter
- Smaller box size: more sensitive to price changes
- Larger box size: less sensitive, focuses on major moves
- Default (0.001): calibrated for typical price ranges
3. Distance Thresholds
- Convergence threshold: determines when lines are considered "near"
- Divergence threshold: determines when lines are considered "far"
- Adjusting these based on volatility of the instrument
4. Color Customization
- Positive Green line: representing buyer strength
- Negative Red line: representing seller strength
- Diverging fill: when the gap between buyers and sellers is increasing
- Converging fill: when buyers and sellers are moving closer together
Best Practices
1. Signal Confirmation
- Wait for buyer/seller crossovers to confirm
- Look for background highlighting at peaks
- Check distance trends for momentum confirmation
- Use the analysis table for additional context
2. Timeframe Selection
- Lower timeframes: more signals, potential noise
- Higher timeframes: cleaner signals, less frequent
- Custom resolution: allows comparison across timeframes
- Consider using multiple timeframes for confirmation
3. Market Context
- Strong buyer line rising + weak seller line: very bullish
- Strong seller line falling + weak buyer line: very bearish
- Both lines rising: volatile uptrend
- Both lines falling: volatile downtrend
4. Combining with Other Indicators
- Use with trend indicators for confirmation
- Pair with oscillators for overbought/oversold conditions
- Combine with volume analysis for validation
- Consider support/resistance levels when peaks form
Advanced Trading Strategies
1. Buyer/Seller Balance Strategy
- Enter long when buyer line crosses above seller line
- Enter short when seller line crosses above buyer line
- Use distance trend for filtering quality of signals
- Exit when distance falls below convergence threshold
2. Peak Trading Strategy
- Identify significant peaks with background highlighting
- Look for consecutive lower peaks in buyer line for shorting opportunities
- Look for consecutive higher troughs in seller line for buying opportunities
- Use master line crosses through zero as confirmation
3. Convergence/Divergence Strategy
- Enter positions when distance exceeds divergence threshold (strong trend)
- Take partial profits when distance starts decreasing
- Exit fully when distance falls below convergence threshold
- Re-enter when a new trend forms with increasing distance
4. Line Trend Combination Strategy
- Strongest bullish signal: Rising buyer line + falling seller line + increasing distance
- Strongest bearish signal: Falling buyer line + rising seller line + increasing distance
- Potential reversal signal: Decreasing distance + peak formation + line trend change
- Continuation signal: Consistent buyer/seller dominance + increasing distance after consolidation
Practical Analysis Examples
Bullish Market Scenario
- Buyer line trends upward as buying pressure increases
- Seller line remains flat or trends downward as selling pressure decreases
- Distance between lines expands, showing divergence (strong trend)
- Positive background highlights appear at new peaks in buyer dominance
- Master line moves further above zero
Bearish Market Scenario
- Seller line trends downward as selling pressure increases
- Buyer line remains flat or trends downward as buying pressure decreases
- Distance between lines expands, showing divergence (strong trend)
- Negative background highlights appear at new troughs in seller dominance
- Master line moves further below zero
Consolidation Scenario
- Buyer and seller lines move sideways
- Distance between lines narrows, showing convergence
- Few or no new peak highlights appear
- Master line oscillates close to the zero line
- Analysis table shows "Stable" trends for both buyer and seller lines
Understanding Market Dynamics Through Power Balance
At its core, this indicator provides a unique lens to visualize the ongoing battle between bulls and bears:
1. **Relative Strength**: When the buyer line rises faster than the seller line, bulls are gaining strength relative to bears - a bullish signal. When the seller line falls faster than the buyer line, bears are dominating - a bearish signal.
2. **Market Consensus**: Convergence between lines suggests market participants are reaching consensus about price direction. Divergence suggests growing disagreement and potential for stronger moves.
3. **Exhaustion Signals**: Major peaks in either line that are highlighted by background colors suggest moments where one side (buyers or sellers) has reached maximum strength - often precursors to reversals.
4. **Trend Confirmation**: The status indicators (Near, Far, Normal) provide context about the current market phase, helping confirm whether a trend is establishing, continuing strongly, or potentially fading.
Remember:
- Combine signals from buyer/seller lines, distance measurements, and peak formations
- Use appropriate timeframe settings for your trading style
- Monitor the analysis table for additional context
- Consider market conditions and correlate with price action
This indicator works best when:
- Used as part of a comprehensive trading system
- Combined with proper risk management
- Applied with an understanding of current market conditions
- Signals are confirmed by price action and other indicators
**DISCLAIMER**: This indicator and its signals are intended solely for educational and informational purposes. They do not constitute financial advice. Trading involves significant risk of loss. Always conduct your own analysis and consult with financial professionals before making trading decisions.
Correlation X macroeconomicsFind the correlation between financial assets and the main Brazilian macroeconomic variables:
SELIC rate (Red)
PIB (Green)
Inflation (Blue)
Employment and income (Yellow)
Unlike other indicators that measure the correlation between two assets, the indicator "Correlation X macroeconomics" measures, for example, the correlation that the VALE3 asset has with the SELIC rate.
The correlation is obtained by calculating the variation suffered by a given asset on the day a given Brazilian macroeconomic variable is released.
This indicator can be used on any financial asset.
Use time frame chart = 1 day.
To calculate the correlation, data published by IBGE and the Central Bank of Brazil over a period of time are used. This time period is different depending on the selected macroeconomic variable. Namely:
16 PIB disclosures (4 years)
24 SELIC rate disclosures (3 years)
24 disclosures of IPCA and employment and income data (2 years)
You can select one or more macroeconomic variables to check the effect of correlation separately on each of them.
This indicator "Correlation X macroeconomics" will be updated monthly, as detailed below:
At the end of the day on which the PIB is released
At the end of the day on which employment and income data are released
At the end of the day following the day on which the SELIC rate is published
On the last business day of the month if none of the aforementioned disclosures occur
[iQ]PRO Master iQWave SystemWelcome to the PRO Master iQWave System, an exclusive, ndicator crafted for TradingView. This cutting-edge tool harnesses sophisticated mathematical models to deliver precise buy and sell signals, empowering traders with a comprehensive view of market dynamics.
Key Features
Advanced Analytical Framework: Seamlessly integrates state-of-the-art techniques in signal processing, statistical analysis, and market profiling to uncover high-probability trading opportunities.
Holistic Market Insight: Combines proprietary methods for data transformation, frequency-based cycle detection, adaptive trend and seasonality extraction, and moment-driven anomaly identification—offering a multi-dimensional approach to price analysis.
Customizable Precision: With a wide range of user inputs, traders can tailor the system to their unique strategies and adapt it to diverse market conditions, ensuring flexibility across asset classes and timeframes.
Intuitive Visual Feedback: Displays critical insights directly on your chart, including adaptive fits, statistical boundaries, market profile levels, and a clear, actionable signal label—making complex analysis accessible at a glance.
Why Choose PRO Master iQWave System?
Designed for experienced traders, this indicator stands out by blending advanced analytics with practical usability. Whether you're identifying reversals, filtering noise, or gauging market structure, the PRO Master iQWave System equips you with a robust, all-in-one solution. Its proprietary algorithms distill intricate market data into actionable signals, helping you stay ahead of the curve.
Elevate Your Trading
Experience the power of next-level technical analysis. The PRO Master iQWave System is more than an indicator—it's a strategic edge, reserved for those ready to unlock its potential. Take your trading to new heights with this exclusive tool, available only by invitation.
ADvM, of MMiQ
[iQ]PRO Ultimate Financial Analysis Tool And System SynergyUltimate Financial Analysis Tool And System Synergy (UFATASS)
Advanced Market Insights with Cycle Analysis, Trend Forecasting, and Risk Monitoring
The Ultimate Financial Analysis Tool And System Synergy (UFATASS) is a powerful indicator designed to give traders a deeper understanding of market dynamics. By blending cutting-edge techniques from signal processing, statistics, and dynamical systems theory, UFATASS provides a unique, all-in-one solution for technical analysis.
Key Features
Cycle Detection:
Pinpoints dominant market cycles using advanced spectral analysis, helping you identify potential turning points.
Trend Analysis:
Delivers multiple regression lines to capture short-term and long-term market trends, with a customizable complexity setting for precision.
Probability Forecasts:
Uses Monte Carlo simulations to estimate the likelihood of future price movements, offering a probabilistic edge for decision-making.
Risk Monitoring:
Tracks volatility and market stability, featuring an experimental chaos indicator based on Lyapunov exponents to assess price predictability.
Customization Options
Adjust the indicator to fit your trading style:
Cycle and regression lookback periods
Complexity factor for regression sensitivity
Volatility calculation window
Forecast horizon for price predictions
Visual Outputs
Price and regression lines plotted on the main chart
Cycle details and wave visuals in a separate pane
A summary label on the last bar with key metrics (e.g., cycle length, probabilities)
Background color alerts to signal risk levels
How to Use
Incorporate UFATASS into your strategy to:
Anticipate reversals with cycle analysis
Confirm trends using regression insights
Plan entries and exits with probability forecasts
Monitor market conditions and adjust risk exposure
Label Selected DayThis Pine Script indicator allows users to highlight a specific day of the week on the chart. Users can select a day using the dropdown menu, and the script will mark all occurrences of that day.
The indicator is lightweight and non-intrusive, making it a great addition for traders who analyze market movements relative to specific days.
Moon+Lunar Cycle Vertical Delineation & Projection
Automatically highlights the exact candle in which Moonphase shifts occur.
Optionally including shifts within the Microphases of the total Lunar Cycle.
This allow traders to pre-emptively identify time-based points of volatility,
focusing on mean-reversion; further simplified via the use of projections.
Projections are calculated via candle count, values displayed in "Debug";
these are useful in understanding the function & underlying mechanics.
Wall Street Ai**Wall Street Ai – Advanced Technical Indicator for Market Analysis**
**Overview**
Wall Street Ai is an advanced, AI-powered technical indicator meticulously engineered to provide traders with in-depth market analysis and insight. By leveraging state-of-the-art artificial intelligence algorithms and comprehensive historical price data, Wall Street Ai is designed to identify significant market turning points and key price levels. Its sophisticated analytical framework enables traders to uncover potential shifts in market momentum, assisting in the formulation of strategic trading decisions while maintaining the highest standards of objectivity and reliability.
**Key Features**
- **Intelligent Pattern Recognition:**
Wall Street Ai employs advanced machine learning techniques to analyze historical price movements and detect recurring patterns. This capability allows it to differentiate between typical market noise and meaningful signals indicative of potential trend reversals.
- **Robust Noise Reduction:**
The indicator incorporates a refined volatility filtering system that minimizes the impact of minor price fluctuations. By isolating significant price movements, it ensures that the analytical output focuses on substantial market shifts rather than ephemeral variations.
- **Customizable Analytical Parameters:**
With a wide range of adjustable settings, Wall Street Ai can be fine-tuned to align with diverse trading strategies and risk appetites. Traders can modify sensitivity, threshold levels, and other critical parameters to optimize the indicator’s performance under various market conditions.
- **Comprehensive Data Analysis:**
By harnessing the power of artificial intelligence, Wall Street Ai performs a deep analysis of historical data, identifying statistically significant highs and lows. This analysis not only reflects past market behavior but also provides valuable insights into potential future turning points, thereby enhancing the predictive aspect of your trading strategy.
- **Adaptive Market Insights:**
The indicator’s dynamic algorithm continuously adjusts to current market conditions, adapting its analysis based on real-time data inputs. This adaptive quality ensures that the indicator remains relevant and effective across different market environments, whether the market is trending strongly, consolidating, or experiencing volatility.
- **Objective and Reliable Analysis:**
Wall Street Ai is built on a foundation of robust statistical methods and rigorous data validation. Its outputs are designed to be objective and free from any exaggerated claims, ensuring that traders receive a clear, unbiased view of market conditions.
**How It Works**
Wall Street Ai integrates advanced AI and deep learning methodologies to analyze a vast array of historical price data. Its core algorithm identifies and evaluates critical market levels by detecting patterns that have historically preceded significant market movements. By filtering out non-essential fluctuations, the indicator emphasizes key price extremes and trend changes that are likely to impact market behavior. The system’s adaptive nature allows it to recalibrate its analytical parameters in response to evolving market dynamics, providing a consistently reliable framework for market analysis.
**Usage Recommendations**
- **Optimal Timeframes:**
For the most effective application, it is recommended to utilize Wall Street Ai on higher timeframe charts, such as hourly (H1) or higher. This approach enhances the clarity of the detected patterns and provides a more comprehensive view of long-term market trends.
- **Market Versatility:**
Wall Street Ai is versatile and can be applied across a broad range of financial markets, including Forex, indices, commodities, cryptocurrencies, and equities. Its adaptable design ensures consistent performance regardless of the asset class being analyzed.
- **Complementary Analytical Tools:**
While Wall Street Ai provides profound insights into market behavior, it is best utilized in combination with other analytical tools and techniques. Integrating its analysis with additional indicators—such as trend lines, support/resistance levels, or momentum oscillators—can further refine your trading strategy and enhance decision-making.
- **Strategy Testing and Optimization:**
Traders are encouraged to test Wall Street Ai extensively in a simulated trading environment before deploying it in live markets. This allows for thorough calibration of its settings according to individual trading styles and risk management strategies, ensuring optimal performance across diverse market conditions.
**Risk Management and Best Practices**
Wall Street Ai is intended to serve as an analytical tool that supports informed trading decisions. However, as with any technical indicator, its outputs should be interpreted as part of a comprehensive trading strategy that includes robust risk management practices. Traders should continuously validate the indicator’s findings with additional analysis and maintain a disciplined approach to position sizing and risk control. Regular review and adjustment of trading strategies in response to market changes are essential to mitigate potential losses.
**Conclusion**
Wall Street Ai offers a cutting-edge, AI-driven approach to technical analysis, empowering traders with detailed market insights and the ability to identify potential turning points with precision. Its intelligent pattern recognition, adaptive analytical capabilities, and extensive noise reduction make it a valuable asset for both experienced traders and those new to market analysis. By integrating Wall Street Ai into your trading toolkit, you can enhance your understanding of market dynamics and develop a more robust, data-driven trading strategy—all while adhering to the highest standards of analytical integrity and performance.
day of Month | xilixMonthly Marker (1D Only)
The Monthly Marker indicator automatically highlights a specific day of the month on a daily (1D) chart by drawing a vertical line. Users can select their desired day of the month and customize the line color.
Features:
✅ Marks the chosen day of each month with a vertical line.
✅ Customizable line color (set in the indicator settings).
✅ Helps traders quickly identify key monthly dates.
Note: This indicator will not work on lower timeframes (e.g., 4H, 1H) and will show an error if applied outside the 1D timeframe.
Best Use Cases: Monthly trend tracking, economic event alignment, and custom date-based analysis. 🚀
Intraday Low Engulf Line This indicator currently work on Future product as it track the intraday low for the daily session from 6pm to 5pm EST. You may have to manually adjust the code if there is a time difference, or day light saving.
This indicator will track all new intraday low through out the session. Once a new intraday low is made, the indicator will display the high of that candle as an engulf target.
If the next candle making a intraday low, this engulf target will be updated. Until there is no more intraday low is made, we will see a engulf target line which is the high of the candle that make the most recent intraday low.
If there is any candle body is below the intraday low engulf life, you can expect to place a buy stop order to trade the bullish reversal.
You may want to use 5m or 15m, or 30M timeframe to reduce the noise of this indicator.
Your stop loss will be set at the intraday low. Therefore a higher time frame 5m is better for entry, however 1m timeframe will give you the best reward.
The idea is that Indraday low engulf line can be a target for bullish reversal or a bullish retest.
Another way to use this this intraday low engulf line is to treat it as a support. If the support break, the trend can be bearish too.
You have to develop your own price action strategy how to trade this.
I will also add an intraday High engulf indicator later.
Highs, Lows & SessionsHigh Low & Sessions Indicator - Purpose & Usage
The High Low & Sessions indicator is designed to provide key price levels and session-based market insights to help traders make informed decisions. It focuses on daily highs/lows, weekly highs/lows, and major trading sessions to identify support, resistance, and volatility patterns.
Key Functions of the High Low & Sessions Indicator:
Tracks Daily & Weekly Highs and Lows
Previous Day’s High & Low: Helps traders identify breakout points and potential reversals.
Previous Week’s High & Low: Provides key resistance/support levels for swing trading strategies.
Trading Session Zones
London Session: High volatility, often setting the daily trend.
New York Session: Strong liquidity, continuation or reversal of the London move.
Asian Session (Tokyo & Sydney): Lower volatility, potential accumulation phase.
EM Yield Curve IndexThis script calculates the Emerging Markets (EM) Yield Curve Index by aggregating the 2-year and 10-year bond yields of major emerging economies. The bond yields are weighted based on each country's bond market size, with data sourced from TradingView. The yield curve is derived by subtracting the 2-year yield from the 10-year yield, providing insights into economic conditions, risk sentiment, and potential recessions in emerging markets. The resulting EM Yield Curve Index is plotted for visualization.
Note: In some cases, TradingView's TVC data did not provide a 2-year bond yield. When this occurred, the best available alternative yield (such as 3-month, 1-year or 4-year yields) was used to approximate the short-term interest rate for that country.
Mswing HommaThe Mswing is a momentum oscillator that calculates the rate of price change over 20 and 50 periods (days/weeks). Apart from quantifying momentum, it can be used for assessing relative strength, sectoral rotation & entry/exit signals.
Quantifying Momentum Strength
The Mswing's relationship with its EMA (e.g., 5-period or 9-period) is used for momentum analysis:
• M Swing >0 and Above EMA: Momentum is positive and accelerating (ideal for entries).
• M Swing >0 and Below EMA: Momentum is positive but decelerating (caution).
• M Swing <0 and Above EMA: Momentum is negative but improving (watch for reversals).
• M Swing <0 and Below EMA: Momentum is negative and worsening (exit or avoid).
Relative Strength Scanning (M Score)
Sort stocks by their M Swing using TradingView’s Pine scanner.
Compare the Mswing scores of indices/sectors to allocate capital to stronger groups (e.g., renewables vs. traditional energy).
Stocks with strong Mswing scores tend to outperform during bullish phases, while weak ones collapse faster in downtrends.
Entry and Exit Signals
Entry: Buy when Mswing crosses above 0 + price breaks key moving averages (50-day SMA). Use Mswing >0 to confirm valid breakouts. Buy dips when Mswing holds above EMA during retracements.
Exit: Mswing can be used for exiting a stock in 2 ways:
• Sell in Strength: Mswing >4 (overbought).
• Sell in Weakness: Mswing <0 + price below 50-day SMA.
Multi-Timeframe Analysis
• Daily: For swing trades.
• Weekly: For trend confirmation.
• Monthly: For long-term portfolio adjustments.
Crypto Money Flow TrackerAlerts now trigger automatically – no manual setup needed!
✔ Alerts will notify you when:
OI change (15m) is greater than or below the threshold
Price change (15m) is greater than or below the threshold
✔ Messages will display exact percentage changes in OI and price.
Similar Bars Pattern DetecterDescription:
The Similar Bars Pattern Detector is a professional Pine Script indicator designed for TradingView users who want to identify sequences of similar candlesticks in a row. Whether you're looking for bullish or bearish patterns, this tool helps you spot repeating formations based on customizable settings.
Features:
✅ Detects patterns of consecutive similar bars
✅ Works for both bullish and bearish trends
✅ Uses tick-based range filtering for precise detection
✅ Fully customizable: adjust number of candles, trend type, and range
✅ Highlights detected patterns directly on the chart
🔹 Ideal for traders who rely on pattern recognition to confirm trends and price movements.
🔹 Works across all markets and timeframes.
💡 How to Use:
1️⃣ Set the number of candles to detect a repeating pattern.
2️⃣ Choose bullish or bearish trend direction.
3️⃣ Adjust the tick range to fine-tune pattern similarity.
🚀 Enhance your trading analysis with this powerful pattern recognition tool!
Custom Time Alert with Vertical Line📌 Detailed Explanation of the Custom Time Alert with Vertical Line in Pine Script v5
This script is a time-based alert system designed for TradingView. It allows traders to set a specific hour and minute for alerts and provides visual indicators on the chart, including a marker when the alert triggers and a vertical line at the alert time.
🔹 Main Features
Custom Alert Time → Users can specify the exact hour and minute for an alert.
Time Zone Offset Support → Users can manually adjust their local UTC offset to ensure alerts trigger at the correct time.
Real-Time Alert Condition → When the market reaches the set time, an alert notification is triggered.
Chart Visualization → A red marker appears when the alert is activated, and a blue vertical line is drawn at the alert time.
Automated Calculation → The script adjusts the alert time based on the user’s time zone settings.
🛠️ How It Works
User Input for Alert Time
The script allows users to enter their desired alert hour (0-23) and minute (0-59).
This ensures the alert triggers at the exact specified time.
Time Zone Offset Handling
Users enter their UTC offset (e.g., New York is -5, Tokyo is +9).
This ensures alerts work correctly regardless of the user’s location.
Time Calculation
The script adjusts the TradingView time by adding the time zone offset in milliseconds.
This converts the UTC-based TradingView time into the user’s local time.
Checking for a Time Match
The script constantly checks if the current hour and minute match the user-defined alert time.
If they match, the script activates an alert.
Triggering Alerts
The script uses TradingView’s alertcondition() function to create an alert.
When the time matches, TradingView sends a notification (e.g., pop-up, sound, or mobile alert).
Chart Markers for Visual Alerts
A red marker is displayed on the chart when the alert triggers.
A blue vertical line is drawn at the exact alert time.
📌 Example Use Cases
📈 1. Forex Traders Monitoring Market Opens
A forex trader who trades the London session wants an alert when the market opens at 8:00 AM UTC.
The trader sets:
Alert Hour = 8
Alert Minute = 0
Time Zone Offset = 0 (for UTC)
When the market reaches 8:00 AM UTC, the script triggers an alert.
📈 2. Stock Market Open Alerts
A trader in New York (EST) wants an alert at 9:30 AM Eastern Time (New York Stock Exchange open).
New York’s UTC offset is -5.
The trader sets:
Alert Hour = 9
Alert Minute = 30
Time Zone Offset = -5
The script ensures the alert triggers at 9:30 AM EST.
📈 3. Crypto Trader Watching a Specific Time
A crypto trader wants an alert for a specific strategy at 3:00 PM in Tokyo (UTC+9).
Tokyo’s UTC offset is +9.
The trader sets:
Alert Hour = 15
Alert Minute = 0
Time Zone Offset = +9
The script ensures the alert triggers exactly at 3:00 PM Tokyo time.
AlphaSync | QuantEdgeB📢 Introducing AlphaSync by QuantEdgeB
🛠️ Overview
AlphaSync is a comprehensive medium-term market guidance system designed for major assets such as BTC, ETH, and SOL. This system helps traders determine the overall market direction by integrating three universal strategies (EvolveXSync, ApexSync, QBHV Sync) and a Hybrid strategy (HybridSync).
🚀 What Makes AlphaSync Unique?
✅ Multi-Strategy Fusion → A robust blend of technical, economic, on-chain, and volatility-driven insights.
✅ HybridSync Component (90% Non-Price Factors) → Incorporates macro and liquidity signals to balance pure price-based models.
✅ Structured Decision-Making → The Trend Confluence score aggregates all sub-strategies, providing a unified market signal.
__________________________________________________________________________________
✨ Key Features
🔹 HybridSync (Hybrid Model)
Utilizes on-chain, economic, liquidity, and volatility factors to provide a fundamental market risk outlook. Unlike technical models, it derives signals primarily from macroeconomic indicators, risk appetite gauges, and capital flows.
🔹 EvolveXSync, & ApexSync (Technical Strategies)
Both strategies are purely price-based, relying on volatility-adjusted trend models, adaptive moving averages, and statistical deviations to confirm bullish or bearish trends.
🔹 QBHV Sync (Momentum & Deviation-Based System)
A fusion of momentum-deviation and a volatility-driven trend confirmation model, designed to detect shifts in momentum while filtering out market noise.
🔹 Trend Confluence (Final Aggregated Signal)
A weighted combination of all four models, delivering a single, structured signal to eliminate conflicting indicators and refine decision-making.
__________________________________________________________________________________
📊 How It Works
1️⃣ HybridSync – Non-Price Market Structure Analysis
HybridSync is an economic and liquidity-based framework, integrating macro variables, credit spreads, volatility indices, capital flows, and on-chain dynamics to assess risk-on/risk-off conditions.
📌 Key Components:
✔ On-Chain Metrics → Tracks investor behavior, exchange flows, and market cap ratios.
✔ Liquidity Indicators → Monitors global money supply (M2), Federal Reserve balance sheet, credit markets, and capital flows.
✔ Volatility & Risk Metrics → Uses MOVE, VIX, VVIX ratios, and bond market stress indicators to identify risk sentiment shifts.
🔹 Why HybridSync?
• Price alone does not dictate the market; macro liquidity and risk factors are often leading indicators of price movement, especially when it comes to risk assets such as cryptocurrencies.
• Improves decision-making in uncertain market environments, particularly during high-volatility or trendless conditions.
2️⃣ EvolveXSync, & ApexSync – Trend-Following & Volatility Models
Both EvolveXSync, & ApexSync are technical strategies, independently designed to capture trend strength and volatility dynamics.
📌 Core Mechanisms:
✔ VIDYA-Based Trend Detection → Adaptive moving averages adjust dynamically to price swings.
✔ SD-Filtered EMA Models → Uses normalized standard deviation levels to confirm trend validity.
✔ ATR-Adjusted Breakout Filters → Prevents false signals by incorporating dynamic volatility assessments.
🔹 Why Two UniStrategies?
• EvolveXSync, & ApexSync have different calculation methods, providing diverse perspectives on trend confirmation.
• Ensures robustness by mitigating overfitting to a single price-based model.
3️⃣ QBHV Sync – Momentum Deviation & Trend Confirmation
This component blends Bollinger Momentum Deviation (BMD) with a percentile-based trend model to confirm trend shifts.
📌 Core Components:
✔ Bollinger Momentum Deviation → A normalized SMA-SD filter detects overbought/oversold conditions.
✔ Percentile-Based Trend Confirmation → Ensures trends align with long-term volatility structure.
✔ Adaptive Signal Filtering → Prevents unnecessary trade signals by refining thresholds dynamically.
🔹 Why QBHV Sync?
• Adds a statistical layer to trend assessment, preventing whipsaws in volatile conditions.
• Complements HybridSync by ensuring price movements align with broader market forces.
4️⃣ Trend Confluence – The Final Aggregated Signal
AlphaSync blends HybridSync, EvolveXSync, ApexSync, and QBHV Sync into one final output.
📌 How It’s Weighted ? Equal Weight to remove any bias and over-reliance on one input.
✔ HybridSync (Macro & On-Chain Factors) → 25% Weight
✔ UniStrat V1 (Pure Trend) → 25% Weight
✔ UniStrat V2 (Trend + ATR) → 25% Weight
✔ QBHV Sync (Momentum & Deviation) → 25% Weight
🔹 Why Merge These Into One System?
The core philosophy behind AlphaSync is to create a holistic, structured decision-making framework that eliminates the weaknesses of single-method trading approaches. Instead of relying solely on technical indicators, which can lag or fail in macro-driven markets, AlphaSync blends price-based trend signals with macroeconomic, liquidity, and risk-adjusted models.
This multi-layered approach ensures that the system:
✔ Adapts dynamically to different market environments.
✔ Eliminates conflicting signals by creating a structured confluence score.
✔ Prevents over-reliance on a single market model, improving robustness.
📌 Final Signal Interpretation:
✅ Long Signal → AlphaSync Score > Long Threshold
❌ Short Signal → AlphaSync Score < Short Threshold
__________________________________________________________________________________
👥 Who Should Use AlphaSync?
✅ Medium-Term Traders & Portfolio Managers → Ideal for traders who require macro-confirmed trend signals.
✅ Systematic & Quantitative Traders → Designed for algorithmic integration and structured decision-making.
✅ Long-Term Position Traders → Helps identify major trend shifts and capital rotation opportunities.
✅ Risk-Conscious Investors → Incorporates macro volatility assessments to minimize unnecessary risk exposure.
__________________________________________________________________________________
📊 Backtest Mode - Evaluating Historical Performance
AlphaSync includes a fully integrated backtest module, allowing traders to assess its historical performance metrics.
🔹 Backtest Metrics Displayed:
✔ Equity Max Drawdown → Measures historical peak loss.
✔ Profit Factor → Evaluates profitability vs. loss ratio.
✔ Sharpe & Sortino Ratios → Risk-adjusted return metrics.
✔ Total Trades & Win Rate → Performance across different market cycles.
✔ Half Kelly Criterion → Optimal position sizing based on historical returns.
📌 Disclaimer:Backtest results are based on past performance and do not guarantee future success. Always incorporate real-time validation and risk management in live trading.
🚀 Why This Matters?
✅ Strategy Validation → See how AlphaSync performs across various market conditions.
✅ Customizable Analysis → Adjust parameters and observe real-time backtest results.
✅ Risk Awareness → Understand potential drawdowns before deploying capital.
Behavior Across Crypto Majors:
BTC
ETH
SOL
📌 Disclaimer: Backtest results are based on historical data and past market behavior. Performance is not indicative of future results and should not be considered financial advice. Always conduct your own backtests and research before making any investment decisions. 🚀
__________________________________________________________________________________
📌 Customization & Default Settings
📌 AlphaSync Input Parameters & Default Values
🔹 Strategy Configuration
• Color Mode → "Strategy"
• Extra Plots → true
• Long/Cash Signal Label → false
• AlphaSync Dashboard → true
• Enable BackTest Table → false
• Enable Equity Curve → false
• Table Position → "Bottom Left"
• Start Date → '01 Jan 2018 00:00'
• AlphaSync Long Threshold → 0.00
• AlphaSync Short Threshold → 0.00
🔹 QBHV.Sync
• DEMA Source → close
• DEMA Length → 14
• Percentile Length → 35
• ATR Length → 14
• Long Multiplier (ATR Up) → 1.8
• Short Multiplier (ATR Down) → 2.5
• Momentum Length → 8
• Momentum Source → close
• Base Length (SMA Calculation) → 40
• Source for BMD → close
• Standard Deviation Length → 30
• SD Multiplier → 0.7
• Long Threshold → 72
• Short Threshold → 59
🔹 EvolveXSync Configuration
• VIDYA Loop Length → 2
• VIDYA Loop Hist Length → 5
• Vidya Loop Long Threshold → 40
• Vidya Loop Short Threshold → 10
• Dynamic EMA Length → 12
• Dynamic EMA SD Length → 30
• Dynamic EMA Upper SD Weight → 1.032
• Dynamic EMA Lower SD Weight → 1.02
• SD Median Length → 12
• Normalized Median Length → 20
• Median SD Length → 30
• Median Long SD Weight → 0.98
• Median Short SD Weight → 1.04
🔹ApexSync Configuration
• DEMA Length → 30
• DEMA ATR Length → 14
• DEMA ATR Multiplier → 1.0
• G-VIDYA Length → 9
• G-VIDYA Hist Length → 30
• VIDYA ATR Length → 14
• VIDYA ATR Multiplier → 1.7
• SD Kijun Length → 24
• Normalized Kijun Length → 50
• KIJUN SD Length → 32
• KIJUN Long SD Weight → 0.98
• KIJUN Short SD Weight → 1.02
🔹 Risk Mosaic (Macro & Liquidity Component)
• Risk Signal Smoothing Length (EMA) → 8
🚀 AlphaSync is fully customizable to match different market conditions and trading styles
🚀 By default, AlphaSync is optimized for structured, medium-term market guidance.
__________________________________________________________________________________
📌 Conclusion
AlphaSync redefines medium-term trend analysis by merging technical, fundamental, and quantitative models into one unified system. Unlike traditional strategies that rely solely on price action, AlphaSync incorporates macroeconomic and liquidity factors, ensuring a more holistic market view.
🔹 Key Takeaways:
1️⃣ Hybrid + Technical Fusion – Balances macro & price-based strategies for stronger decision-making.
2️⃣ Multi-Factor Trend Aggregation – Reduces false signals by merging independent methodologies.
3️⃣ Structured, Data-Driven Approach – Designed for quantitative trading and risk-aware portfolio allocation.
📌 Master the market with precision and confidence | QuantEdgeB
🔹 Disclaimer: Past performance is not indicative of future results. No trading strategy can guarantee success in financial markets.
🔹 Strategic Advice: Always backtest, optimize, and align parameters with your trading objectives and risk tolerance before live trading.
CCT Pi Cycle Top/BottomPi Cycle Top/bottom: The Ultimate Market Cycle Indicator
Introduction
The Pi Cycle Top/bottom Indicator is one of the most reliable tools for identifying Bitcoin market cycle peaks and bottoms. Its effectiveness lies in the strategic combination of moving averages that historically align with major market cycle reversals. Unlike traditional moving average crossovers, this indicator applies an advanced iterative approach to pinpoint price extremes with higher accuracy.
This version, built entirely with Pine Script™ v6, introduces unprecedented precision in detecting both the Pi Cycle Top and Pi Cycle Bottom, eliminating redundant labels, optimizing visual clarity, and ensuring the indicator adapts dynamically to evolving market conditions.
What is the Pi Cycle Theory?
The Pi Cycle Top and Pi Cycle Bottom were originally introduced based on a simple yet profound discovery: key moving average crossovers consistently align with macro market tops and bottoms.
Pi Cycle Top: The crossover of the 111-day Simple Moving Average (SMA) and the 350-day SMA multiplied by 2 has historically signaled market tops with astonishing accuracy.
Pi Cycle Bottom: The intersection of the 150-day Exponential Moving Average (EMA) and the 471-day SMA has repeatedly marked significant market bottoms.
While traditional moving average strategies often suffer from lag and false signals, the Pi Cycle Indicator enhances accuracy by applying a range-based scanning methodology, ensuring that only the most critical reversals are detected.
How This Indicator Works
Unlike basic moving average crossovers, this script introduces a unique iteration process to refine the detection of Pi Cycle points. Here’s how it works:
Detecting Crossovers:
Identifies the Golden Cross (bullish crossover) and Death Cross (bearish crossover) for both the Pi Cycle Top and Pi Cycle Bottom.
Iterating Through the Cycle:
Instead of plotting a simple crossover point, this script scans the range between each Golden and Death Cross to identify the absolute lowest price (Pi Cycle Bottom) and highest price (Pi Cycle Top) within that cycle.
Precision Labeling:
The indicator dynamically adjusts label positioning:
If the price at the crossover is below the fast moving average → the label is placed on the moving average with a downward pointer.
If the price is above the fast moving average → the label is placed below the candle with an upward pointer.
This ensures optimal visibility and prevents misleading signal placement.
Advanced Pine Script v6 Features:
Labels and moving average names are only shown on the last candle, reducing chart noise while maintaining clarity.
Offers full user customization, allowing traders to toggle:
Pi Cycle Top & Bottom visibility
Moving average labels
Crossover labels
Why This Indicator is Superior
This script is not just another moving average crossover tool—it is a market cycle tracker designed for long-term investors and analysts who seek:
✔ High-accuracy macro cycle identification
✔ Elimination of false signals using an iterative range-based scan
✔ Automatic detection of market extremes without manual adjustments
✔ Optimized visuals with smart label positioning
✔ First-of-its-kind implementation using Pine Script™ v6 capabilities
How to Use It?
Bull Market Tops:
When the Pi Cycle Top indicator flashes, consider the potential for a market cycle peak.
Historically, Bitcoin has corrected significantly after these signals.
Bear Market Bottoms:
When the Pi Cycle Bottom appears, it suggests a macro accumulation phase.
These signals have aligned perfectly with historical cycle bottoms.
Final Thoughts
The Pi Cycle Top/bottom Indicator is a must-have tool for traders, investors, and analysts looking to anticipate long-term trend reversals with precision. With its refined methodology, superior label positioning, and cutting-edge Pine Script™ v6 optimizations, this is the most reliable version ever created.
Personal Time Zone: Days of WeekThis is probably the simplest indicator I have ever made.
It just gives you a the days of weeks in your specified time zone and puts the day on the first bar in your time zone.
You can use UTC time format or named time zones like the default.
Just for fun I tried to give it symbols that sort of relate the old gods that the days of week were named after and even colors that one could argue match, but it was all in fun because it was so simple I felt I had to add something.
Enjoy.