alphaJohnny Dynamic RSI IndicatorAlphaJohnny Dynamic RSI Indicator (Dyn RSI)
The Dynamic RSI Indicator (Dyn RSI) is a custom Pine Script tool designed for TradingView that aggregates Relative Strength Index (RSI) signals from multiple timeframes to provide a comprehensive view of market momentum. It combines RSI data from Weekly, Daily, 4-hour, 1-hour, and 30-minute intervals, offering traders a flexible and customizable way to analyze trends across different periods.
Key Features:
Multi-Timeframe RSI Aggregation: Combines RSI signals from user-selected timeframes for a holistic momentum assessment.
Dynamic or Equal Weighting: Choose between correlation-based dynamic weights (adjusting based on each timeframe’s correlation with price changes) or equal weights for simplicity.
Smoothed Momentum Line: A visually intuitive line that reflects the strength of the aggregate signal, smoothed for clarity.
Color-Coded Signal Strength:
Dark Green: Strong buy signal
Light Green: Weak buy signal
Yellow: Neutral
Light Red: Weak sell signal
Dark Red: Strong sell signal
Visual Markers: Large green triangles at the bottom for strong buy signals and red triangles at the top for strong sell signals.
How to Use:
Apply to Chart: Add the indicator to your TradingView chart (it will appear in a separate pane).
Customize Settings: Adjust inputs like RSI period, signal thresholds, included timeframes, weighting method, and smoothing period to fit your trading style.
Interpret Signals:
Momentum Line: Watch for color changes to gauge market conditions.
Triangles: Green at the bottom for strong buy opportunities, red at the top for strong sell opportunities.
Notes:
The indicator is designed for a separate pane (overlay=false), with triangles positioned relative to the pane’s range.
Fine-tune thresholds and weights based on your strategy and the asset being analyzed.
The source code is open for modification to suit your needs.
This indicator is ideal for traders seeking a multi-timeframe perspective on RSI to identify potential trend reversals and momentum shifts.
Cycles
M2SL/DXY RatioThis is the ratio of M2 money supply (M2SL) to the U.S. dollar index (DXY), taking into account the impact of U.S. dollar strength and weakness on liquidity.
M2SL/DXY better represents the current impact of the United States on cryptocurrency prices.
Lukiano BTC 369 Close MarkerThis indicator highlights candles where the closing price reduces to 3, 6, or 9 based on digital root calculation (sum of digits).
🔵 Blue dot = 3
🟢 Green dot = 6
🔴 Red dot = 9
Inspired by Tesla’s 369 theory and adapted for BTC traders who want to explore alternative energy-based signals.
Created by @Lukiano
Suppot and resistance & BUY SELL SIGNALSThis indicator is highly customizable and suitable for traders of all experience levels. By adjusting the input settings, traders can tailor the indicator to their specific needs and trading strategies.
Normalized FX Weighted Daily % Change vs DXYThis indicator tracks international liquidity flows by measuring the USD’s relative strength against major currencies—EUR, CNY, JPY, GBP, and CAD. It calculates the weighted percentage change of each pair over a specified interval. A positive reading means the USD is weakening (liquidity flowing out of the US), while a negative reading indicates the USD is strengthening (liquidity flowing in). Additionally, the indicator incorporates the DXY index and VIX, with all components normalized using Z-scores for clear, comparable insights into market dynamics.
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
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.
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
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.
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.
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.