Crypto Money Flow TrackerAlerts now trigger automatically – no manual setup needed!
✔ Alerts will notify you when:
OI change (15m) is greater than or below the threshold
Price change (15m) is greater than or below the threshold
✔ Messages will display exact percentage changes in OI and price.
사이클
Similar Bars Pattern DetecterDescription:
The Similar Bars Pattern Detector is a professional Pine Script indicator designed for TradingView users who want to identify sequences of similar candlesticks in a row. Whether you're looking for bullish or bearish patterns, this tool helps you spot repeating formations based on customizable settings.
Features:
✅ Detects patterns of consecutive similar bars
✅ Works for both bullish and bearish trends
✅ Uses tick-based range filtering for precise detection
✅ Fully customizable: adjust number of candles, trend type, and range
✅ Highlights detected patterns directly on the chart
🔹 Ideal for traders who rely on pattern recognition to confirm trends and price movements.
🔹 Works across all markets and timeframes.
💡 How to Use:
1️⃣ Set the number of candles to detect a repeating pattern.
2️⃣ Choose bullish or bearish trend direction.
3️⃣ Adjust the tick range to fine-tune pattern similarity.
🚀 Enhance your trading analysis with this powerful pattern recognition tool!
Custom Time Alert with Vertical Line📌 Detailed Explanation of the Custom Time Alert with Vertical Line in Pine Script v5
This script is a time-based alert system designed for TradingView. It allows traders to set a specific hour and minute for alerts and provides visual indicators on the chart, including a marker when the alert triggers and a vertical line at the alert time.
🔹 Main Features
Custom Alert Time → Users can specify the exact hour and minute for an alert.
Time Zone Offset Support → Users can manually adjust their local UTC offset to ensure alerts trigger at the correct time.
Real-Time Alert Condition → When the market reaches the set time, an alert notification is triggered.
Chart Visualization → A red marker appears when the alert is activated, and a blue vertical line is drawn at the alert time.
Automated Calculation → The script adjusts the alert time based on the user’s time zone settings.
🛠️ How It Works
User Input for Alert Time
The script allows users to enter their desired alert hour (0-23) and minute (0-59).
This ensures the alert triggers at the exact specified time.
Time Zone Offset Handling
Users enter their UTC offset (e.g., New York is -5, Tokyo is +9).
This ensures alerts work correctly regardless of the user’s location.
Time Calculation
The script adjusts the TradingView time by adding the time zone offset in milliseconds.
This converts the UTC-based TradingView time into the user’s local time.
Checking for a Time Match
The script constantly checks if the current hour and minute match the user-defined alert time.
If they match, the script activates an alert.
Triggering Alerts
The script uses TradingView’s alertcondition() function to create an alert.
When the time matches, TradingView sends a notification (e.g., pop-up, sound, or mobile alert).
Chart Markers for Visual Alerts
A red marker is displayed on the chart when the alert triggers.
A blue vertical line is drawn at the exact alert time.
📌 Example Use Cases
📈 1. Forex Traders Monitoring Market Opens
A forex trader who trades the London session wants an alert when the market opens at 8:00 AM UTC.
The trader sets:
Alert Hour = 8
Alert Minute = 0
Time Zone Offset = 0 (for UTC)
When the market reaches 8:00 AM UTC, the script triggers an alert.
📈 2. Stock Market Open Alerts
A trader in New York (EST) wants an alert at 9:30 AM Eastern Time (New York Stock Exchange open).
New York’s UTC offset is -5.
The trader sets:
Alert Hour = 9
Alert Minute = 30
Time Zone Offset = -5
The script ensures the alert triggers at 9:30 AM EST.
📈 3. Crypto Trader Watching a Specific Time
A crypto trader wants an alert for a specific strategy at 3:00 PM in Tokyo (UTC+9).
Tokyo’s UTC offset is +9.
The trader sets:
Alert Hour = 15
Alert Minute = 0
Time Zone Offset = +9
The script ensures the alert triggers exactly at 3:00 PM Tokyo time.
AlphaSync | QuantEdgeB📢 Introducing AlphaSync by QuantEdgeB
🛠️ Overview
AlphaSync is a comprehensive medium-term market guidance system designed for major assets such as BTC, ETH, and SOL. This system helps traders determine the overall market direction by integrating three universal strategies (EvolveXSync, ApexSync, QBHV Sync) and a Hybrid strategy (HybridSync).
🚀 What Makes AlphaSync Unique?
✅ Multi-Strategy Fusion → A robust blend of technical, economic, on-chain, and volatility-driven insights.
✅ HybridSync Component (90% Non-Price Factors) → Incorporates macro and liquidity signals to balance pure price-based models.
✅ Structured Decision-Making → The Trend Confluence score aggregates all sub-strategies, providing a unified market signal.
__________________________________________________________________________________
✨ Key Features
🔹 HybridSync (Hybrid Model)
Utilizes on-chain, economic, liquidity, and volatility factors to provide a fundamental market risk outlook. Unlike technical models, it derives signals primarily from macroeconomic indicators, risk appetite gauges, and capital flows.
🔹 EvolveXSync, & ApexSync (Technical Strategies)
Both strategies are purely price-based, relying on volatility-adjusted trend models, adaptive moving averages, and statistical deviations to confirm bullish or bearish trends.
🔹 QBHV Sync (Momentum & Deviation-Based System)
A fusion of momentum-deviation and a volatility-driven trend confirmation model, designed to detect shifts in momentum while filtering out market noise.
🔹 Trend Confluence (Final Aggregated Signal)
A weighted combination of all four models, delivering a single, structured signal to eliminate conflicting indicators and refine decision-making.
__________________________________________________________________________________
📊 How It Works
1️⃣ HybridSync – Non-Price Market Structure Analysis
HybridSync is an economic and liquidity-based framework, integrating macro variables, credit spreads, volatility indices, capital flows, and on-chain dynamics to assess risk-on/risk-off conditions.
📌 Key Components:
✔ On-Chain Metrics → Tracks investor behavior, exchange flows, and market cap ratios.
✔ Liquidity Indicators → Monitors global money supply (M2), Federal Reserve balance sheet, credit markets, and capital flows.
✔ Volatility & Risk Metrics → Uses MOVE, VIX, VVIX ratios, and bond market stress indicators to identify risk sentiment shifts.
🔹 Why HybridSync?
• Price alone does not dictate the market; macro liquidity and risk factors are often leading indicators of price movement, especially when it comes to risk assets such as cryptocurrencies.
• Improves decision-making in uncertain market environments, particularly during high-volatility or trendless conditions.
2️⃣ EvolveXSync, & ApexSync – Trend-Following & Volatility Models
Both EvolveXSync, & ApexSync are technical strategies, independently designed to capture trend strength and volatility dynamics.
📌 Core Mechanisms:
✔ VIDYA-Based Trend Detection → Adaptive moving averages adjust dynamically to price swings.
✔ SD-Filtered EMA Models → Uses normalized standard deviation levels to confirm trend validity.
✔ ATR-Adjusted Breakout Filters → Prevents false signals by incorporating dynamic volatility assessments.
🔹 Why Two UniStrategies?
• EvolveXSync, & ApexSync have different calculation methods, providing diverse perspectives on trend confirmation.
• Ensures robustness by mitigating overfitting to a single price-based model.
3️⃣ QBHV Sync – Momentum Deviation & Trend Confirmation
This component blends Bollinger Momentum Deviation (BMD) with a percentile-based trend model to confirm trend shifts.
📌 Core Components:
✔ Bollinger Momentum Deviation → A normalized SMA-SD filter detects overbought/oversold conditions.
✔ Percentile-Based Trend Confirmation → Ensures trends align with long-term volatility structure.
✔ Adaptive Signal Filtering → Prevents unnecessary trade signals by refining thresholds dynamically.
🔹 Why QBHV Sync?
• Adds a statistical layer to trend assessment, preventing whipsaws in volatile conditions.
• Complements HybridSync by ensuring price movements align with broader market forces.
4️⃣ Trend Confluence – The Final Aggregated Signal
AlphaSync blends HybridSync, EvolveXSync, ApexSync, and QBHV Sync into one final output.
📌 How It’s Weighted ? Equal Weight to remove any bias and over-reliance on one input.
✔ HybridSync (Macro & On-Chain Factors) → 25% Weight
✔ UniStrat V1 (Pure Trend) → 25% Weight
✔ UniStrat V2 (Trend + ATR) → 25% Weight
✔ QBHV Sync (Momentum & Deviation) → 25% Weight
🔹 Why Merge These Into One System?
The core philosophy behind AlphaSync is to create a holistic, structured decision-making framework that eliminates the weaknesses of single-method trading approaches. Instead of relying solely on technical indicators, which can lag or fail in macro-driven markets, AlphaSync blends price-based trend signals with macroeconomic, liquidity, and risk-adjusted models.
This multi-layered approach ensures that the system:
✔ Adapts dynamically to different market environments.
✔ Eliminates conflicting signals by creating a structured confluence score.
✔ Prevents over-reliance on a single market model, improving robustness.
📌 Final Signal Interpretation:
✅ Long Signal → AlphaSync Score > Long Threshold
❌ Short Signal → AlphaSync Score < Short Threshold
__________________________________________________________________________________
👥 Who Should Use AlphaSync?
✅ Medium-Term Traders & Portfolio Managers → Ideal for traders who require macro-confirmed trend signals.
✅ Systematic & Quantitative Traders → Designed for algorithmic integration and structured decision-making.
✅ Long-Term Position Traders → Helps identify major trend shifts and capital rotation opportunities.
✅ Risk-Conscious Investors → Incorporates macro volatility assessments to minimize unnecessary risk exposure.
__________________________________________________________________________________
📊 Backtest Mode - Evaluating Historical Performance
AlphaSync includes a fully integrated backtest module, allowing traders to assess its historical performance metrics.
🔹 Backtest Metrics Displayed:
✔ Equity Max Drawdown → Measures historical peak loss.
✔ Profit Factor → Evaluates profitability vs. loss ratio.
✔ Sharpe & Sortino Ratios → Risk-adjusted return metrics.
✔ Total Trades & Win Rate → Performance across different market cycles.
✔ Half Kelly Criterion → Optimal position sizing based on historical returns.
📌 Disclaimer:Backtest results are based on past performance and do not guarantee future success. Always incorporate real-time validation and risk management in live trading.
🚀 Why This Matters?
✅ Strategy Validation → See how AlphaSync performs across various market conditions.
✅ Customizable Analysis → Adjust parameters and observe real-time backtest results.
✅ Risk Awareness → Understand potential drawdowns before deploying capital.
Behavior Across Crypto Majors:
BTC
ETH
SOL
📌 Disclaimer: Backtest results are based on historical data and past market behavior. Performance is not indicative of future results and should not be considered financial advice. Always conduct your own backtests and research before making any investment decisions. 🚀
__________________________________________________________________________________
📌 Customization & Default Settings
📌 AlphaSync Input Parameters & Default Values
🔹 Strategy Configuration
• Color Mode → "Strategy"
• Extra Plots → true
• Long/Cash Signal Label → false
• AlphaSync Dashboard → true
• Enable BackTest Table → false
• Enable Equity Curve → false
• Table Position → "Bottom Left"
• Start Date → '01 Jan 2018 00:00'
• AlphaSync Long Threshold → 0.00
• AlphaSync Short Threshold → 0.00
🔹 QBHV.Sync
• DEMA Source → close
• DEMA Length → 14
• Percentile Length → 35
• ATR Length → 14
• Long Multiplier (ATR Up) → 1.8
• Short Multiplier (ATR Down) → 2.5
• Momentum Length → 8
• Momentum Source → close
• Base Length (SMA Calculation) → 40
• Source for BMD → close
• Standard Deviation Length → 30
• SD Multiplier → 0.7
• Long Threshold → 72
• Short Threshold → 59
🔹 EvolveXSync Configuration
• VIDYA Loop Length → 2
• VIDYA Loop Hist Length → 5
• Vidya Loop Long Threshold → 40
• Vidya Loop Short Threshold → 10
• Dynamic EMA Length → 12
• Dynamic EMA SD Length → 30
• Dynamic EMA Upper SD Weight → 1.032
• Dynamic EMA Lower SD Weight → 1.02
• SD Median Length → 12
• Normalized Median Length → 20
• Median SD Length → 30
• Median Long SD Weight → 0.98
• Median Short SD Weight → 1.04
🔹ApexSync Configuration
• DEMA Length → 30
• DEMA ATR Length → 14
• DEMA ATR Multiplier → 1.0
• G-VIDYA Length → 9
• G-VIDYA Hist Length → 30
• VIDYA ATR Length → 14
• VIDYA ATR Multiplier → 1.7
• SD Kijun Length → 24
• Normalized Kijun Length → 50
• KIJUN SD Length → 32
• KIJUN Long SD Weight → 0.98
• KIJUN Short SD Weight → 1.02
🔹 Risk Mosaic (Macro & Liquidity Component)
• Risk Signal Smoothing Length (EMA) → 8
🚀 AlphaSync is fully customizable to match different market conditions and trading styles
🚀 By default, AlphaSync is optimized for structured, medium-term market guidance.
__________________________________________________________________________________
📌 Conclusion
AlphaSync redefines medium-term trend analysis by merging technical, fundamental, and quantitative models into one unified system. Unlike traditional strategies that rely solely on price action, AlphaSync incorporates macroeconomic and liquidity factors, ensuring a more holistic market view.
🔹 Key Takeaways:
1️⃣ Hybrid + Technical Fusion – Balances macro & price-based strategies for stronger decision-making.
2️⃣ Multi-Factor Trend Aggregation – Reduces false signals by merging independent methodologies.
3️⃣ Structured, Data-Driven Approach – Designed for quantitative trading and risk-aware portfolio allocation.
📌 Master the market with precision and confidence | QuantEdgeB
🔹 Disclaimer: Past performance is not indicative of future results. No trading strategy can guarantee success in financial markets.
🔹 Strategic Advice: Always backtest, optimize, and align parameters with your trading objectives and risk tolerance before live trading.
CCT Pi Cycle Top/BottomPi Cycle Top/bottom: The Ultimate Market Cycle Indicator
Introduction
The Pi Cycle Top/bottom Indicator is one of the most reliable tools for identifying Bitcoin market cycle peaks and bottoms. Its effectiveness lies in the strategic combination of moving averages that historically align with major market cycle reversals. Unlike traditional moving average crossovers, this indicator applies an advanced iterative approach to pinpoint price extremes with higher accuracy.
This version, built entirely with Pine Script™ v6, introduces unprecedented precision in detecting both the Pi Cycle Top and Pi Cycle Bottom, eliminating redundant labels, optimizing visual clarity, and ensuring the indicator adapts dynamically to evolving market conditions.
What is the Pi Cycle Theory?
The Pi Cycle Top and Pi Cycle Bottom were originally introduced based on a simple yet profound discovery: key moving average crossovers consistently align with macro market tops and bottoms.
Pi Cycle Top: The crossover of the 111-day Simple Moving Average (SMA) and the 350-day SMA multiplied by 2 has historically signaled market tops with astonishing accuracy.
Pi Cycle Bottom: The intersection of the 150-day Exponential Moving Average (EMA) and the 471-day SMA has repeatedly marked significant market bottoms.
While traditional moving average strategies often suffer from lag and false signals, the Pi Cycle Indicator enhances accuracy by applying a range-based scanning methodology, ensuring that only the most critical reversals are detected.
How This Indicator Works
Unlike basic moving average crossovers, this script introduces a unique iteration process to refine the detection of Pi Cycle points. Here’s how it works:
Detecting Crossovers:
Identifies the Golden Cross (bullish crossover) and Death Cross (bearish crossover) for both the Pi Cycle Top and Pi Cycle Bottom.
Iterating Through the Cycle:
Instead of plotting a simple crossover point, this script scans the range between each Golden and Death Cross to identify the absolute lowest price (Pi Cycle Bottom) and highest price (Pi Cycle Top) within that cycle.
Precision Labeling:
The indicator dynamically adjusts label positioning:
If the price at the crossover is below the fast moving average → the label is placed on the moving average with a downward pointer.
If the price is above the fast moving average → the label is placed below the candle with an upward pointer.
This ensures optimal visibility and prevents misleading signal placement.
Advanced Pine Script v6 Features:
Labels and moving average names are only shown on the last candle, reducing chart noise while maintaining clarity.
Offers full user customization, allowing traders to toggle:
Pi Cycle Top & Bottom visibility
Moving average labels
Crossover labels
Why This Indicator is Superior
This script is not just another moving average crossover tool—it is a market cycle tracker designed for long-term investors and analysts who seek:
✔ High-accuracy macro cycle identification
✔ Elimination of false signals using an iterative range-based scan
✔ Automatic detection of market extremes without manual adjustments
✔ Optimized visuals with smart label positioning
✔ First-of-its-kind implementation using Pine Script™ v6 capabilities
How to Use It?
Bull Market Tops:
When the Pi Cycle Top indicator flashes, consider the potential for a market cycle peak.
Historically, Bitcoin has corrected significantly after these signals.
Bear Market Bottoms:
When the Pi Cycle Bottom appears, it suggests a macro accumulation phase.
These signals have aligned perfectly with historical cycle bottoms.
Final Thoughts
The Pi Cycle Top/bottom Indicator is a must-have tool for traders, investors, and analysts looking to anticipate long-term trend reversals with precision. With its refined methodology, superior label positioning, and cutting-edge Pine Script™ v6 optimizations, this is the most reliable version ever created.
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.
Personal Time Zone: Days of WeekThis is probably the simplest indicator I have ever made.
It just gives you a the days of weeks in your specified time zone and puts the day on the first bar in your time zone.
You can use UTC time format or named time zones like the default.
Just for fun I tried to give it symbols that sort of relate the old gods that the days of week were named after and even colors that one could argue match, but it was all in fun because it was so simple I felt I had to add something.
Enjoy.
Elliptic bands
Why Elliptic?
Unlike traditional indicators (e.g., Bollinger Bands with constant standard deviation multiples), the elliptic model introduces a cyclical, non-linear variation in band width. This reflects the idea that price movements often follow rhythmic patterns, widening and narrowing in a predictable yet dynamic way, akin to natural market cycles.
Buy: When the price enters from below (green triangle).
Sell: When the price enters from above (red triangle).
Inputs
MA Length: 50 (This is the period for the central Simple Moving Average (SMA).)
Cycle Period: 50 (This is the elliptic cycle length.)
Volatility Multiplier: 2.0 (This value scales the band width.)
Mathematical Foundation
The indicator is based on the ellipse equation. The basic formula is:
Ellipse Equation:
(x^2) / (a^2) + (y^2) / (b^2) = 1
Solving for y:
y = b * sqrt(1 - (x^2) / (a^2))
Parameters Explained:
a: Set to 1 (normalized).
x: Varies from -1 to 1 over the period.
b: Calculated as:
ta.stdev(close, MA Length) * Volatility Multiplier
(This represents the standard deviation of the close prices over the MA period, scaled by the volatility multiplier.)
y (offset): Represents the band distance from the moving average, forming the elliptic cycle.
Behavior
Bands:
The bands are narrow at the cycle edges (when the offset is 0) and become widest at the midpoint (when the offset equals b).
Trend:
The central moving average (MA) shows the overall trend direction, while the bands adjust according to the volatility.
Signals:
Standard buy and sell signals are generated when the price interacts with the bands.
Practical Use
Trend Identification:
If the price is above the MA, it indicates an uptrend; if below, a downtrend.
Support and Resistance:
The elliptic bands act as dynamic support and resistance levels.
Narrowing bands may signal potential trend reversals.
Breakouts:
Bias TableOverview
The Bias Table Indicator is a multi-timeframe analysis tool designed to provide a quick sentiment overview across multiple timeframes. It combines signals from Moving Averages (MAs) and Oscillators to determine market bias, helping traders make more informed decisions.
Key Features
✔ Multi-Timeframe Analysis (MTF) – Displays market bias across up to five timeframes.
✔ Customizable Signals – Choose whether bias is based on Moving Averages (MAs), Oscillators, or a combination of both.
✔ Visual Table Format – The indicator presents the bias as a color-coded table in the bottom-right corner of the chart for quick reference.
✔ Adjustable Colors & Display Settings – Users can customize colors for different sentiment states (Strong Buy, Buy, Neutral, Sell, Strong Sell).
How It Works
Bias Calculation: The indicator evaluates market conditions using preset values (which can be replaced with actual logic) to determine sentiment for each timeframe.
Multi-Timeframe Support: The table can display bias from hourly to monthly timeframes, giving traders a broader view of market conditions.
Customizable Signals: Users can filter the table to show bias based only on MAs, Oscillators, or a combination of both.
Interpreting the Table
📊 Timeframes: The leftmost column shows selected timeframes (e.g., 1H, 4H, 1D, 1W, 1M).
📈 Signal Columns:
MAs – Bias based on Moving Averages.
Oscillators – Bias based on momentum indicators like RSI, Stochastics, etc.
All – A combined bias based on both MAs & Oscillators.
🚦 Color-Coded Ratings:
🔵 Strong Buy – High bullish strength.
🔹 Buy – Moderate bullish sentiment.
⚪ Neutral – No clear trend.
🔸 Sell – Moderate bearish sentiment.
🔴 Strong Sell – High bearish strength.
Best Used For:
📈 Trend Confirmation: Validate signals from your primary strategy.
⏳ Multi-Timeframe Analysis: See whether short-term and long-term trends align.
⚡ Quick Sentiment Check: Get a high-level view of market conditions without analyzing multiple indicators separately.
Customization Options:
Select which timeframes to include in the table.
Choose whether to base bias on MAs, Oscillators, or both.
Adjust colors for each signal type.
Bitcoin MVRV Z-Score Indicator### **What This Script Does (In Plain English)**
Imagine Bitcoin has a "fair price" based on what people *actually paid* for it (called the **Realized Value**). This script tells you if Bitcoin is currently **overpriced** or **underpriced** compared to that fair price, using math.
---
### **How It Works (Like a Car Dashboard)**
1. **The Speedometer (Z-Score Line)**
- The blue line (**Z-Score**) acts like a speedometer for Bitcoin’s price:
- **Above Red Line** → Bitcoin is "speeding" (overpriced).
- **Below Green Line** → Bitcoin is "parked" (underpriced).
2. **The Warning Lights (Colors)**
- **Red Background**: "Slow down!" – Bitcoin might be too expensive.
- **Green Background**: "Time to fuel up!" – Bitcoin might be a bargain.
3. **The Alarms (Alerts)**
- Your phone buzzes when:
- Green light turns on → "Buy opportunity!"
- Red light turns on → "Be careful – might be time to sell!"
---
### **Real-Life Example**
- **2021 Bitcoin Crash**:
- The red light turned on when Bitcoin hit $60,000+ (Z-Score >7).
- A few months later, Bitcoin crashed to $30,000.
- **2023 Rally**:
- The green light turned on when Bitcoin was around $20,000 (Z-Score <0.1).
- Bitcoin later rallied to $35,000.
---
### **How to Use It (3 Simple Steps)**
1. **Look at the Blue Line**:
- If it’s **rising toward the red zone**, Bitcoin is getting expensive.
- If it’s **falling toward the green zone**, Bitcoin is getting cheap.
2. **Check the Colors**:
- Trade carefully when the background is **red**.
- Look for buying chances when it’s **green**.
3. **Set Alerts**:
- Get notified when Bitcoin enters "cheap" or "expensive" zones.
---
### **Important Notes**
- **Not Magic**: This tool helps spot trends but isn’t perfect. Always combine it with other indicators.
- **Best for Bitcoin**: Works great for Bitcoin, not as well for altcoins.
- **Long-Term Focus**: Signals work best over months/years, not hours.
---
Think of it as a **thermometer for Bitcoin’s price fever** – it tells you when the market is "hot" or "cold." 🔥❄️
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.
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.