Filtered Momentum with SMI & RSI Wick ConfirmationOn Chart Stochastic Momentum Indicator is helpful on lower and higher time frames when the market is ranging. Multiple Divergence per candle confirms the market direction. RSI Buy and Sell Signals are triggered when the market confirms it by your defined wick-rejection. Alerts help to identify reversals to trade double wicks or possibly forming supply and demand zones and Swing Failure Patterns - especially helpful on the 1h time frame. Orderflow-Trend changes (OBV) are shown on the chart at the bottom, which is especially helpful on lower time frames. The idea of the script is to trade on higher time frames overbought/oversold confirmed Wick-Reversals (Supply and Demand Zones). On the lower time frames follow the Orderflow-Trend (OBV). You could use the SMA50 or SMA200 for instance. The momentum settings 70/-70 are highly accurate on the 30min and 1h time frame.
Multitimeframe
Body-to-Wick Ratio Candlestick DetectorThis TradingView Pine Script implements a candlestick pattern detection strategy based on the body-to-wick ratio. The strategy identifies bullish and bearish candlestick patterns (like Hammers, Inverted Hammers, Pin Bars, etc.) and generates buy/sell signals when these patterns form.
9/30 Multi-Timeframe Trend Strategy (v6)Probieren dnak der 9&30 Stratregie Swings und Intraday zu handeln.
Dax z.B. 11% Anstiegn, wir würden 43% machen.
Clean OHLC Lines | BaksPlots clean, non-repainting OHLC lines from higher timeframes onto your chart. Ideal for tracking key price levels (open, high, low, close) with precision and minimal clutter.
Core Functionality
Clean OHLC Lines = Historical Levels + Non-Repainting Logic
• Uses lookahead=on to anchor historical lines, ensuring no repainting.
• Displays OHLC lines for customizable timeframes (15min to Monthly).
• Optional candlestick boxes for visual context.
Key Features
• Multi-Timeframe OHLC:
Plot lines from 15min, 30min, 1H, 4H, Daily, Weekly, or Monthly timeframes.
• Non-Repainting Logic:
Historical lines remain static and never recalculate.
• Customizable Styles:
Adjust colors, line widths (1px-4px), and transparency for high/low/open/close lines.
• Candle Display:
Toggle candlestick boxes with bull/bear colors and adjustable borders.
• Past Lines Limit:
Control how many historical lines are displayed (1-500 bars).
User Inputs
• Timeframe:
Select the OHLC timeframe (e.g., "D" for daily).
• # Past Lines:
Limit historical lines to avoid overcrowding (default: 10).
• H/L Mode:
Draw high/low lines from the current or previous period.
• O/C Mode:
Anchor open/close lines to today’s open or yesterday’s close.
• Line Styles:
Customize colors, transparency, and styles (solid/dotted/dashed).
• Candle Display:
Toggle boxes/wicks and adjust bull/bear colors.
Important Notes
⚠️ Alignment:
• Monthly/weekly timeframes use fixed approximations (30d/7d).
• For accuracy, ensure your chart’s timeframe ≤ the selected OHLC timeframe (e.g., use 1H chart for daily lines).
⚠️ Performance:
• Reduce # Past Lines on low-end devices for smoother performance.
Risk Disclaimer
Trading involves risk. OHLC lines reflect historical price levels and do not predict future behavior. Use with other tools and risk management.
Open-Source Notice
This script is open-source under the Mozilla Public License 2.0. Modify or improve it freely, but republishing must follow TradingView’s House Rules.
📈 Happy trading!
Arbitrage Synthetic Spread Chart v2Powerful tool for analyzing market divergences and identifying arbitrage opportunities! It creates a synthetic spread chart between two assets, displaying it in a clear format and helping traders spot moments of maximum decorrelation.
How does it work?
The indicator takes the closing prices of two assets and calculates their difference (spread):
spread = price1 - price2
Then, it constructs a price channel based on the highest and lowest values of the spread over a given period:
-Upper boundary: The highest spread value over the period
- Lower boundary: The lowest spread value over the period
- Middle line: The average of the upper and lower boundaries
Additionally, the indicator calculates the **correlation** between the two assets, helping traders assess their relationship strength.
How to use it?
When the spread reaches the channel boundaries, it may indicate an abnormal divergence between the assets. This serves as a signal for arbitrage trading:
✅ At the upper boundary: Sell Asset 1 and buy Asset 2
✅ At the lower boundary: Buy Asset 1 and sell Asset 2
XAUUSD Correlation IndicatorXAUUSD Correlation Indicator
Questo indicatore per TradingView calcola e visualizza la correlazione tra il prezzo di XAUUSD (oro) e una serie di altri asset finanziari, tra cui valute (EURUSD, AUDUSD, NZDUSD, GBPUSD), metalli preziosi (platino, argento), indici azionari (SPX500, DJI, NASDAQ) e il dollaro statunitense (DXY).
L'indicatore offre:
1. Correlazione: Calcola la correlazione tra XAUUSD e gli altri asset su un periodo personalizzabile, dove un numero superiore allo 0 indica una correlazione positiva ed un numero inferiore allo 0 indica una correlazione negativa.
2. Variazione percentuale: Mostra la variazione percentuale dei prezzi degli asset rispetto all'apertura.
3. Visualizzazione personalizzabile: Permette di ordinare i dati in base alla correlazione o alla variazione percentuale.
4. Tabella interattiva: I risultati sono visualizzati in una tabella colorata, con opzioni per personalizzare i colori di sfondo, testo e bordi.
Ideale per trader e analisti che vogliono monitorare le relazioni tra l'oro e altri mercati in tempo reale, questo strumento aiuta a identificare opportunità di trading basate su correlazioni e tendenze di mercato.
[#ps #mft] RDT's Real Relative StrengthIndicator to use with Pine Screener for filtering watchlists with RDT's Real Relative Strength.
See r/realdaytrading for more info on the RRS.
How to:
1. Mark the indicator as "Favorite".
2. Open Pine Screener.
3. Choose a watchlist.
4. Choose this indicator.
5. Change the settings as needed.
6. Make sure you set timeframe to "5 minutes" and not the default "1 day".
If you choose "Bullish trend", then "Signal X" is a shortcut for RRS > 0 for that timeframe. Similarly "Bearish trend" for "Signal X" means RRS < 0.
Pro-tip #1: use Symbol syncing between tabs to easily go over the results.
Pro-tip #2: you can have two tabs open for "Bullish" and "Bearish" pine screeners (even synced to the same color), so you don't have to change settings everytime.
Multi-Timeframe MACD Strategy ver 1.0Multi-Timeframe MACD Strategy: Enhanced Trend Trading with Customizable Entry and Trailing Stop
This strategy utilizes the Moving Average Convergence Divergence (MACD) indicator across multiple timeframes to identify strong trends, generate precise entry and exit signals, and manage risk with an optional trailing stop loss. By combining the insights of both the current chart's timeframe and a user-defined higher timeframe, this strategy aims to improve trade accuracy, reduce exposure to false signals, and capture larger market moves.
Key Features:
Dual Timeframe Analysis: Calculates and analyzes the MACD on both the current chart's timeframe and a user-selected higher timeframe (e.g., Daily MACD on a 1-hour chart). This provides a broader market context, helping to confirm trends and filter out short-term noise.
Configurable MACD: Fine-tune the MACD calculation with adjustable Fast Length, Slow Length, and Signal Length parameters. Optimize the indicator's sensitivity to match your trading style and the volatility of the asset.
Flexible Entry Options: Choose between three distinct entry types:
Crossover: Enters trades when the MACD line crosses above (long) or below (short) the Signal line.
Zero Cross: Enters trades when the MACD line crosses above (long) or below (short) the zero line.
Both: Combines both Crossover and Zero Cross signals, providing more potential entry opportunities.
Independent Timeframe Control: Display and trade based on the current timeframe MACD, the higher timeframe MACD, or both. This allows you to focus on the information most relevant to your analysis.
Optional Trailing Stop Loss: Implements a configurable trailing stop loss to protect profits and limit potential losses. The trailing stop is adjusted dynamically as the price moves in your favor, based on a user-defined percentage.
No Repainting: Employs lookahead=barmerge.lookahead_off in the request.security() function to prevent data leakage and ensure accurate backtesting and real-time signals.
Clear Visual Signals (Optional): Includes optional plotting of the MACD and Signal lines for both timeframes, with distinct colors for easy visual identification. These plots are for visual confirmation and are not required for the strategy's logic.
Suitable for Various Trading Styles: Adaptable to swing trading, day trading, and trend-following strategies across diverse markets (stocks, forex, cryptocurrencies, etc.).
Fully Customizable: All parameters are adjustable, including timeframes, MACD Settings, Entry signal type and trailing stop settings.
How it Works:
MACD Calculation: The strategy calculates the MACD (using the standard formula) for both the current chart's timeframe and the specified higher timeframe.
Trend Identification: The relationship between the MACD line, Signal line, and zero line is used to determine the current trend for each timeframe.
Entry Signals: Buy/sell signals are generated based on the selected "Entry Type":
Crossover: A long signal is generated when the MACD line crosses above the Signal line, and both timeframes are in agreement (if both are enabled). A short signal is generated when the MACD line crosses below the Signal line, and both timeframes are in agreement.
Zero Cross: A long signal is generated when the MACD line crosses above the zero line, and both timeframes agree. A short signal is generated when the MACD line crosses below the zero line and both timeframes agree.
Both: Combines Crossover and Zero Cross signals.
Trailing Stop Loss (Optional): If enabled, a trailing stop loss is set at a specified percentage below (for long positions) or above (for short positions) the entry price. The stop-loss is automatically adjusted as the price moves favorably.
Exit Signals:
Without Trailing Stop: Positions are closed when the MACD signals reverse according to the selected "Entry Type" (e.g., a long position is closed when the MACD line crosses below the Signal line if using "Crossover" entries).
With Trailing Stop: Positions are closed if the price hits the trailing stop loss.
Backtesting and Optimization: The strategy automatically backtests on the chart's historical data, allowing you to assess its performance and optimize parameters for different assets and timeframes.
Example Use Cases:
Confirming Trend Strength: A trader on a 1-hour chart sees a bullish MACD crossover on the current timeframe. They check the MTF MACD strategy and see that the Daily MACD is also bullish, confirming the strength of the uptrend.
Filtering Noise: A trader using a 15-minute chart wants to avoid false signals from short-term volatility. They use the strategy with a 4-hour higher timeframe to filter out noise and only trade in the direction of the dominant trend.
Dynamic Risk Management: A trader enters a long position and enables the trailing stop loss. As the price rises, the trailing stop is automatically adjusted upwards, protecting profits. The trade is exited either when the MACD reverses or when the price hits the trailing stop.
Disclaimer:
The MACD is a lagging indicator and can produce false signals, especially in ranging markets. This strategy is for educational and informational purposes only and should not be considered financial advice. Backtest and optimize the strategy thoroughly, combine it with other technical analysis tools, and always implement sound risk management practices before using it with real capital. Past performance is not indicative of future results. Conduct your own due diligence and consider your risk tolerance before making any trading decisions.
Quantum Moving Average - QMA (TechnoBlooms)The Quantum Moving Average (QMA) is an innovative and advanced Moving Average model designed for traders seeking a more adaptive and precise trend analysis. Unlike traditional moving averages, it integrates a multi-timeframe approach, dynamically selecting and weighting four different timeframes to provide traders with more accurate and reliable trend prediction.
Key Features
Multi-Timeframe averaging
QMA calculates its value based on four different timeframes, offering a broader perspective on market trends.
Dynamic Weighting Mechanism
Unlike fixed weight Moving Averages, QMA assigns adaptive weightage to the selected timeframes, enhancing its responsiveness.
Superior Trend Detection
Provides a smoother and more reliable trend curve reducing noise or false signals.
Enhanced Market Analysis
QMA helps traders identify trend shifts earlier by incorporating multi-timeframe confluence.
Multi-Timeframe Parabolic SAR Strategy ver 1.0Multi-Timeframe Parabolic SAR Strategy (MTF PSAR) - Enhanced Trend Trading
This strategy leverages the power of the Parabolic SAR (Stop and Reverse) indicator across multiple timeframes to provide robust trend identification, precise entry/exit signals, and dynamic trailing stop management. By combining the insights of both the current chart's timeframe and a user-defined higher timeframe, this strategy aims to improve trading accuracy, reduce risk, and capture more significant market moves.
Key Features:
Dual Timeframe Analysis: Simultaneously analyzes the Parabolic SAR on the current chart and a higher timeframe (e.g., Daily PSAR on a 1-hour chart). This allows you to align your trades with the dominant trend and filter out noise from lower timeframes.
Configurable PSAR: Fine-tune the PSAR calculation with adjustable Start, Increment, and Maximum values to optimize sensitivity for your trading style and the asset's volatility.
Independent Timeframe Control: Choose to display and trade based on either or both the current timeframe PSAR and the higher timeframe PSAR. Focus on the most relevant information for your analysis.
Clear Visual Signals: Distinct colors for the current and higher timeframe PSAR dots provide a clear visual representation of potential entry and exit points.
Multiple Entry Strategies: The strategy offers flexible entry conditions, allowing you to trade based on:
Confirmation: Both current and higher timeframe PSAR signals agree and the current timeframe PSAR has just flipped direction. (Most conservative)
Current Timeframe Only: Trades based solely on the current timeframe PSAR, ideal for when the higher timeframe is less relevant or disabled.
Higher Timeframe Only: Trades based solely on the higher timeframe PSAR.
Dynamic Trailing Stop (PSAR-Based): Implements a trailing stop-loss based on the current timeframe's Parabolic SAR. This helps protect profits by automatically adjusting the stop-loss as the price moves in your favor. Exits are triggered when either the current or HTF PSAR flips.
No Repainting: Uses lookahead=barmerge.lookahead_off in the security() function to ensure that the higher timeframe data is accessed without any data leakage, preventing repainting issues.
Fully Configurable: All parameters (PSAR settings, higher timeframe, visibility, colors) are adjustable through the strategy's settings panel, allowing for extensive customization and optimization.
Suitable for Various Trading Styles: Applicable to swing trading, day trading, and trend-following strategies across various markets (stocks, forex, cryptocurrencies, etc.).
How it Works:
PSAR Calculation: The strategy calculates the standard Parabolic SAR for both the current chart's timeframe and the selected higher timeframe.
Trend Identification: The direction of the PSAR (dots below price = uptrend, dots above price = downtrend) determines the current trend for each timeframe.
Entry Signals: The strategy generates buy/sell signals based on the chosen entry strategy (Confirmation, Current Timeframe Only, or Higher Timeframe Only). The Confirmation strategy offers the highest probability signals by requiring agreement between both timeframes.
Trailing Stop Exit: Once a position is entered, the strategy uses the current timeframe PSAR as a dynamic trailing stop. The stop-loss is automatically adjusted as the PSAR dots move, helping to lock in profits and limit losses. The strategy exits when either the Current or HTF PSAR changes direction.
Backtesting and Optimization: The strategy automatically backtests on the chart's historical data, allowing you to evaluate its performance and optimize the settings for different assets and timeframes.
Example Use Cases:
Trend Confirmation: A trader on a 1-hour chart observes a bullish PSAR flip on the current timeframe. They check the MTF PSAR strategy and see that the Daily PSAR is also bullish, confirming the strength of the uptrend and providing a high-probability long entry signal.
Filtering Noise: A trader on a 5-minute chart wants to avoid whipsaws caused by short-term price fluctuations. They use the strategy with a 1-hour higher timeframe to filter out noise and only trade in the direction of the dominant trend.
Dynamic Risk Management: A trader enters a long position and uses the current timeframe PSAR as a trailing stop. As the price rises, the PSAR dots move upwards, automatically raising the stop-loss and protecting profits. The trade is exited when the current (or HTF) PSAR flips to bearish.
Disclaimer:
The Parabolic SAR is a lagging indicator and can produce false signals, particularly in ranging or choppy markets. This strategy is intended for educational and informational purposes only and should not be considered financial advice. It is essential to backtest and optimize the strategy thoroughly, use it in conjunction with other technical analysis tools, and implement sound risk management practices before using it with real capital. Past performance is not indicative of future results. Always conduct your own due diligence and consider your risk tolerance before making any trading decisions.
Multi-Timeframe PSAR Indicator ver 1.0Enhance your trend analysis with the Multi-Timeframe Parabolic SAR (MTF PSAR) indicator! This powerful tool displays the Parabolic SAR (Stop and Reverse) from both the current chart's timeframe and a higher timeframe, all in one convenient view. Identify potential trend reversals and set dynamic trailing stops with greater confidence by understanding the broader market context.
Key Features:
Dual Timeframe Analysis: Simultaneously visualize the PSAR on your current chart and a user-defined higher timeframe (e.g., see the Daily PSAR while trading on the 1-hour chart). This helps you align your trades with the dominant trend.
Customizable PSAR Settings: Fine-tune the PSAR calculation with adjustable Start, Increment, and Maximum values. Optimize the indicator's sensitivity to match your trading style and the volatility of the asset.
Independent Timeframe Control: Choose to display either or both the current timeframe PSAR and the higher timeframe PSAR. Focus on the information most relevant to your analysis.
Clear Visual Representation: Distinct colors for the current and higher timeframe PSAR dots make it easy to differentiate between the two. Quickly identify potential entry and exit points.
Configurable Colors You can easily change colors of Current and HTF PSAR.
Standard PSAR Logic: Uses the classic Parabolic SAR algorithm, providing a reliable and widely-understood trend-following indicator.
lookahead=barmerge.lookahead_off used in the security function, there is no data leak or repainting.
Benefits:
Improved Trend Identification: Spot potential trend changes earlier by observing divergences between the current and higher timeframe PSAR.
Enhanced Risk Management: Use the PSAR as a dynamic trailing stop-loss to protect profits and limit potential losses.
Greater Trading Confidence: Make more informed decisions by considering the broader market trend.
Reduced Chart Clutter: Avoid the need to switch between multiple charts to analyze different timeframes.
Versatile Application: Suitable for various trading styles (swing trading, day trading, trend following) and markets (stocks, forex, crypto, etc.).
How to Use:
Add to Chart: Add the "Multi-Timeframe PSAR" indicator to your TradingView chart.
Configure Settings:
PSAR Settings: Adjust the Start, Increment, and Maximum values to control the PSAR's sensitivity.
Multi-Timeframe Settings: Select the desired "Higher Timeframe PSAR" resolution (e.g., "D" for Daily). Enable or disable the display of the current and/or higher timeframe PSAR using the checkboxes.
Interpret Signals:
Current Timeframe PSAR: Dots below the price suggest an uptrend; dots above the price suggest a downtrend.
Higher Timeframe PSAR: Provides context for the overall trend. Agreement between the current and higher timeframe PSAR strengthens the trend signal. Divergences may indicate potential reversals.
Trade Management:
Use PSAR dots as dynamic trailing stop.
Example Use Cases:
Confirming Trend Strength: A trader on a 1-hour chart sees the 1-hour PSAR flip bullish (dots below the price). They check the MTF PSAR and see that the Daily PSAR is also bullish, confirming the strength of the uptrend.
Identifying Potential Reversals: A trader sees the current timeframe PSAR flip bearish, but the higher timeframe PSAR remains bullish. This divergence could signal a potential pullback within a larger uptrend, or a warning of a more significant reversal.
Trailing Stops: A trader enters a long position and uses the current timeframe PSAR as a trailing stop, moving their stop-loss up as the PSAR dots rise.
Disclaimer: The Parabolic SAR is a lagging indicator and may produce false signals, especially in ranging markets. It is recommended to use this indicator in conjunction with other technical analysis tools and risk management strategies. Past performance is not indicative of future results.
MTF TTM Squeeze ProOverview
The MTF TTM Squeeze Pro indicator helps traders identify market compression (squeeze) conditions and analyze momentum across multiple timeframes. It is based on the TTM Squeeze concept, which uses Bollinger Bands and Keltner Channels to detect price consolidation periods that often precede strong breakouts.
This script enhances the standard TTM Squeeze by providing a multi-timeframe view, allowing traders to assess market conditions across intraday, daily, and weekly charts simultaneously.
⸻
How It Works
1. Squeeze Detection using Bollinger Bands & Keltner Channels
• High Compression Squeeze (Orange): Strongest squeeze, indicating extreme consolidation.
• Medium Compression Squeeze (Red): Moderate squeeze, potential breakout setup.
• Low Compression Squeeze (Black): Mild squeeze, possible momentum shift.
• No Squeeze (Green): Market is trending, no consolidation detected.
2. Momentum Analysis
The script features a custom linear regression momentum oscillator to gauge market direction:
• Positive rising momentum (Aqua) suggests bullish acceleration.
• Positive falling momentum (Blue) indicates slowing bullish momentum.
• Negative rising momentum (Red) signals bearish weakening.
• Negative falling momentum (Yellow) represents strengthening bearish momentum.
3. Multi-Timeframe Display
The indicator provides a table panel showing squeeze conditions and momentum colors for:
✅ 15m, 30m, 55m, 78m, 195m, Daily (D), and Weekly (W) timeframes.
This makes it easier to spot confluences across different periods, helping traders align their entries with larger trends.
⸻
How to Use
✔️ Look for a high compression squeeze (orange dots) as potential breakout zones.
✔️ Check if momentum colors are aligned across multiple timeframes to confirm direction.
✔️ Trade in the direction of momentum once the squeeze is released.
Best Used For:
📈 Swing Trading – Identify multi-day setups using the D/W squeeze signals.
📉 Intraday Trading – Use 15m-78m signals for faster entries and exits.
⸻
Credits & Open-Source Compliance
This script is inspired by the original TTM Squeeze Pro and based on open-source contributions from the TradingView community. Significant modifications include:
✔️ Improved multi-timeframe data request for momentum & squeeze.
✔️ Enhanced visual display with a compact and informative table panel.
✔️ Added detailed documentation for better usability.
📌 Original Source: TradingView Script by Beardy_Fred
⸻
Final Notes
✅ Open-source and free to use.
✅ Designed for stocks, forex, and crypto.
✅ Fully customizable squeeze & momentum settings.
Enjoy trading, and may the squeeze be with you! 🚀
SuperTrend Bar Counter - DolphinTradeBot
OVERVIEW
This indicator calculates the lengths of upward and downward trends based on the specified SuperTrend settings and timeframe. It then takes the average length of the entered number of swings and compares the current trend durations with these averages. The main goal is to anticipate potential reversals in advance.
HOW IS IT WORK ?
The indicator actually contains two different but conceptually similar metrics.
The first part; shows how long the Supertrend stays in an upward or downward trend in real time. Additionally, it analyzes how close the current value is to the average of the Supertrend bar count for the given input.
The second part; aims to provide a different perspective on general trend analysis. It calculates the average duration of upward and downward trends in bars based on the SuperTrend indicator settings within a specified period and timeframe. If, contrary to expectations, downward trends last longer than upward trends, the background is colored green, indicating a prediction that the trend will continue upward.
Explanation of the second part logic: As you know, moving averages or similar approaches that follow the price are often correct when looking back retrospectively, but they cannot serve as leading indicators in real-time trading.That's why, when performing trend analysis, I wanted to introduce a completely different perspective based on price movement, yet still grounded in price action itself.
This phenomenon is partly due to the nature of the SuperTrend itself. After strong price movements, SuperTrend tends to reverse direction much more quickly during pullbacks. Following a strong upward move, a downward trend is detected much earlier and tends to last longer. The indicator provides an alternative perspective by analyzing which directional movement occurs more rapidly and uses this insight for trend prediction.
HOW TO USE ?
It can be used to identify potential price reversals or to assess whether the price is generally cheap or expensive.
In the settings section, you can adjust the SuperTrend parameters and timeframes for the values displayed in the table.
In the second part, you can configure the values used for general trend analysis.
NOTE
Things to be aware of: As the chart's timeframe decreases, pulling data from higher timeframes becomes more difficult. For example, when the chart is set to a 5-minute timeframe, it may fail to retrieve swing periods from the daily timeframe. Similarly, on a 4-hour chart, when calculating the average swing, there might be enough data for only 5 periods instead of 20.
Please keep in mind that this indicator was created solely to provide an idea. It should only be considered as a perspective or a supporting tool that influences your decision by no more than 5% at most.
[GYTS-CE] Market Regime Detector🧊 Market Regime Detector (Community Edition)
🌸 Part of GoemonYae Trading System (GYTS) 🌸
🌸 --------- INTRODUCTION --------- 🌸
💮 What is the Market Regime Detector?
The Market Regime Detector is an advanced, consensus-based indicator that identifies the current market state to increase the probability of profitable trades. By distinguishing between trending (bullish or bearish) and cyclic (range-bound) market conditions, this detector helps you select appropriate tactics for different environments. Instead of forcing a single strategy across all market conditions, our detector allows you to adapt your approach based on real-time market behaviour.
💮 The Importance of Market Regimes
Markets constantly shift between different behavioural states or "regimes":
• Bullish trending markets - characterised by sustained upward price movement
• Bearish trending markets - characterised by sustained downward price movement
• Cyclic markets - characterised by range-bound, oscillating behaviour
Each regime requires fundamentally different trading approaches. Trend-following strategies excel in trending markets but fail in cyclic ones, while mean-reversion strategies shine in cyclic markets but underperform in trending conditions. Detecting these regimes is essential for successful trading, which is why we've developed the Market Regime Detector to accurately identify market states using complementary detection methods.
🌸 --------- KEY FEATURES --------- 🌸
💮 Consensus-Based Detection
Rather than relying on a single method, our detector employs two complementary detection methodologies that analyse different aspects of market behaviour:
• Dominant Cycle Average (DCA) - analyzes price movement relative to its lookback period, a proxy for the dominant cycle
• Volatility Channel - examines price behaviour within adaptive volatility bands
These diverse perspectives are synthesised into a robust consensus that minimises false signals while maintaining responsiveness to genuine regime changes.
💮 Dominant Cycle Framework
The Market Regime Detector uses the concept of dominant cycles to establish a reference framework. You can input the dominant cycle period that best represents the natural rhythm of your market, providing a stable foundation for regime detection across different timeframes.
💮 Intuitive Parameter System
We've distilled complex technical parameters into intuitive controls that traders can easily understand:
• Adaptability - how quickly the detector responds to changing market conditions
• Sensitivity - how readily the detector identifies transitions between regimes
• Consensus requirement - how much agreement is needed among detection methods
This approach makes the detector accessible to traders of all experience levels while preserving the power of the underlying algorithms.
💮 Visual Market Feedback
The detector provides clear visual feedback about the current market regime through:
• Colour-coded chart backgrounds (purple shades for bullish, pink for bearish, yellow for cyclic)
• Colour-coded price bars
• Strength indicators showing the degree of consensus
• Customizable colour schemes to match your preferences or trading system
💮 Integration in the GYTS suite
The Market Regime Detector is compatible with the GYTS Suite , i.e. it passes the regime into the 🎼 Order Orchestrator where you can set how to trade the trending and cyclic regime.
🌸 --------- CONFIGURATION SETTINGS --------- 🌸
💮 Adaptability
Controls how quickly the Market Regime detector adapts to changing market conditions. You can see it as a low-frequency, long-term change parameter:
Very Low: Very slow adaptation, most stable but may miss regime changes
Low: Slower adaptation, more stability but less responsiveness
Normal: Balanced between stability and responsiveness
High: Faster adaptation, more responsive but less stable
Very High: Very fast adaptation, highly responsive but may generate false signals
This setting affects lookback periods and filter parameters across all detection methods.
💮 Sensitivity
Controls how sensitive the detector is to market regime transitions. This acts as a high-frequency, short-term change parameter:
Very Low: Requires substantial evidence to identify a regime change
Low: Less sensitive, reduces false signals but may miss some transitions
Normal: Balanced sensitivity suitable for most markets
High: More sensitive, detects subtle regime changes but may have more noise
Very High: Very sensitive, detects minor fluctuations but may produce frequent changes
This setting affects thresholds for regime detection across all methods.
💮 Dominant Cycle Period
This parameter allows you to specify the market's natural rhythm in bars. This represents a complete market cycle (up and down movement). Finding the right value for your specific market and timeframe might require some experimentation, but it's a crucial parameter that helps the detector accurately identify regime changes. Most of the times the cycle is between 20 and 40 bars.
💮 Consensus Mode
Determines how the signals from both detection methods are combined to produce the final market regime:
• Any Method (OR) : Signals bullish/bearish if either method detects that regime. If methods conflict (one bullish, one bearish), the stronger signal wins. More sensitive, catches more regime changes but may produce more false signals.
• All Methods (AND) : Signals only when both methods agree on the regime. More conservative, reduces false signals but might miss some legitimate regime changes.
• Weighted Decision : Balances both methods with equal weighting. Provides a middle ground between sensitivity and stability.
Each mode also calculates a continuous regime strength value that's used for colour intensity in the 'unconstrained' display mode.
💮 Display Mode
Choose how to display the market regime colours:
• Unconstrained regime: Shows the regime strength as a continuous gradient. This provides more nuanced visualisation where the intensity of the colour indicates the strength of the trend.
• Consensus only: Shows only the final consensus regime with fixed colours based on the detected regime type.
The background and bar colours will change to indicate the current market regime:
• Purple shades: Bullish trending market (darker purple indicates stronger bullish trend)
• Pink shades: Bearish trending market (darker pink indicates stronger bearish trend)
• Yellow: Cyclic (range-bound) market
💮 Custom Colour Options
The Market Regime Detector allows you to customize the colour scheme to match your personal preferences or to coordinate with other indicators:
• Use custom colours: Toggle to enable your own colour choices instead of the default scheme
• Transparency: Adjust the transparency level of all regime colours
• Bullish colours: Define custom colours for strong, medium, weak, and very weak bullish trends
• Bearish colours: Define custom colours for strong, medium, weak, and very weak bearish trends
• Cyclic colour: Define a custom colour for cyclic (range-bound) market conditions
🌸 --------- DETECTION METHODS --------- 🌸
💮 Dominant Cycle Average (DCA)
The Dominant Cycle Average method forms a key part of our detection system:
1. Theoretical Foundation :
The DCA method builds on cycle analysis and the observation that in trending markets, price consistently remains on one side of a moving average calculated using the dominant cycle period. In contrast, during cyclic markets, price oscillates around this average.
2. Calculation Process :
• We calculate a Simple Moving Average (SMA) using the specified lookback period - a proxy for the dominant cycle period
• We then analyse the proportion of time that price spends above or below this SMA over a lookback window. The theory is that the price should cross the SMA each half cycle, assuming that the dominant cycle period is correct and price follows a sinusoid.
• This lookback window is adaptive, scaling with the dominant cycle period (controlled by the Adaptability setting)
• The different values are standardised and normalised to possess more resolving power and to be more robust to noise.
3. Regime Classification :
• When the normalised proportion exceeds a positive threshold (determined by Sensitivity setting), the market is classified as bullish trending
• When it falls below a negative threshold, the market is classified as bearish trending
• When the proportion remains between these thresholds, the market is classified as cyclic
💮 Volatility Channel
The Volatility Channel method complements the DCA method by focusing on price movement relative to adaptive volatility bands:
1. Theoretical Foundation :
This method is based on the observation that trending markets tend to sustain movement outside of normal volatility ranges, while cyclic markets tend to remain contained within these ranges. By creating adaptive bands that adjust to current market volatility, we can detect when price behaviour indicates a trending or cyclic regime.
2. Calculation Process :
• We first calculate a smooth base channel center using a low pass filter, creating a noise-reduced centreline for price
• True Range (TR) is used to measure market volatility, which is then smoothed and scaled by the deviation factor (controlled by Sensitivity)
• Upper and lower bands are created by adding and subtracting this scaled volatility from the centreline
• Price is smoothed using an adaptive A2RMA filter, which has a very flat and stable behaviour, to reduce noise while preserving trend characteristics
• The position of this smoothed price relative to the bands is continuously monitored
3. Regime Classification :
• When smoothed price moves above the upper band, the market is classified as bullish trending
• When smoothed price moves below the lower band, the market is classified as bearish trending
• When price remains between the bands, the market is classified as cyclic
• The magnitude of price's excursion beyond the bands is used to determine trend strength
4. Adaptive Behaviour :
• The smoothing periods and deviation calculations automatically adjust based on the Adaptability setting
• The measured volatility is calculated over a period proportional to the dominant cycle, ensuring the detector works across different timeframes
• Both the center line and the bands adapt dynamically to changing market conditions, making the detector responsive yet stable
This method provides a unique perspective that complements the DCA approach, with the consensus mechanism synthesising insights from both methods.
🌸 --------- USAGE GUIDE --------- 🌸
💮 Starting with Default Settings
The default settings (Normal for Adaptability and Sensitivity, Weighted Decision for Consensus Mode) provide a balanced starting point suitable for most markets and timeframes. Begin by observing how these settings identify regimes in your preferred instruments.
💮 Finding the Optimal Dominant Cycle
The dominant cycle period is a critical parameter. Here are some approaches to finding an appropriate value:
• Start with typical values, usually something around 25 works well
• Visually identify the average distance between significant peaks and troughs
• Experiment with different values and observe which provides the most stable regime identification
• Consider using cycle-finding indicators to help identify the natural rhythm of your market
💮 Adjusting Parameters
• If you notice too many regime changes → Decrease Sensitivity or increase Consensus requirement
• If regime changes seem delayed → Increase Adaptability
• If a trending regime is not detected, the market is automatically assigned to be in a cyclic state
• If you want to see more nuanced regime transitions → Try the "unconstrained" display mode (note that this will not affect the output to other indicators)
💮 Trading Applications
Regime-Specific Strategies:
• Bullish Trending Regime - Use trend-following strategies, trail stops wider, focus on breakouts, consider holding positions longer, and emphasize buying dips
• Bearish Trending Regime - Consider shorts, tighter stops, focus on breakdown points, sell rallies, implement downside protection, and reduce position sizes
• Cyclic Regime - Apply mean-reversion strategies, trade range boundaries, apply oscillators, target definable support/resistance levels, and use profit-taking at extremes
Strategy Switching:
Create a set of rules for each market regime and switch between them based on the detector's signal. This approach can significantly improve performance compared to applying a single strategy across all market conditions.
GYTS Suite Integration:
• In the GYTS 🎼 Order Orchestrator, select the '🔗 STREAM-int 🧊 Market Regime' as the market regime source
• Note that the consensus output (i.e. not the "unconstrained" display) will be used in this stream
• Create different strategies for trending (bullish/bearish) and cyclic regimes. The GYTS 🎼 Order Orchestrator is specifically made for this.
• The output stream is actually very simple, and can possibly be used in indicators and strategies as well. It outputs 1 for bullish, -1 for bearish and 0 for cyclic regime.
🌸 --------- FINAL NOTES --------- 🌸
💮 Development Philosophy
The Market Regime Detector has been developed with several key principles in mind:
1. Robustness - The detection methods have been rigorously tested across diverse markets and timeframes to ensure reliable performance.
2. Adaptability - The detector automatically adjusts to changing market conditions, requiring minimal manual intervention.
3. Complementarity - Each detection method provides a unique perspective, with the collective consensus being more reliable than any individual method.
4. Intuitiveness - Complex technical parameters have been abstracted into easily understood controls.
💮 Ongoing Refinement
The Market Regime Detector is under continuous development. We regularly:
• Fine-tune parameters based on expanded market data
• Research and integrate new detection methodologies
• Optimise computational efficiency for real-time analysis
Your feedback and suggestions are very important in this ongoing refinement process!
Higher Timeframe Support/ResistanceMulti-Timeframe Support/Resistance Indicator
This TradingView indicator helps you monitor important support and resistance levels based on the previous candle’s high, low, and close from a higher timeframe. By default, it uses a daily timeframe, but you can adjust this to any timeframe you want.
Key Features:
- Previous Candle High (PCH) and Previous Candle Low (PCL):
These levels are plotted on your chart (if enabled) and can act as potential support and
resistance zones. You can toggle the visibility of these levels.
- Pivot, Resistance (R1), and Support (S1):
The script calculates Pivot, R1 (Resistance), and S1 (Support) levels based on the previous
candle's price action from the selected higher timeframe.
These levels are displayed on your chart and can be used to identify potential breakout or
reversal points.
- Alert Feature:
Alerts are triggered when the price approaches any of these key levels (PCH, PCL, Pivot, R1,
or S1) within a specified threshold (e.g., 0.5%).
This helps traders react quickly to potential price movements near critical levels.
- Visual Representation:
The script visually fills the areas between Pivot and R1 (Resistance-Pivot Zone) and Pivot and
S1 (Support-Pivot Zone) with color for easy identification of key price zones.
Shadow Edge (Example)This script tracks hourly price extremes (highs/lows) and their equilibrium (midpoint), plotting them as dynamic reference lines on your chart. It helps visualize intraday support/resistance levels and potential price boundaries.
Key Features
Previous Hour Levels (Static Lines):
PH (Previous Hour High): Red line.
PL (Previous Hour Low): Green line.
P.EQ (Previous Hour Equilibrium): Blue midpoint between PH and PL.
Current Hour Levels (Dynamic/Dotted Lines):
MuEH (Current Hour High): Yellow dashed line (updates in real-time).
MuEL (Current Hour Low): Orange dashed line (updates in real-time).
Labels: Clear text labels on the right edge of the chart for easy readability.
How It Works
Hourly Tracking:
Detects new hours using the hour(time) function.
Resets high/low values at the start of each hour.
Stores the previous hour’s PH, PL, and P.EQ when a new hour begins.
Dynamic Updates:
Continuously updates MuEH and MuEL during the current hour to reflect the latest extremes.
Customization
Toggle visibility of lines via inputs:
Enable/disable PH, PL, P.EQ, MuEH, MuEL individually.
Adjustable colors and line styles (solid for previous hour, dashed for current hour).
Use Case
Intraday Traders: Identify hourly ranges, breakout/retracement opportunities, or mean-reversion setups.
Visual Reference: Quickly see where price is relative to recent hourly activity.
Technical Notes
Overlay: Plots directly on the price chart.
Efficiency: Uses var variables to preserve values between bars.
Labels: Only appear on the latest bar to avoid clutter.
This tool simplifies intraday price action analysis by combining historical and real-time hourly data into a single visual framework.
HTF Vertical LinesShow selected high time frame divider in your current time frame.
Not a magic, just a helper script myself use, if any suggestion/feature you want to add(but I won't promise I will add), don't hesitate to message me.
Daily Time MarkerThis TradingView indicator draws thin, white, dashed vertical lines on the chart at a user-defined time each day. The indicator takes into account Daylight Saving Time (DST) adjustments, ensuring the correct time is displayed throughout the year.
Key Features:
✅ Daily Vertical Markers:
Displays vertical dashed lines from Monday to Friday at the selected time.
The lines extend infinitely in both directions.
✅ Historical & Future Projection:
Shows lines 15 days into the past and 5 days into the future for better visualization of key time levels.
✅ DST Adjustment:
Automatically adjusts between summer and winter time , ensuring the correct hour is displayed.
This indicator is useful for traders who rely on specific time-based events, such as market opens or key trading sessions.
Revised Combo Script with DivergencesRevised Combo Script with Divergences (v5)
This comprehensive TradingView indicator combines multiple technical analysis tools to provide traders with a robust framework for identifying potential buy and sell signals. The script integrates several popular indicators and patterns, including RSI, Stochastic, EMA, Keltner Channels, and candlestick patterns, to enhance decision-making in trading.
Key Features:
RSI Analysis:
Configurable RSI length and overbought/oversold levels.
Visual bands for overbought and oversold conditions.
Divergence detection to identify potential trend reversals.
Stochastic Oscillator:
Customizable %K and %D periods with smoothing options.
Helps identify overbought and oversold conditions in the market.
Exponential Moving Averages (EMA):
Fast and slow EMAs to determine trend direction.
Configurable lengths and offsets for precise tuning.
Keltner Channels:
Dynamic volatility-based channels using true range or range options.
Helps identify potential breakout and reversal points.
Envelope Indicator:
Configurable length and percentage for upper and lower bands.
Option to use EMA or SMA for the basis calculation.
Candlestick Patterns:
Detection of key patterns such as Engulfing, Hammer, Shooting Star, and Doji.
Visual markers for easy identification on the chart.
Trade Signals:
Generates buy and sell signals based on a combination of indicator conditions.
Background color changes to indicate bullish or bearish signals.
Alerts:
Configurable alerts for buy and sell signals, as well as bullish and bearish divergences.
This script is designed for traders who want a comprehensive tool to analyze market conditions and make informed trading decisions. By combining multiple indicators and patterns, it provides a holistic view of the market, helping traders identify potential entry and exit points with greater confidence.
Note: This script is intended for educational purposes and should be used in conjunction with other analysis methods. Always perform your own research and consider risk management strategies before making trading decisions.
Market Crashes & Recessions (1907-Present)Included Recession Periods:
Panic of 1907 (1907–1908)
Post-WWI Recession (1918–1919)
Great Depression (1929–1933)
1937–1938 Recession
1953, 1957, & 1973 Oil Crises Recessions
Early 1980s Recession (1980–1982)
Early 1990s Recession (1990–1991)
Dot-com Bubble (2000–2002)
Global Financial Crisis (2007–2009)
COVID-19 Recession (2020)
2022 Market Correction
52W CP/H & H/L with percentage % differences52 Week High/Low Indicator with percentage difference between High/Low & High/Current Price
A simple indicator that can be used on any timeframe to display the 52 week High/Low values along with percentage differences (rounded) between High/Low & High/Current Price to get an idea of the strength in the instruments current price to it's 52 week journey.
Features
* Works on any timeframe.
* Simple horizontal lines showing only the current 52 week values.
* Allows the user to select whether to calculate the 52-week values from candle close values or the respective highs/lows.
* Allows users to toggle percentages label on/off
This script is open source for users to refine as per their needs. Additionally I would appreciate any constructive feedback. Thank you
VWAP Balance Zones - SessionsVWAP Balance Zones Sessions Version is an alternate take on the Original VWAP Balance Zones indicator. The Sessions version allows users to select a specific session to view the VWAP Balance Zones at while still utilizing the full ETH Data.
The Session version provides a better focused display while still maintaining the core functions of the original script with mindful optimizations.
Author's Note: "VBZ Sessions was made with logistics in mind, for the users who only trade within certain times of the day. While it displays the same core concepts, it is not as "Raw" of a display as the Original. For this reason, some users may prefer the Original VWAP Balance Zones, which is why I have opted to release this alternate version instead of updating the original."
> What are VWAP Balance Zones?
"VWAP Balance Zones" is an original concept aimed at identifying the equilibrium area between market participants within the current trend by averaging the Daily Extremes and the Daily VWAP.
Refer to the illustration below for a better understanding of exactly how VWAP Balance Zones are formed:
These zones are displayed for the Daily, Weekly, and Monthly VWAPs, with the most interactive timeframe being the Daily.
> Features
1. The Session Version uses ETH data at all times, and does not solely rely on the chart's data to create the VWAPs or Zones.
This allows the user to focus on a specific trading session, while not losing out on the full VBZ Calculation, with the notable benefit of a cleaner display.
The Original VBZ starts drawing at the beginning of the chart's "Day", and would produce different results when using an RTH chart vs an ETH chart. Along with creating a bird's nest of unusable data at the beginning of the day.
2. Session Start and End lines are displayed for easier identification of the designated trading session.
3. The extreme "Close" Lines are no longer displayed to reduce noise and redundancy.
4. Additionally, the interior VWAP lines are no longer displayed. Ultimately, this was to reduce noise and focus the script on the 50% zones.
5. Weekly and Monthly Zones are now displayed due to the reduced noise!
6. As with the original, the weekly display will yield to the daily, and the monthly display will yield to the weekly.
In the screenshot below, you can observe this behavior.
Enjoy!