Supply & Demand Zones (by Wali Afridi)Description:
🚀 This indicator accurately detects Supply & Demand Zones by identifying swing highs and lows. It plots a single clean line for each zone and labels them as "SZ" (Supply Zone) and "DZ" (Demand Zone), ensuring a clear and minimalistic chart.
🔹 Features:
✅ Auto-detects recent Supply & Demand Zones
✅ Plots clean horizontal lines for the latest zones
✅ Displays "SZ" above the supply line & "DZ" below the demand line
✅ No duplicate labels—only one label per zone
✅ Minimal & clutter-free visualization
How to Use:
1️⃣ Add the indicator to your chart
2️⃣ Watch for Supply Zones (SZ) appearing above red lines – These indicate potential resistance areas where price may reverse or consolidate.
3️⃣ Watch for Demand Zones (DZ) appearing below green lines – These indicate strong support areas where price may bounce.
4️⃣ Use with other confirmations (Price Action, SMC, Volume) for better accuracy.
⚠️ Disclaimer:
This script is for educational purposes only and should not be considered financial advice. Always backtest and use risk management before applying it to live trading.
사이클
Price to Bar Ratio - Scale / Scales / ScalingPrice to Bar Ratio - Scaling
The Price to Bar Ratio - Scaling indicator for TradingView is designed for traders who utilize Gann-based techniques, Michael Jenkins methodologies, or geometric market analysis. It calculates the relationship between price movement and time (bars), providing a bar-to-price ratio that traders can use to align their charts with structured scaling methods.
Key Features:
• Geometry-Based Scaling – Designed for traders using market geometry, time/price balancing, or cycle analysis.
• Automatic Ratio Calculation – Computes a bar-to-price ratio based on price movement and time.
• Square & Rectangle Modes – Provides different scaling approaches to suit various analytical methods.
• Balanced Chart Structure – Helps maintain a proportional relationship between price and time.
• Customizable Inputs – Adjustable parameters for flexibility across different markets, assets, and timeframes.
How to Use:
1. Apply the Price to Bar Ratio - Scaling indicator to your TradingView chart.
2. Enable Magnet Mode in TradingView to help anchor points snap accurately to price levels.
3. Manually select your range using the four anchor points to define the area for calculation.
4. The indicator will generate a table displaying the calculated bar-to-price ratio.
5. Copy the recommended value from the table.
6. Open the chart settings in TradingView.
7. Locate the "Lock Price to Bar Ratio" input field.
8. Paste the copied ratio value into the input field and apply the changes.
9. Due to TradingView's limitations on the magnet option for anchor points, it is recommended to add a new instance of the indicator rather than dragging the anchor points to a new range. This prevents unwanted snapping behavior and ensures accurate recalculations.
Will be adding more formulas in the future.
Indicator in use:
HTF Anchored FanSimilar to an Anchored VWAP, this lets you click a bar on an Daily, Weekly, or Monthly chart to add an "Anchored Fan" which displays lines at up to 6 levels above and below the chosen Anchor Point. Useful to measure the retracement during swing moves.
You can reposition the fan by either hovering over the anchor or by clicking the name of the study to "activate" it, and then dragging. You can also change the Anchor Point in Settings.
By default the anchor uses the bar Close, but you can change this manually in settings OR you can use the fancy "Auto high/low" mode which is handy if you are mainly dropping the fan on local swing highs and lows.
The default line measures were chosen for ES (Futures) but the study should be usable with nearly anything as long as you adjust the settings to something appropriate for the ticker. If you want to use this on NQ, for example, it would be reasonable to multiple each of these settings by 3.5 or so.
NOTE: If the fan is way off the left side of the chart it's generally easiest to use Settings to move it back to close to "now".
CBA BLOCK CHARTING VERSION 1Script Summary
Purpose: The script—titled CBA BLOCK CHARTING VERSION 1—visually segments a price chart into “blocks” based on a fixed number of bars. Each block is analyzed to determine the maximum (high) and minimum (low) prices within that span, and these levels are marked with horizontal and vertical lines. Optionally, the script can also group multiple blocks into larger clusters to highlight broader market ranges.
Core Functionality:
Block Calculation:
Block Definition: A block is defined as a fixed number of consecutive bars (set by the user, e.g., 10 bars per block).
Block End Determination: The script checks when the current bar is the last of the block (using a modulo operation on the bar index).
Price Extremes: It calculates the block's high and low manually over the defined number of bars.
Drawing on the Chart:
Horizontal Lines:
Drawn at the block’s high and low levels.
If grouping is enabled, additional horizontal lines denote the high and low for a group of blocks.
Vertical Lines:
Drawn at the start and end of each block to visually bracket the block area.
For a grouped set of blocks, vertical lines mark the group’s boundaries.
Grouping Feature:
Optional Grouping: You can enable grouping to aggregate a preset number of blocks (e.g., 10 blocks per group) and compute group-wide high and low values.
Group Boundaries: Similar to individual blocks, the group’s price extremes are highlighted with horizontal and vertical lines.
Customization Options:
Input Parameters:
Bars per Block: Sets how many bars constitute one block.
Enable Grouping & Group Size: Toggle the grouping feature and set the number of blocks to include in a group.
Drawing Style Settings:
Vertical Line Style & Width: Choose between “solid,” “dotted,” or “dashed” styles and adjust the width.
Horizontal Line Widths: Separate settings for block and group horizontal lines.
Color Settings:
Customize the colors for lines representing block/group tops, bottoms, and vertical boundaries.
Performance Settings:
Cleanup Option: Automatically remove old drawing objects if they exceed a set maximum (e.g., 300 objects) to prevent performance issues.
Instructions of Use
Parameter Setup:
Define Block Size:
Set the number of bars that make up a block using the "Bars per Block" input.
Enable or Disable Grouping:
If you want to aggregate blocks into larger groups, toggle “Enable Grouping Blocks” and specify the “Blocks per Group.”
Configure Visual Style:
Choose your preferred vertical line style (solid, dotted, or dashed) and adjust both vertical and horizontal line widths.
Select Colors:
Customize individual colors for the high and low levels of blocks/groups as well as for the starting and ending vertical lines.
Performance Options:
Ensure that old drawing objects are cleared by keeping “Auto Clean Up Old Drawings” enabled and set an appropriate maximum limit.
Adding to Your TradingView Chart:
Copy and paste the script into your TradingView Pine Editor.
Save and add the indicator to your chart.
The script will automatically detect the end of each block and draw the corresponding horizontal and vertical lines. If grouping is activated, it will also highlight the group boundaries based on your defined inputs.
Interpreting the Visuals:
Block Lines:
Horizontal Lines: Represent the highest and lowest prices within each individual block.
Vertical Lines: Mark the starting and ending points of each block.
Group Lines (if enabled):
These lines summarize the overall price range for a group of blocks, providing a broader market perspective.
Additional Considerations
Flexibility: Adjusting the input settings lets you tailor the indicator to your trading style and the time frame you analyze.
Performance: The cleanup function is an essential feature for preventing chart clutter if many blocks or groups accumulate over time.
Customization: The script’s modular design means you can further tweak or expand it. For instance, you might add alerts based on block breakouts or combine it with other indicators for enhanced analysis.
Reversals & PullbacksReversals & Pullbacks:
This indicator tries to predict Price reversals and pullbacks.
It works best on the higher timeframes (H4 and D) and was written for currencies but also shows some decent results on Crypto.
Inputs:
- Confirmation: When activated, the indicator waits to print the bullish/bearish signal untill price shows a clear sign of reversal. When not activated, it only looks if it thinks a pullback or reversal is likely to happen without waiting for confirmation. There will be more (false) signals when disabled
- Sensitivity: When set to 0, there will be more (false) signals printed, and when highering this value there will be less signals. The default value is 5 but you can experiment which value works best on what instrument.
- Arrow Distance: can be used to place the arrows further away from price if needed.
M2SL/DXY RatioA custom financial ratio comparing:
Numerator: M2 Money Supply (M2SL)
U.S. monetary aggregate measuring cash, checking deposits, and easily convertible near money
Denominator: US Dollar Index (DXY)
Trade-weighted geometric mean of USD value against six major currencies
Pipnotic Asset Strength HistogramDescription
The Pipnotic Asset Strength Histogram (ASH) was originally developed to provide traders with a structured approach to identifying market cycles and momentum shifts. Due to increasing demand, it has been adapted for TradingView, ensuring traders can leverage its insights directly on their charts. This tool is particularly useful for spotting divergences, trend reversals, and price imbalances, making it an essential addition for traders who rely on momentum and strength-based analysis. We will continue to actively develop this indicator to enhance its functionality and accuracy.
How It Works
The ASH follows a systematic approach to analyse price movements and highlight key market dynamics:
Momentum & Cycle Analysis
Evaluates price movements using a dual-smoothing methodology.
Identifies shifts in momentum that indicate potential reversals or trend continuations.
Divergence Detection
Highlights instances where price action diverges from underlying momentum, signalling potential trading opportunities.
Helps confirm trade setups based on hidden and regular divergences.
Dynamic Visualization & Alerts
Plots a histogram to provide a clear visual representation of market strength.
Identifies buy and sell zones based on historical price deviations.
Updates dynamically, adapting to changing market conditions to maintain relevance.
Key Features & Inputs
Customizable Sensitivity: Traders can fine-tune cycle smoothing values to match different trading styles.
Clear Buy & Sell Zones: Highlights potential high-probability trading areas based on historical deviations.
Flexible Visualization: Adjustable histogram colours, line width, and mean deviation settings for optimal clarity.
Adaptability Across Markets: Works effectively on stocks, forex, crypto, and commodities.
Compatible with Various Trading Strategies: Can be used alongside trend-following, breakout, and reversal strategies for enhanced trade confirmation.
Benefits of Using the Pipnotic ASH Indicator
Market Timing: Helps traders identify optimal entry and exit points based on momentum shifts.
Reduces Subjectivity: Automates the detection of market strength and divergence, ensuring consistency.
Adapts to Market Conditions: Adjusts dynamically to price changes, ensuring relevant signals.
Saves Time & Effort: Eliminates the need for manual divergence analysis.
Works on All Timeframes: Suitable for scalping, swing trading, and long-term investing.
The Pipnotic Asset Strength Histogram is designed to streamline market analysis by providing clear, actionable insights into momentum shifts and divergences. Whether you're a day trader or a long-term investor, this tool helps refine your decision-making and enhance your trading strategy.
MSQN IndicatorThe MSQN indicator is a robust technical analysis tool designed to enhance your TradingView charts by combining momentum analysis with volatility assessment. At its core, the indicator calculates the rate of change (ROC) of the closing price over a defined period and then normalizes this value by the standard deviation of the daily price changes. This adjustment, scaled by the square root of the observation period, provides a volatility-adjusted measure of trend strength.
Using a period of 100 observations, MSQN categorizes market conditions into distinct strength levels—from Very Weak to Very Strong—and assigns each range a unique color. For instance, a reading in dark green signals strong upward momentum, while a dark red hue warns of significant downward pressure. This color-coded visual cue allows traders to quickly interpret market conditions at a glance, making it easier to identify potential trading opportunities or exits.
Moreover, the indicator incorporates a multi-bar confirmation mechanism to filter out market noise, ensuring that the signals you see are more reliable. By quantifying both trend direction and market volatility, MSQN provides a comprehensive overview that can help refine your entry and exit strategies. Integrating this indicator into your analysis toolkit could lead to more informed and confident trading decisions.
Percentage Retracement from HighPercentage Retracement Indicator
Description
The Percentage Retracement Indicator is a powerful analytical tool that visualizes price pullbacks from historical highs in percentage terms. Unlike traditional retracement tools that overlay on the price chart, this indicator displays the exact percentage drawdown in a dedicated pane below the chart, allowing for precise measurement of market corrections.
Key Features
Clear Visualization: Displays the current percentage retracement from a reference high in a separate pane, making it easy to gauge correction depth
Multiple Reference Points: Choose from ATH (All-Time High), Period High, Weekly High, Monthly High, Quarterly High, or Yearly High as your reference point
Color-Coded Levels: Intuitive color gradient from green (shallow pullbacks) to red and purple (deep corrections)
Customizable Thresholds: Set your own percentage levels for monitoring corrections (-5%, -10%, -20%, etc.)
Time-Based Labels: Clearly labeled percentage levels positioned along the timeline
Trading Applications
Identify Entry Points: Recognize historical pullback patterns to find optimal entry zones
Risk Management: Set stop-losses based on historical retracement behavior
Market Phases Analysis: Distinguish between healthy pullbacks and potential trend reversals
Comparative Analysis: Compare current drawdowns to historical corrections to gauge market sentiment
Volatility Assessment: Track the depth of pullbacks across different market regimes
Benefits
This indicator provides a clear, quantitative view of market corrections that isn't immediately obvious from price action alone. By transforming price movements into percentage terms, it creates an objective framework for analyzing pullbacks across different assets and timeframes.
Perfect for swing traders, position traders, and investors looking to add objective measures for market entry and exit during retracements.
Simple Sessions========== TLDR ==========
The "Simple Sessions" indicator plots vertical lines and labels at the open and close of the US (New York), Asia (Tokyo), and Europe (London), daily session. The existing session indicators I could find all changed the background color of the chart for the entire session or added extra information to the chart that cluttered up my view. This is meant to be a less noisy and easy to interpret indication that the session you trade has started or is ending.
========== Features ==========
- Show or hide vertical lines for session opens and closes
- Show or hide labels for session opens and closes
- Show or hide each session individually
- Show or hide just the session close indications
- Change the color used for each session open and close
- Change the labels text, size, and text color
========== Limitations ==========
The session start and end times are hard coded in for their time zones and can't be changed:
- US (New York) - 9:30 - 16:00
- Asia (Tokyo) - 9:00 - 15:00
- Europe (London) - 8:30 - 16:30
========== Use Cases ==========
- Easily see when each session started and ended without the chart being too noisy
- Make it easier to identify price action patterns and trade setups that may occur on the open of each session
=============================
If you'd like more features or options feel free to request them in the comments.
Inverted USDT DominanceInverted USDT Dominance Indicator
This simple yet powerful indicator plots the inverted USDT Dominance (USDT.D), making it visually intuitive to analyze market sentiment shifts. Typically, USDT dominance rises when investors seek stability, indicating a "risk-off" market environment. Conversely, it falls when investors pursue riskier assets like cryptocurrencies, signaling a "risk-on" environment.
Why invert the USDT Dominance chart?
By flipping USDT Dominance around the zero line, this indicator allows traders and investors to more clearly visualize its correlation and divergence with traditional market indicators like the 10-year Treasury yield (TNX), Bitcoin, or equity indices. A rising line on this inverted indicator intuitively indicates increasing market risk appetite, whereas a falling line highlights growing risk aversion.
Use cases:
Quickly visualize market sentiment (risk-on vs. risk-off).
Identify divergences and correlations between crypto markets and traditional financial instruments.
Enhance portfolio allocation decisions by clearly seeing sentiment changes.
[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!
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.
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.
Global M2 Money Supply (USD) GrowthThe Global M2 Growth indicator evaluates the total liquid money supply, including cash, checking deposits, and assets that can be easily converted to cash. It reflects changes in global liquidity by tracking year-on-year (YoY) changes in the Global M2 money supply rather than its absolute value. This approach highlights the velocity of liquidity expansion or contraction, offering a clearer understanding of its correlation with asset performance, such as Bitcoin.
How It Works
When the Global M2 money supply expands, it reflects an increase in available liquidity. This often leads to an influx of capital into higher-yielding and riskier assets like Bitcoin, equities, and commodities. Conversely, when M2 contracts, liquidity tightens, leading to declines in the values of these assets.
An essential insight is that Bitcoin's price is not immediately affected by changes in M2. Research shows a lag of approximately 56-60 days (around two months) between liquidity changes and Bitcoin's price movements. Shifting the liquidity data forward by this period improves the correlation between Global M2 and Bitcoin performance.
How to Use
Track Global M2 YoY Change: Focus on liquidity's yearly change to identify trends. Rapid increases in liquidity often signify favorable conditions for Bitcoin and other risk assets to rise, while contractions often predict price declines or consolidation phases.
Account for the Lag Effect: Incorporate the two-month lag into your analysis to predict Bitcoin's potential moves more accurately. For instance, a recent resurgence in liquidity growth could signal a Bitcoin rally within the next two months.
Use as a Macro Indicator: Monitor liquidity trends alongside other economic indicators and asset performance metrics to build a more comprehensive investment framework.
By tracking these dynamics, traders and investors can better anticipate Bitcoin's trajectory and make informed decisions.
Spread Rebalance SimulationThe Spread Rebalance Simulator is a tool designed to help visualize the effect of rebalancing on spread trading returns. Typically, TradingView charts are used to display spread charts, but this method assumes that the ratio remains unchanged on each bar. In real trading scenarios, the ratio constantly changes, and this indicator allows traders to see a more accurate representation of spread trading.
The next version will include support for input ratio and trading cost.
To use this simply select any chart (as a long pair) then fill the symbol name for the short pair. Then choose the rebalance period. The blue line will show you the equity of this pair combination.
Supertrend with RSI FilterThis indicator is an enhanced version of the classic Supertrend, incorporating an RSI (Relative Strength Index) filter to refine trend signals. Here is a detailed explanation of its functionality and key advantages over the traditional Supertrend.
1. Indicator Functionality
The indicator uses ATR (Average True Range) to calculate the Supertrend line, just like the classic version. However, it introduces an additional condition based on RSI to strengthen or weaken the Supertrend color based on market momentum.
2. Interpretation of Colors
The indicator displays the Supertrend line with dynamic colors based on trend direction and RSI strength:
- Uptrend (Supertrend in buy mode):
- Dark green (Teal): RSI above the defined threshold (default 50) → Strong bullish confirmation.
- Light gray: RSI below the threshold → Indicates a weaker uptrend or lack of confirmation.
- Downtrend (Supertrend in sell mode):
- Dark red: RSI below the threshold → Strong bearish confirmation.
- Light gray: RSI above the threshold → Indicates a weaker downtrend or lack of confirmation.
The opacity of the color dynamically adjusts based on how far RSI is from its threshold. The greater the difference, the more vivid the color, signaling a stronger trend.
3. Key Advantages Over the Classic Supertrend
- Filters out false signals: The RSI integration helps reduce false signals by only validating trends when RSI aligns with the Supertrend direction.
- Weakens uncertain signals: When RSI is close to its threshold, the color becomes more transparent, alerting traders to a less reliable trend.
- Classic mode available: The 'Use Classic Supertrend' option allows switching to a standard Supertrend display (fixed red/green) without the RSI effect.
4. Customizable Parameters
- ATR Length & ATR Factor: Define the sensitivity of the Supertrend.
- RSI Period & RSI Threshold: Allow refining the RSI filter based on market volatility.
- Classic mode: Enables/disables the RSI filtering to revert to the original Supertrend.
This indicator is especially valuable for traders looking to refine their trend signals based on market momentum measured by RSI.
This indicator is for informational purposes only and should not be considered financial advice. Trading involves risks, and past performance does not guarantee future results. Always conduct your own analysis before making any trading decisions.
Market Condition Detector By BCB ElevateMarket Condition Detector - Bullish, Bearish & Sideways Market Indicator
This indicator helps traders identify bullish, bearish, and sideways market conditions using the Average Directional Index (ADX). It calculates trend strength and direction to categorize the market into three phases:
✅ Bullish Market: ADX is above the threshold, and the positive directional index (+DI) is greater than the negative directional index (-DI).
❌ Bearish Market: ADX is above the threshold, and +DI is lower than -DI.
🔄 Sideways Market: ADX is below the threshold, indicating weak trend strength and potential consolidation.
Features:
🔹 Dynamic Market Classification - Automatically detects and updates market conditions.
🔹 Table Display - Clearly shows whether the market is bullish, bearish, or sideways in a user-friendly format.
🔹 Customizable Settings - Adjust ADX period and threshold to suit different trading strategies.
🔹 Works on All Markets - Use for Crypto, Forex, Stocks, Commodities, and Indices.
This tool is ideal for trend traders, swing traders, and breakout traders looking to optimize entries and exits.
📌 How to Use:
1️⃣ Apply it to any chart and timeframe.
2️⃣ Use the table to confirm market conditions before taking trades.
3️⃣ Combine with other indicators like moving averages, RSI, or volume analysis for better trade decisions.
Bitcoin Halving DatesBitcoin Halving Dates Indicator
This custom indicator automatically marks Bitcoin's key halving events by drawing vertical lines on your chart. It highlights the historical halving dates (2012, 2016, 2020) and includes an estimated date for the upcoming halving in 2024, making it easy to visualize significant supply events that can influence market trends.
Features:
Automated Markings: Displays vertical lines on the first bar of each halving day.
Customizable: Easily adjust halving dates and styling options to suit your analysis.
Built for Traders: Enhance your technical analysis by keeping track of pivotal market events.
Use this indicator to gain a visual edge by integrating critical Bitcoin halving events into your trading strategy. Happy Trading!
RSI, Volume, MACD, EMA ComboRSI + Volume + MACD + EMA Trading System
This script combines four powerful indicators—Relative Strength Index (RSI), Volume, Moving Average Convergence Divergence (MACD), and Exponential Moving Average (EMA)—to create a comprehensive trading strategy for better trend confirmation and trade entries.
How It Works
RSI (Relative Strength Index)
Helps identify overbought and oversold conditions.
Used to confirm momentum strength before taking a trade.
Volume
Confirms the strength of price movements.
Avoids false signals by ensuring there is sufficient trading activity.
MACD (Moving Average Convergence Divergence)
Confirms trend direction and momentum shifts.
Provides buy/sell signals through MACD line crossovers.
EMA (Exponential Moving Average)
Acts as a dynamic support and resistance level.
Helps filter out trades that go against the overall trend.
Trading Logic
Buy Signal:
RSI is above 50 (bullish momentum).
MACD shows a bullish crossover.
The price is above the EMA (trend confirmation).
Volume is increasing (strong participation).
Sell Signal:
RSI is below 50 (bearish momentum).
MACD shows a bearish crossover.
The price is below the EMA (downtrend confirmation).
Volume is increasing (intense selling pressure).
Backtesting & Risk Management
The strategy is optimized for scalping on the 1-minute timeframe (adjustable for other timeframes).
Default settings use realistic commission and slippage to simulate actual trading conditions.
A stop-loss and take-profit system is integrated to manage risk effectively.
This script is designed to help traders filter out false signals, improve trend confirmation, and increase trade accuracy by combining multiple indicators in a structured way.
The Investment Clock Orbital GraphThe Investment Clock Orbital Graph is an advanced visualization tool designed to help traders and investors track economic cycles using a dynamic scatter plot of GDP growth vs. CPI inflation rates.
This indicator is a fusion of two powerful TradingView indicators:
LuxAlgo ’s Relative Strength Scatter Plot – A robust scatter plot for tracking relative strength.
The Investment Clock Indicator – A cycle-based approach to market rotation. This indicator contains more information regarding The Investment Clock.
By combining these approaches, the Investment Clock Orbital Graph enables traders to visualize economic momentum and inflationary trends in a unique, orbital-style scatter plot.
Key Features & Improvements
Orbital Graph Representation – Displays GDP growth and CPI inflation as a dynamic, evolving scatter plot, showing how the economy moves through different phases.
Quadrant-Based Market Regimes – Identifies four key economic phases:
1)🔥 Overheating (High Growth, High Inflation)
2)📉 Stagflation (Low Growth, High Inflation)
3)🤒 Recovery (High Growth, Low Inflation)
4)🎈 Reflation (Low Growth, Low Inflation)
Data-Driven Analysis – Utilizes FRED (Federal Reserve Economic Data) for accurate real-world GDP & CPI data.
Trailing Path of Economic Evolution – Tracks historical economic cycles over time to show momentum and cyclical movements.
Customizable Parameters – Set sustainable GDP growth and inflation thresholds, adjust trail length, and fine-tune scatter plot resolution.
Auto-Labeled Quadrants & Revised Accurate Market Guidance – Each quadrant includes newly updated tooltips and annotations (like ETF suggestions) to help traders make informed decisions.
Live Macro Forecasting Tool – Helps traders anticipate future market conditions, rate hikes/cuts, and sector rotations.
How to Use for Trading Decisions
The Investment Clock Orbital Graph helps traders and macro investors by identifying market phases and providing insights into asset class performance during different economic conditions.
📌 Step 1: Identify the Current Quadrant
Locate the most recent point on the orbital graph to see if the economy is in Overheating, Stagflation, Recovery, or Reflation.
📌 Step 2: Forecast Market Trends
The trajectory of the points can predict upcoming economic shifts:
Overheating → Stagflation ➡️ Expect economic slowdowns, bearish stock markets.
Stagflation → Reflation ➡️ Interest rate cuts likely, bonds and defensive stocks perform well.
Reflation → Recovery ➡️ Risk-on rally, technology and cyclicals perform best.
Recovery → Overheating ➡️ Commodities surge, inflation rises, and central banks intervene.
📌 Step 3: Align Trading & Investing Strategies
🔥 Overheating – Favor commodities & energy (Oil, Industrial Stocks, Materials).
📉 Stagflation – Favor defensive assets (Cash, Utilities, Healthcare).
🤒 Recovery – Favor growth stocks (Technology, Consumer Discretionary).
🎈 Reflation – Favor bonds, value stocks, and financials.
📌 Step 4: Monitor Trends Over Time
The indicator visualizes economic movement over multiple months, allowing traders to confirm long-term trends vs. short-term noise.
The Investment Clock Orbital Graph is an essential macro trading tool, providing a real-time visualization of economic conditions. By tracking GDP growth vs. CPI inflation, traders and investors can align their portfolios with major macroeconomic shifts, predict sector rotations, and anticipate central bank policy changes.
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
Hosoda Time Cycles (Forward + Backward)Hosoda Time Cycles
Market Timing Projection Tool
The Hosoda Time Cycles indicator is inspired by the legendary Japanese trader Ichimoku Hosoda, who emphasized the power of time in forecasting market behavior. This tool visualizes forward and backward time cycles based on significant price pivots, enabling traders to anticipate potential trend shifts, consolidations, or continuations with high precision.
Key Features:
Forward & Backward Cycles: Projects future and past time intervals based on selected pivots to reveal cyclical patterns.
Manual & Auto Pivot Selection: Choose between automatic detection or manually selected swing highs/lows.
Cycle Ratios: Includes traditional Hosoda counts such as 9, 17, 26, 33, 42, and 65 — key numbers in Ichimoku time theory.
Multi-Timeframe Utility: Effective across intraday, swing, and long-term charts.
Minimalist Overlay: Clean design to avoid clutter while providing powerful cycle insights.
Customizable Visuals: Adjustable line styles, colors, and cycle projection lengths for clarity and personalization.
Ideal For:
Traders focused on time-based confluence, cycle forecasting, and market rhythm detection, especially those who blend price action with Japanese trading techniques.
SemiCircle Cycle Notation PivotsFor decades, traders have sought to decode the rhythm of the markets through cycle theory. From the groundbreaking work of HM Gartley in the 1930s to modern-day cycle trading tools on TradingView, the concept remains the same: markets move in repeating waves with larger cycles influencing smaller ones in a fractal-like structure, and understanding their timing gives traders an edge to better anticipate future price movements🔮.
Traditional cycle analysis has always been manual, requiring traders to painstakingly plot semicircles, diamonds, or sine waves to estimate pivot points and time reversals. Drawing tools like semicircle & sine wave projections exist on TradingView, but they lack automation—forcing traders to adjust cycle lengths by eye, often leading to inconsistencies.
This is where SemiCircle Cycle Notation Pivots indicator comes in. Semicircle cycle chart notation appears to have evolved as a practical visualization tool among cycle theorists rather than being pioneered by a single individual; some key influences include HM Gartley, WD Gann, JM Hurst, Walter Bressert, and RayTomes. Built upon LonesomeTheBlue's foundational ZigZag Waves indicator , this indicator takes cycle visualization to the next level by dynamically detecting price pivots and then automatically plotting semicircles based on real-time cycle length calculations & expected rhythm of price action over time.
Key Features:
Automated Cycle Detection: The indicator identifies pivot points based on your preference—highs, lows, or both—and plots semicircle waves that correspond to Hurst's cycle notation.
Customizable Cycle Lengths: Tailor the analysis to your trading strategy with adjustable cycle lengths, defaulting to 10, 20, and 40 bars, allowing for flexibility across various timeframes and assets.
Dynamic Wave Scaling: The semicircle waves adapt to different price structures, ensuring that the visualization remains proportional to the detected cycle lengths and aiding in the identification of potential reversal points.
Automated Cycle Detection: Dynamically identifies price pivot points and automatically adjusts offsets based on real-time cycle length calculations, ensuring precise semicircle wave alignment with market structure.
Color-Coded Cycle Tiers: Each cycle tier is distinctly color-coded, enabling quick differentiation and a clearer understanding of nested market cycles.