Daily Returns & STDWhat happened last time when xx increased by xx%? - Start collecting some stats!
You can choose the ticker and the timeframe you're interested in
In den Scripts nach "daily" suchen
RSI Oversold/UndersoldThe study script will place GREEN BUY arrows BELOW oversold conditions and RED SHORT arrows ABOVE overbought conditions. You can configure the period
Most RSI(14) indicators use a 14-period, I prefer a 5-period. The period, overbought and oversold periods are settings that can easily be changed by adding this study to your chart and clicking the "gear" icon next to the study inside your chart.
Daily SMAThis pine script on intraday chart is exactly the same SMA as built-in MovingAverage on a 1Day chart (with the same lengths)
Momentum Regime and Confluence EngineThe Momentum Regime and Confluence Engine is a momentum-based indicator designed to help traders understand trend context, alignment, and timing—without relying on price prediction or repainting logic.
Instead of telling you what to buy or sell, this tool answers three critical questions:
Which timeframe is in control?
Is short-term momentum aligned or counter-trend?
When is momentum likely to change?
🔹 Core Concept (Simple Explanation)
Markets move in cycles of momentum.
This indicator visualizes those cycles across Weekly and Daily timeframes and places them into a single, easy-to-read view.
Weekly momentum defines the broader market regime
Daily momentum shows shorter-term pressure inside that regime
Projection provides an early visual guide for potential momentum shifts
🟢🔴 Momentum Lines (%K / %D)
The indicator uses two smooth momentum lines:
Green line → rising momentum pressure
Red line → declining momentum pressure
These lines move between 0 and 100:
Near 0 → downside momentum is exhausted
Near 100 → upside momentum is exhausted
When green is above red, momentum is improving.
When red is above green, momentum is weakening.
🟥🟩 Weekly Context Background (Primary Trend)
The background color represents the Weekly momentum regime:
Green → Weekly bullish context
Red → Weekly bearish context
Gray → Neutral / transitional phase
Weekly context changes slowly by design and uses hysteresis logic, meaning it will not flip back and forth near a crossover. Momentum must prove itself before the regime changes.
This helps reduce false signals and whipsaws.
🟢🔴 Daily Context Overlay (Timing Layer)
A lighter background overlay shows Daily momentum context:
Reacts faster than the weekly layer
Can temporarily move against the weekly trend
Highlights pullbacks, relief rallies, and short-term shifts
Examples:
Weekly red + Daily green → short-term bounce in a downtrend
Weekly green + Daily red → pullback in an uptrend
📈 Projection & “Projected Cross”
The indicator includes an optional momentum projection:
It analyzes a historical momentum pattern
Maps that behavior forward in time
Displays a projected path for the momentum lines
A “Projected Cross” label marks where a momentum crossover is likely to occur if similar conditions repeat.
Projections are scenarios, not guarantees.
They are intended as early awareness, not signals.
🏷 Weekly Context Tag
A small on-screen tag displays the current Weekly regime:
W Context: Bull
W Context: Bear
W Context: Neutral
This provides quick confirmation without needing to interpret colors alone.
🧭 How to Use This Indicator
Start with the Weekly background
Identify the dominant market regime.
Check the Daily overlay
Look for alignment or counter-trend behavior.
Watch for projected momentum shifts
Prepare for volatility or transition.
Use price for confirmation
Momentum often shifts before price reacts.
✅ Best Use Cases
Identifying trend regime and momentum bias
Avoiding trades against higher-timeframe pressure
Timing pullbacks and momentum reversals
Staying objective during market noise
⚠️ Important Notes
This indicator does not predict price
It does not generate buy/sell signals
It is a context and timing tool, not a standalone strategy
Final Thought
The Momentum Regime and Confluence Engine is designed to help traders see who is in control, who is pushing back, and when momentum is likely to change—before price makes it obvious.
The Setup Factory - Swing Data TSF - Swing data
Useful intraday updated data for swing traders
Interpretation and summary:
1. 20D Avg $ Vol: The average daily dollar volume (Price × Volume) over the last 20 trading days.
2. Live $ Vol: The total dollar volume accumulated during the current daily bar so far.
3. Relative Vol %: Today's volume progress compared to the average amount of volume typically accumulated by this exact minute over the last 20 days.
4. Projected Vol %: A prediction of the final daily volume total, calculated by applying today's current rate of outperformance (Buzz) to the full-day average.
5. Continuous Volume Buzz: The percentage difference between today's current volume and the historical average for this specific time window (e.g., how far "ahead of schedule" the stock is).
6. Volume Pace (15m): A comparison of the last 15 minutes of volume against the average 15-minute speed of the day so far (excluding the opening 15-minute surge).
7. Daily ATR %: The 14-day average daily price range (volatility) expressed as a percentage of the current stock price.
8. Dist. Today Low: The percentage distance between the current price and today’s lowest point.
9. Dist. Prior Low: The percentage distance between the current price and yesterday’s lowest point.
Pulse Volume Commitment [JOAT]
Pulse Volume Commitment - Three-Dimensional Momentum Analysis
Introduction and Purpose
Pulse Volume Commitment is an open-source oscillator indicator that analyzes price action through three distinct dimensions: Quantity (candle count), Quality (body structure), and Commitment (volume-weighted quality). The core problem this indicator solves is that simple bullish/bearish candle counts miss important context. A market can have more green candles but still be weak if those candles have small bodies and low volume.
This indicator addresses that by requiring all three dimensions to align before generating strong signals, filtering out weak moves that lack conviction.
Why These Three Dimensions Work Together
Each dimension measures a different aspect of market conviction:
1. Quantity - Counts bullish vs bearish candles over the lookback period. Tells you WHO is winning the candle count battle.
2. Quality - Scores candles by body size relative to total range. Full-bodied candles (small wicks) indicate stronger conviction than doji-like candles. Tells you HOW decisively price is moving.
3. Commitment - Weights quality scores by volume. High-quality candles on high volume indicate institutional participation. Tells you WHETHER smart money is involved.
When all three align (e.g., more bullish candles + bullish quality + bullish commitment), the signal is significantly more reliable.
How the Calculations Work
Quantity Analysis:
int greenCount = 0
int redCount = 0
for i = 0 to lookbackPeriod - 1
if close > open
greenCount += 1
if close < open
redCount += 1
bool quantityBull = greenCount > redCount
Quality Analysis (body-to-range scoring):
for i = 0 to lookbackPeriod - 1
float candleBody = close - open // Signed (positive = bull)
float candleRange = high - low
float bodyQuality = candleRange > 0 ? (candleBody / candleRange * 100) * candleRange : 0.0
sumBodyQuality += bodyQuality
bool qualityBull = sumBodyQuality > 0
Signal Types
FULL BULL - All three dimensions bullish (Quantity + Quality + Commitment)
FULL BEAR - All three dimensions bearish
LEAN BULL/BEAR - 2 of 3 dimensions agree
MIXED - No clear consensus
STRONG BUY/SELL - Full confluence + ADX confirms trending market
ADX Integration
The indicator includes ADX (Average Directional Index) to filter signals:
- ADX >= 20 = TRENDING market (signals more reliable)
- ADX < 20 = RANGING market (signals may whipsaw)
Strong signals only trigger when full confluence occurs in a trending environment.
Dashboard Information
Quantity - BULL/BEAR/FLAT with green/red candle ratio
Quality - Directional bias based on body quality scoring
Commit - Volume-weighted commitment reading
ADX - Trend strength (TRENDING/RANGING)
Signal - Confluence status (FULL BULL/FULL BEAR/LEAN/MIXED)
Action - STRONG BUY/STRONG SELL/WAIT
How to Use This Indicator
For High-Conviction Entries:
1. Wait for FULL BULL or FULL BEAR confluence
2. Confirm ADX shows TRENDING
3. Enter when Action shows STRONG BUY or STRONG SELL
For Filtering Weak Setups:
1. Avoid entries when signal shows MIXED
2. Be cautious when ADX shows RANGING
3. Require at least 2 of 3 dimensions to agree
For Divergence Analysis:
1. Watch for Quantity bullish but Commitment bearish (distribution)
2. Watch for Quantity bearish but Commitment bullish (accumulation)
Input Parameters
Lookback Period (9) - Bars to analyze for all three dimensions
ADX Smoothing (14) - Period for ADX calculation
ADX DI Length (14) - Period for directional indicators
Timeframe Recommendations
15m-1H: Good for intraday momentum analysis
4H-Daily: Best for swing trading confluence
Lookback period may need adjustment for different timeframes
Limitations
Lookback period affects signal responsiveness vs reliability tradeoff
Volume data quality varies by exchange
ADX filter may cause missed entries in early trends
Works best on liquid instruments with consistent volume
Open-Source and Disclaimer
This script is published as open-source under the Mozilla Public License 2.0 for educational purposes.
This indicator does not constitute financial advice. Confluence signals do not guarantee profitable trades. Always use proper risk management.
- Made with passion by officialjackofalltrades
BTC - Cycle Integrity Index (CII) BTC - Cycle Integrity Index (CII) | RM
Are we following a calendar or a capital flow? Is the Halving still the heartbeat of Bitcoin, or has the institutional "Engine" taken over?
The most polarized debate in the digital asset space today centers on a single question: Is the 4-year Halving Cycle dead? While some market participants wait for a pre-ordained calendar countdown, the reality of 2026 suggests that visual guesswork is no longer sufficient. As institutional gravity takes hold, we cannot rely on the simple "Clock" of the past. Instead, we must audit the Integrity of the present.
The Cycle Integrity Index (CII) was engineered to move beyond simple price action and provide a clinical answer to the market's biggest mystery: "Is this trend supported by structural substance, or is it merely speculative foam?" By aggregating eight diverse Pillars into a single 0-100% score, this model uses Gaussian Distributions and Sigmoid Normalization to distinguish between professional accumulation and retail-driven chaos. We aren't guessing where we are in a cycle; we are measuring the internal health of the asset's engine in real-time.
Why these 8 Pillars?
The CII does not rely on a single indicator because the "New Era" of Bitcoin is multi-dimensional. To capture the full picture, I selected eight specific pillars that cover the three layers of market truth:
• The Capital Layer: Global Liquidity (M2) and ETF Flows (Wall Street Absorption).
• The Network Layer: Mining Difficulty and Security Backbone expansion.
• The Sentiment Layer: Long-Term Holder conviction, Valuation Heat (MVRV), and Corporate Adoption (MSTR). While alternatives like the Pi Cycle or RSI exist, they are often "one-dimensional." The CII is a synthesis—a modular engine where every part validates the others.
How the Calculation Works
The CII is a sophisticated model for Bitcoin. It aggregates 8 diverse pillars into a single 0-100% score in the following way:
• Mathematical Normalization: We don't just use raw prices. We use Gaussian Distributions to find "Institutional DNA" in drawdowns and Sigmoid (S-Curve) functions to score volatility and valuation.
• Dynamic Weighting: The index is modular. If a data source (like a specific on-chain metric) is toggled off, the engine automatically redistributes the weight among the active sensors so the final integrity score is always balanced to 100%.
• Multi-Source Integration: The script pulls from Global Liquidity (M2), ETF flows, Corporate Treasury premiums (MSTR), and Network Difficulty to create a truly "Full-Stack" view of the asset.
The 8 Pillars of Integrity
Pillar 1: Drawdown DNA The "Identity Crisis" Filter
• Concept: Audits the depth of corrections to distinguish between "Institutional Floors" and "Retail Panics."
• Logic: Historically, retail crashes reached -80%, while institutions view -20% to -25% as primary value entries.
• Implementation: Uses a Gaussian (Normal) Distribution centered at -25%. Scores of 10/10 are awarded for holding institutional targets; scores decay as drawdowns accelerate toward legacy "crash" levels.
Basis: DNA Drawdown
Pillar 2: Volatility Regime The "Smoothness" Audit
• Concept: Measures the "vibration" of the trend. High-integrity moves are characterized by "smooth" price action.
• Logic: Erratic volatility signals speculative bubbles; consistent "volatility clusters" indicate professional trend-following.
• Implementation: Calculates a Z-Score of the 14-day ATR against a 100-day benchmark. This is passed through a Sigmoid function to penalize "chaotic" price shocks while rewarding stability.
Basis: RVPM
Pillar 3: Liquidity Sync (Global M2) The Macro Heartbeat
• Concept: Audits whether price growth is fueled by monetary expansion or internal speculative leverage.
• Logic: True cycle integrity requires a positive correlation between Central Bank balance sheets and price action.
• Implementation: Aggregates a custom Global Liquidity Proxy (Fed, RRP, TGA, PBoC, ECB, BoJ). It measures the Pearson Correlation between BTC and M2 with a standardized 80-day transmission lag.
Basis: Liquisync
Pillar 4: ETF Absorption (Wall Street Entry) The "Cost Basis" Defense
• Concept: Tracks the aggregate institutional cost-basis since the January 2024 Spot ETF launch.
• Logic: Integrity is high when the "Wall Street Floor" is defended; it fails when the aggregate position is underwater.
• Implementation: A Cumulative VWAP engine tracking the "Big 3" (IBIT, FBTC, BITB). Scoring decays based on the percentage distance the price drifts below this institutional average entry.
Basis: Institutional Cost Corridor
Note: Turning this to OFF will significantly expand the timeframe of the indicator on the chart (otherwise it will just start in 2024)
Pillar 5: LTH Dormancy (Conviction) The HODL Floor Audit
• Concept: Monitors the conviction of Long-Term Holders (LTH) to identify supply-side constraints.
• Logic: Sustainable cycles require stable or increasing 1Y+ dormant supply; rapid "thawing" signals distribution.
• Implementation: Uses Min-Max Normalization on the Active 1Y Supply over a 252-day window. A score of 10/10 indicates peak annual holding conviction.
Basis: RHODL Proxy & VDD Multiple
Pillar 6: Valuation Intensity The MVRV Heat Map
• Concept: Measures market "overheat" by comparing Market Value to Realized Value.
• Logic: High integrity trends rise steadily; vertical spikes in MVRV indicate "speculative foam" and bubble risk.
• Implementation: Performs a Relative Rank Analysis of the MVRV Ratio over a 730-day window, passed through a high-steepness Sigmoid curve to identify extreme valuation anomalies.
Pillar 7: Miner Stress The Security Backbone
• Concept: Tracks Mining Difficulty to ensure network infrastructure is expanding alongside price.
• Logic: Difficulty expansion signals health; drops in difficulty (Miner Stress) signal capitulation and sell-side pressure.
• Implementation: Monitors the 30-day Rate of Change (ROC) of Global Mining Difficulty. Maintains a 10/10 score during expansion; decays rapidly during network contraction.
Pillar 8: Corporate Adoption The MSTR NAV Proxy
• Concept: Audits the MicroStrategy (MSTR) premium as a barometer for institutional demand.
• Logic: A high premium indicates a willingness to pay a "convenience fee" for BTC exposure; a collapsing premium signals waning appetite.
• Implementation: Calculates the Adjusted Enterprise Value (Market Cap + Debt - Cash) relative to the Net Asset Value (NAV) of its BTC holdings.
Note1: Debt and share parameters are user-adjustable to maintain accuracy as corporate balance sheets evolve.
Note2: I just included this because I was curious about the mNAV calculation I saw in other scripts, where the printed value often does not match exactly the propagated value from the MSTR page itself. Hence, for my live calculation, we calculate the Adjusted Enterprise Value to find the "Market NAV" (mNAV). Unlike simpler scripts that only look at Market Cap vs. Bitcoin holdings, our engine accounts for the Capital Structure . We explicitly factor in the corporate debt (approx. $8.24B long-term + $7.95B convertible notes) and subtract the cash reserves (approx. $2.18B) to find the true cost Wall Street is paying for the underlying Bitcoin. Since this will ran "old" very quickly, I recommend to update in the code by yourself from time to time, or just de-select this parameter.
Interpretation Guide
• Score 100% (The Perfect Storm): This represents a state of "Maximum Integrity." All 8 pillars are in perfect institutional alignment—liquidity is surging, conviction is at yearly highs, and price action is perfectly smooth. This is the hallmark of a healthy, structural parabolic run.
• 75% - 100% (High Integrity): Robust trend. Price is supported by structural demand and macro tailwinds.
• 35% - 75% (Equilibrium): Transition zone. The market is digesting gains or waiting for a new liquidity pulse.
• 0% - 35% (Fragile): Speculative foam. Structural support has failed.
• Score 0% (The Ghost Trend): Absolute structural failure. All pillars (liquidity, miners, LTH, ETFs) have broken down. Note: Due to the robust nature of the Bitcoin network, the index naturally floors around 20-30% during deep bear markets, as specific pillars (like Miner Security) rarely drop to zero.
To provide a complete experience, I have included the Cycle Triad —a visualization layer consisting of the Halving, Ideal Peak, and Ideal Low. It is important to understand the role of this feature:
• Benchmark Only (Not Calculated): The Triad is based purely on historical evidence from previous Bitcoin epochs. While the Halving is fixed anyway, the "Ideal Peak" or "Ideal Low" are not calculated or computed by the 8 pillars. These are user-adjustable temporal anchors drawn on the chart to provide a static map of the "Legacy 4-Year Cycle."
• The Temporal Audit: The power of the CII lies in comparing the Engine (the 8 Pillars) against the Clock (the Triad) . By overlaying historical time-windows on top of our integrity math, we can see if the "New Era" is currently ahead of, behind, or perfectly in sync with the past.
• The "Peak Divergence" Logic: Based on the specific models selected for this ECU—specifically Volatility Decay and Valuation Heat —traders will notice that a cycle peak often coincides with a low integrity score (Red Zone) . While the index measures structural health, a low score is a byproduct of a market that has become "too hot to handle."
• Regime Detection: Although the primary goal is to audit the "New Era," the CII is highly effective at detecting overheated regimes. When the score drops toward the 25–35% range, the structural floor is giving way to speculative foam—making it a dual-purpose tool for both cycle analysis and risk management.
Dashboard Calibration & Settings
Cycle Triad Calibration
• Ideal Peak/Trough Window: Defines the historical "Average Days" from a Halving to the cycle top and bottom. This sets the vertical anchors for the Halving, Peak, and Low labels.
• Show Cycle Triad: A master toggle to enable or disable the temporal lines and labels on your dashboard.
The CII Master ECU is fully modular. You can toggle individual pillars ON/OFF to focus on specific market dimensions, and calibrate the sensitivity of each sensor to match your strategic bias.
• P1: Drawdown DNA Lookback (Weeks): Defines the window for the "Rolling High." Inst. Target (%): The specific percentage drawdown you define as "Institutional Support" (e.g., -25%).
• P2: Volatility Regime Benchmark (Days): The historical window used to define "Normal" vs. "Abnormal" volatility.
• P3: Liquidity Sync Corr. Window (Bars): The lookback for the Pearson Correlation calculation. Transmission Lag (Bars): The delay (standard 80 days) for Central Bank M2 to hit price.
• P4: ETF Absorption FBTC Ticker: The data source for the ETF volume audit (Default: CBOE:FBTC).
• P5: LTH Dormancy LTH Source: The ticker for 1Y+ Active Supply (Default: GLASSNODE:BTC_ACTIVE1Y). Norm. Window: The lookback (252 days) used to rank current conviction.
• P6: Valuation Intensity MVRV Source: The ticker for the MVRV Ratio (Default: INTOTHEBLOCK:BTC_MVRV). Relative Window: The lookback (730 days) to calculate the valuation rank.
• P7: Miner Stress Mining Diff: The data source for Global Mining Difficulty (Default: QUANDL:BCHAIN/DIFF).
• P8: Corporate Adoption Shares (M) & BTC (K): The balance sheet parameters for MicroStrategy (MSTR). Update these as the company executes new purchases to maintain mNAV accuracy.
Operational Usage This index is best used on the Daily (D) (recommended - description for inputs optimized for this time-window) or Weekly (W) timeframes. While the code is optimized to fetch daily data regardless of your chart setting, the structural "Integrity" of a cycle is a macro phenomenon and should be viewed with a medium-to-long-term lens.
The Verdict: Is the 4-Year Cycle Still Alive?
Based on the data provided by the CII Master ECU, the answer remains a nuanced "Work in Progress." The evidence presents a fascinating conflict between legacy patterns and the new institutional regime:
• The Case for the Cycle: Historically, a local "Peak" in price corresponds with a "Local Low" in our integrity indicator (Red Zone). We observed this exact phenomenon in October 2025. When viewed through the lens of the "Ideal Peak" anchor, this alignment suggests that the 4-year temporal rhythm is still exerts a massive influence on market behavior.
• The Case for the New Era: While the timing of the October 2025 peak followed the legacy script, the intensity did not. Previous cycle tops produced far more aggressive and persistent "Red Zone" clusters. The relative brevity of the integrity breakdown suggests that the "Institutional Era" provides a much higher floor than the retail-driven bubbles of 2017 and 2021.
• The Institutional Floor: Our data shows that while "Tops" still resemble the 4-year cycle, the "Lows" now reflect a regime of constant institutional absorption. This suggests that the brutal 80% drawdowns of the past may be replaced by the "Institutional DNA" of Pillar 1.
Final Outlook: As we move through 2026, the ultimate test lies in the Q3/Q4 window. While classical theory demands a "Cycle Low" during this period, the CII will be our primary auditor. We cannot definitively say the cycle is dead, but we can say it has evolved. We will not know if the 4-year low will manifest until the model either flags a total structural breakdown or confirms that the institutional "Floor" has permanently shifted the rhythm of the asset.
Tags: Bitcoin, Institutional, Macro, On-chain, Liquidity, MSTR, ETF, Cycle
Note to Moderators: This script is a "Master Index" that aggregates several quantitative models I have previously published on this platform (including DNA Drawdown, RVPM, and Liquisync). I am the original author of the logic and source code referenced in the "Basis" sections of the description.
Predictive ZLEMA NavigatorThis is an advanced trend-following indicator that combines Zero-Lag Exponential Moving Averages (ZLEMA) with predictive crossover analysis to identify high-probability trade entries with exceptional timing precision.
Key Features:
1. Zero-Lag Technology
Utilizes ZLEMA calculation to eliminate the inherent lag found in traditional EMAs
Provides faster response to price movements while maintaining smooth trend identification
Default periods (34/89) align with Fibonacci sequence for natural market rhythm detection
2. Predictive Crossover System
Unique algorithm forecasts upcoming Golden Cross and Death Cross events before they occur
Displays estimated bars until next crossover, giving traders advance preparation time
Helps avoid late entries by signaling trend changes up to 200 bars in advance
3. Visual Direction Arrows
Color-coded projection arrows show the momentum trajectory of both fast and slow ZLEMAs
Adjustable projection length allows customization for different trading timeframes
Instantly identifies whether trends are strengthening or weakening
4. Multi-Layer Signal Confirmation
Clear crossover points marked with circles and confirmation ticks
Dynamic fill coloring between MAs for instant trend bias recognition
Bullish signals (green/blue) and bearish signals (orange/red) prevent confusion
Performance Characteristics:
Strengths:
Reduced Whipsaws: ZLEMA's lag reduction minimizes false signals in ranging markets
Early Detection: Predictive algorithm provides 10-50 bar advance warning of trend changes
Versatile Application: Works across all timeframes (1-minute to daily) and asset classes
Visual Clarity: Clean interface prevents information overload while maintaining comprehensive data
Optimal Use Cases:
Swing trading on 4H-Daily timeframes
Trend confirmation for breakout strategies
Portfolio rotation timing based on momentum shifts
Works exceptionally well on trending assets (crypto, indices, trending stocks)
Trading Approach:
Enter long on Golden Cross confirmation with upward direction arrows
Exit or reverse on Death Cross with downward momentum projection
Use prediction labels to scale into positions before actual crossover
Combine with volume analysis for enhanced confirmation
Built-in Alert System: Automated notifications for both bullish and bearish crossovers ensure you never miss a trading opportunity.
This indicator bridges the gap between reactive and predictive trading, giving you the speed of ZLEMA with the foresight of trend projection analysis.
DISCLAIMER: This information is provided for educational purposes only and should not be considered financial, investment, or trading advice.Happy Trading
SMA Strategy [MK]Overview
This strategy is a momentum-based trend-following system designed to capture sustained market moves while minimizing "whipsaws" often found in sideways markets. It utilizes a dual-SMA filter for trend direction, a precise price-crossover trigger for entry, and the Average Directional Index (ADX) to gauge market strength.
How It Works
The strategy follows a strict "Trend + Momentum + Strength" hierarchy:
1. Trend Identification (The Filter) The script uses a Fast SMA (20) and a Slow SMA (50).
Long Bias: SMA-20 > SMA-50.
Short Bias: SMA-20 < SMA-50.
2. Precise Entry (The Trigger) Unlike strategies that enter simply because the price is above a line, this script requires a Price Crossover.
Long Entry: Price must actively cross from below to above the SMA-20.
Short Entry: Price must actively cross from above to below the SMA-20.
3. Trend Strength (The ADX Gatekeeper) To solve the problem of sideways markets where moving averages run parallel, we’ve integrated the ADX (Average Directional Index). The strategy will only trigger a trade if the ADX is above a user-defined threshold (default is 25), ensuring we only enter when the market is trending.
4. RSI Safety Filter To prevent "buying the top" or "selling the bottom," the RSI checks for overextended conditions. It prevents long entries if the RSI is already overbought and short entries if it is oversold.
Exit Logic
The strategy features three layers of protection:
Trend Reversal Exit: Closes the position if the price crosses back over the SMA-20 while the macro trend (SMA-20/SMA-50) has flipped.
Fixed Take Profit: A percentage-based target to lock in gains during sharp moves.
Fixed Stop Loss: A percentage-based safety net to protect capital.
Key Features
Directional Selector: Choose between "Long Only," "Short Only," or "Both."
Visual Feedback: Background colors highlight "Trending" (Green) vs "Sideways" (Red) market regimes.
Fully Customizable: All lengths and thresholds for SMAs, RSI, and ADX can be adjusted to fit different assets and timeframes.
Instructions for Use
Timeframe: This strategy is optimized for trending timeframes such as the 1-Hour (1H), 4-Hour (4H), or Daily (D). Using it on very low timeframes (1-minute or 5-minute) may increase the number of false signals due to market noise.
Asset Classes: Best suited for high-volume assets like Major Forex Pairs, Large-Cap Stocks, and Blue-Chip Cryptocurrencies.
Parameter Tuning: Use the "Strategy Tester" to find the ideal ADX Threshold for your specific asset. Volatile assets usually require a higher ADX (30+) to filter out fake breakouts.
Disclaimer
Financial Risk Warning: The script provided is for educational and informational purposes only. Trading involves significant risk, and there is always the potential for loss. Past performance, whether simulated or real, is not a guarantee of future results.
The author of this script is not a financial advisor. This indicator is not a signal service or a recommendation to buy or sell any security. Always perform your own due diligence and test any strategy thoroughly on a demo account before risking live capital. By using this script, you acknowledge that you are solely responsible for your trading decisions and any resulting financial outcomes.
Current & Prior Day OHLC Levels# Current & Prior Day OHLC Levels with 15-Minute Opening Range
## Overview
This comprehensive indicator plots key price levels for futures and stock traders, displaying Current Day levels, Prior Day levels, and the 15-Minute Opening Range. These levels serve as critical support and resistance zones that professional traders monitor throughout the trading session.
## Key Features
### Current Day Levels (Session-Based)
- **Current Open**: The opening price of the current trading session
- **Current High**: The highest price reached during the current session (updates in real-time)
- **Current Low**: The lowest price reached during the current session (updates in real-time)
The indicator properly recognizes **futures trading sessions**, which begin at their respective session start times (not midnight). For example, most equity index futures sessions begin at 6:00 PM ET the previous day, ensuring accurate session-based tracking for overnight and globex trading.
### Prior Day Levels
- **Prior Open**: Opening price from the previous trading session
- **Prior High**: High of the previous trading session
- **Prior Low**: Low of the previous trading session
- **Prior Close**: Closing price from the previous trading session
Prior day levels are some of the most widely watched technical levels in trading, often acting as psychological support and resistance zones where price action tends to react.
### 15-Minute Opening Range (NY Session)
- **OR High**: The high of the first 15 minutes after New York market open (9:30-9:45 AM ET)
- **OR Low**: The low of the first 15 minutes after New York market open (9:30-9:45 AM ET)
The opening range concept is a popular day trading strategy. The first 15 minutes often establishes the tone for the day, with these levels frequently serving as breakout or breakdown points. The indicator tracks these levels in real-time as they form, then locks them in after 9:45 AM ET.
## Visual Design
### Smart Line Extension
- Lines extend **left** to the exact bar that created each level (e.g., the bar that made the high)
- Lines extend **right** by a configurable number of bars (default: 50 bars)
- No infinite line extension cluttering your chart
### Intelligent Label Placement
- Labels positioned **above** highs and opens
- Labels positioned **below** lows
- Adjustable offset to position labels optimally for your timeframe
- Optional price display in labels (e.g., "Current High: 5,950.00")
- Semi-transparent label backgrounds for clean chart appearance
## Customization Options
### Individual Level Controls
Each level (Current Open, High, Low, Prior Open, High, Low, Close, OR High, OR Low) can be:
- Toggled on/off independently
- Assigned a custom color
- Given its own line style (Solid, Dashed, or Dotted)
- Adjusted for line width (1-5 pixels)
### Default Styling
- **Current Day**: Solid lines (Gold for Open, Green for High, Red for Low)
- **Prior Day**: Dashed lines (Steel Blue for Open, Dark Cyan for High, Crimson for Low, Slate Blue for Close)
- **Opening Range**: Dotted lines (Cyan for High, Tomato for Low)
This default styling provides clear visual distinction between level types while remaining professional and easy to read.
### Label Customization
- Toggle all labels on/off
- Show or hide price values in labels
- Adjust label offset (distance from current bar)
- Five label size options: Tiny, Small, Normal, Large, Huge
### Line Extension Control
- Configurable right extension (0-500 bars)
- Adjust based on your chart timeframe and preference
## Best Use Cases
### Futures Traders
The indicator's session-aware design makes it perfect for futures markets, properly handling:
- Electronic trading hours (Globex)
- Session rollovers at 5:00 PM or 6:00 PM ET (depending on contract)
- Overnight price action
### Day Traders
- Use Opening Range levels for breakout/breakdown strategies
- Monitor Current High/Low for intraday trend identification
- Watch Prior Day levels for profit targets and stop placement
### Swing Traders
- Prior Day High/Low often act as key decision points
- Prior Close serves as an important reference level
- Current Day levels help with intraday entry/exit timing
### Multi-Timeframe Analysis
Works on any intraday timeframe:
- 1-minute for scalping
- 5-minute for active day trading
- 15-minute or 30-minute for swing entries
- 1-hour for position context
## Technical Details
### Session Detection
- Uses TradingView's built-in session detection for accurate daily boundaries
- Properly handles futures contracts with non-midnight session starts
- New York timezone detection for Opening Range (9:30 AM ET)
### Real-Time Updates
- Current High and Low update dynamically as price moves
- Opening Range levels update live during the 9:30-9:45 AM window
- Lines redraw on each bar to maintain accurate positioning
### Performance
- Maximum 500 lines and 500 labels to ensure smooth chart performance
- Efficient line/label deletion and recreation on session changes
- Minimal computational overhead
## Tips for Optimal Use
1. **Adjust Line Extension**: For lower timeframes (1-min, 5-min), reduce right extension to 20-30 bars. For higher timeframes (1-hour), increase to 100+ bars.
2. **Combine with Price Action**: These levels work best when combined with candlestick patterns, volume analysis, and order flow.
3. **Watch for Level Tests**: Price often tests these levels multiple times before breaking through or reversing.
4. **Opening Range Breakouts**: Many traders wait for price to break and close above OR High or below OR Low before entering directional trades.
5. **Prior Day Levels as Targets**: Use Prior High as an upside target and Prior Low as a downside target for intraday trades.
## Compatibility
- Works on all instruments (Futures, Stocks, Forex, Crypto)
- Optimized for intraday timeframes (1-min to 1-hour)
- Best results on liquid instruments with clear session boundaries
- Designed specifically with ES, NQ, YM, and RTY futures traders in mind
## Credits
Ported from NinjaTrader indicators with enhanced features and TradingView-specific optimizations. Original concept based on classic technical analysis principles used by professional traders worldwide.
---
*Note: These levels are for informational and educational purposes only. Past performance does not guarantee future results. Always practice proper risk management.*
Dual VWAP + Dual ATR % BandsScript is adjusted for 5min time frame, can play around setting to adjust accordingly.
It has
Vwap regular
Vwap with adjustable time period
Bands based on ATR value, ie (if ATR is 10, one can adjust band to VWap+ATR %( adjustable)
ATR% can be adjusted to include daily ATR values in addition to current day ATR based on chart time frame.
The bands can be tied to regular VWAP or period VWAP
Regards
Swing High Low Liquidity Pools with Purge CriteriaThis Pine Script indicator plots dynamic liquidity pool levels from swing highs/lows using two configurable sensitivities (short-term and longer-term), extends lines until breached by a percentage threshold, and displays horizontal All-Time High (ATH) and All-Time Low (ATL) lines. User can choose to hide liquidity pool levels that are no longer active.
Recommended for higher time frames like daily and weekly.
ZLT - Date and Time MarkerPine Script v5 indicator called “DateTime Marker” that overlays on the chart and marks bars whose timestamp matches a user-defined schedule. When a bar “matches,” it can draw:
a vertical line through the bar,
a label with a time/date string, and
a triangle marker below the bar (always plotted on matches).
What you can configure
Marker Type (the matching rule)
You choose one of five modes:
Every Minute
Inputs: everyNMinutes (default 15), minuteOffset (default 0)
Match condition: minute % everyNMinutes == minuteOffset
Example with defaults: marks bars at :00, :15, :30, :45 each hour.
Hourly
Inputs: everyNHours (default 4), hourlyMinute (default 0)
Match condition: hour % everyNHours == 0 AND minute == hourlyMinute
Example with defaults: marks bars at 00:00, 04:00, 08:00, 12:00, 16:00, 20:00 (at minute 00).
Daily Time
Inputs: dailyHour (default 10), dailyMinute (default 0)
Match condition: hour == dailyHour AND minute == dailyMinute
Example with defaults: marks 10:00 every day.
Weekly Day & Time
Inputs: weekDay (default Tuesday), weeklyHour (default 16), weeklyMinute (default 0)
It converts the weekday name to Pine’s dayofweek number via getDayNumber().
Match condition: dayofweek == targetDay AND hour == weeklyHour AND minute == weeklyMinute
Example with defaults: marks Tuesday 16:00.
Monthly Date & Time
Inputs: monthlyDay (default 2), monthlyHour (default 23), monthlyMinute (default 0)
Match condition: dayofmonth == monthlyDay AND hour == monthlyHour AND minute == monthlyMinute
Example with defaults: marks the 2nd day of each month at 23:00.
Visual settings
showLine: whether to draw the vertical line.
lineStyle: Solid/Dashed/Dotted (mapped to Pine line styles by getLineStyle()).
lineColor, lineWidth: styling for the line (width is rounded to an integer because Pine line width is integer).
showLabel: whether to draw a label.
labelColor: background color of the label (text is forced white).
What happens when a bar matches
When isMatch becomes true on a bar:
Vertical line: line.new() at that bar’s bar_index, from low to high, extended extend.both (so it spans the full chart vertically).
Label: label.new() at the bar’s high, with mode-specific text:
Minute/Hourly/Daily: "HH:mm"
Weekly: "Tuesday HH:mm" (or whatever day selected)
Monthly: "Day 2 - HH:mm" (or chosen day)
Triangle marker: plotshape() draws a triangle up below the bar on every match (this happens regardless of showLine / showLabel).
Important practical implications
This uses the bar’s exchange/chart time (TradingView’s time, hour, minute, etc.), so results depend on the symbol/session and chart timezone settings.
On timeframes coarser than 1 minute, “Every Minute” still checks only the bar’s timestamp minute value; it won’t mark intra-bar minutes that don’t exist as separate bars.
Because it can create many objects (lines/labels), it sets max_labels_count=500. Lines are not capped here, so very dense marking can still clutter the chart.
If you tell me your intended use (e.g., “mark NY open,” “mark every 15m candle close,” “mark macro events weekly”), I can point out whether the current matching logic fits that precisely or needs adjustments (sessions, timezones, avoiding duplicates, limiting lines, etc.).
ADR % RangesThis indicator is designed to visually represent percentage lines from the open of the day. The % amount is determined by X amount of the last days to create an average...or Average Daily Range (ADR).
1. ADR Percentage Lines: The core function of the script is to apply lines to the chart that represent specific percentage changes from the daily open. It first calculates the average over X amount of days and then displays two lines that are 1/3rd of that average. One line goes above the other line goes below. The other two lines are the full "range" of the average. These lines can act as boundaries or targets to know how an asset has moved recently. *Past performance is not indicative of current or future results.
The calculation for ADR is:
Step 1. Calculate Today's Range = DailyHigh - DailyLow
Step 2. Store this average after the day has completed
Step 3. Sum all day's ranges
Step 4. Divide by total number of days
Step 5. Draw on chart
2. Customizable Inputs: Users have the flexibility to customize the script through various inputs. This includes the option to display lines only for the current trading day (`todayonly`), and to select which lines are displayed. The user can also opt to show a table the displays the total range of previous days and the average range of those previous days.
3. No Secondary Timeframe: The ADR is computed based on whatever timeframe the chart is and does not reference secondary periods. Therefore the script cannot be used on charts greater than daily.
This script is can be used by all traders for any market. The trader might have to adjust the "X" number of days back to compute a historical average. Maybe they only want to know the average over the past week (5 days) or maybe the past month (20 days).
Humble Student OB/OS Trifecta indicatorAfter reading Cam Hui's blog post about his "Trifecta" bottom spotting model I thought I'd try my hand at scripting it as an indicator. The results are pretty close to what he describes. Though the data TradingView feeds me doesn't seem to be identical to what he's using on StockCharts.com the results are close enough that I will call the effort a success worth publishing.
MTF 20 SMA Table - DXY**MTF 20 SMA Table - Multi-Timeframe Trend Analysis Dashboard**
**Overview:**
This indicator provides a comprehensive multi-timeframe analysis dashboard that displays the relationship between price and the 20-period Simple Moving Average (SMA) across four key timeframes: 15-minute, 1-hour, 4-hour, and Daily. It's designed to help traders quickly identify trend alignment and potential trading opportunities across multiple timeframes at a glance. It's definitely not perfect but has helped me speed up my backtesting efforts as it's worked well for me eliminating flipping back and forth between timeframes excpet when I have confluence on the table, then I check the HTF.
**How It Works:**
The indicator creates a table overlay on your chart showing three critical metrics for each timeframe:
1. **Price vs SMA (Row 1):** Shows whether price is currently above (bullish) or below (bearish) the 20 SMA
- Green = Price Above SMA
- Red = Price Below SMA
2. **SMA Direction (Row 2):** Indicates the trend direction of the SMA itself over a lookback period
- Green (↗ Rising) = Uptrend
- Red (↘ Falling) = Downtrend
- Gray (→ Flat) = Ranging/Consolidation
3. **Strength (Row 3):** Displays the distance between current price and the SMA in pips
- Purple background = Strong move (>50 pips away)
- Orange background = Moderate move (20-50 pips)
- Gray background = Weak/consolidating (<20 pips)
- Text color: Green for positive distance, Red for negative
**Key Features:**
- **Customizable Table Position:** Place the table anywhere on your chart (9 position options)
- **Adjustable SMA Lengths:** Modify the SMA period for each timeframe independently (default: 20)
- **Direction Lookback Settings:** Fine-tune how far back the indicator looks to determine SMA direction for each timeframe
- **Flat Threshold:** Set the pip threshold for determining when an SMA is "flat" vs trending (default: 5 pips)
- **DXY Optimized:** Calculations are calibrated for the US Dollar Index (1 pip = 0.01)
**Best Use Cases:**
1. **Trend Alignment:** Identify when multiple timeframes align in the same direction for higher probability trades
2. **Divergence Spotting:** Detect when lower timeframes diverge from higher timeframes (potential reversals)
3. **Entry Timing:** Use lower timeframe signals while higher timeframes confirm overall trend
4. **Strength Assessment:** Gauge how extended price is from the mean (SMA) to avoid overextended entries
**Settings Guide:**
- **SMA Settings Group:** Adjust the SMA period for each timeframe (15M, 1H, 4H, Daily)
- **SMA Direction Group:** Control lookback periods to determine trend direction
- 15M: Default 5 candles
- 1H: Default 10 candles
- 4H: Default 15 candles
- Daily: Default 20 candles
- **Flat Threshold:** Set sensitivity for "flat" detection (lower = more sensitive to ranging markets)
**Trading Strategy Examples:**
1. **Trend Following:** Look for all timeframes showing the same direction (all green or all red)
2. **Pullback Trading:** When Daily/4H are green but 15M/1H show red, wait for lower timeframes to flip green for entry
3. **Ranging Markets:** When multiple SMAs show "flat", consider range-bound strategies
**Important Notes:**
- This is a reference tool only, not a standalone trading system
- Always use proper risk management and combine with other analysis methods
- Best suited for trending instruments like indices and major forex pairs
- Calculations are optimized for DXY but can be used on other instruments (pip calculations may need adjustment)
**Credits:**
Feel free to modify and improve this code! Suggestions for enhancements are welcome in the comments.
---
**Installation Instructions:**
1. Add the indicator to your TradingView chart
2. Adjust the table position via settings to avoid overlap with price action
3. Customize SMA lengths and lookback periods to match your trading style
4. Monitor the table for timeframe alignment and trend confirmation
---
This indicator is published as open source for the community to learn from and improve upon. Happy trading! 📈
BTC Backwardation SearcherThis Pine Script code is a custom indicator named "BTC Backwardation Searcher" designed for the TradingView platform. The indicator aims to identify and visualize the price difference between two Bitcoin futures contracts: CME:BTC1! and CME:BTC2!.
Here's a breakdown of the code:
1. The script fetches the daily close prices of CME:BTC1! and CME:BTC2! using the security() function.
2. It calculates the percentage price difference between the two contracts using the formula: (btc1Price - btc2Price) / btc2Price * 100.
3. The script also calculates the price difference for the previous two days (2 days ago and 3 days ago) using the same formula.
4. Two conditions are defined:
(1) dailyGreenCondition: If the price difference is greater than or equal to 0.3% for three
consecutive days, including the current day and the previous two days.
(2) dailyRedCondition(commented): If the price difference is less than or equal to -1% for three consecutive days, including the current day and the previous two days.
(I commented it out because I don't think it's useful.)
5. The plotshape() function is used to display green triangles on the chart when the dailyGreenCondition is met, and red triangles when the dailyRedCondition is met. These triangles are displayed on the daily, weekly, and monthly timeframes.
The purpose of this indicator is to help traders identify potential trading opportunities based on the price difference between the two Bitcoin futures contracts. The green triangles suggest a bullish scenario where CME:BTC1! is significantly higher than CME:BTC2!, while the red triangles indicate a bearish scenario where CME:BTC2! is significantly lower than CME:BTC1!.
However, it's important to note that this indicator should be used in conjunction with other technical analysis tools and fundamental analysis. Traders should also consider their risk tolerance, investment goals, and market conditions before making any trading decisions based on this indicator.
ES Multi-Timeframe SMC Entry SystemOverviewThis is a comprehensive Smart Money Concepts (SMC) trading strategy for ES1! (E-mini S&P 500) futures that provides simultaneous buy and sell signals across three timeframes: Daily, Weekly, and Monthly. It incorporates your complete entry checklists, confluence scoring system, and automated risk management.Core Features1. Multi-Timeframe Signal Generation
Daily Signals (D) - For intraday/swing trades (1-3 day holds)
Weekly Signals (W) - For swing trades (3-10 day holds)
Monthly Signals (M) - For position trades (weeks to months)
All three timeframes can trigger simultaneously (pyramiding enabled)
2. Smart Money Concepts ImplementationOrder Blocks (OB)
Automatically detects bullish and bearish order blocks
Bullish OB = Down candle before strong impulse up
Bearish OB = Up candle before strong impulse down
Validates freshness (< 10 bars = higher quality)
Visual boxes displayed on chart
Fair Value Gaps (FVG)
Identifies 3-candle imbalance patterns
Bullish FVG = Gap between high and current low
Bearish FVG = Gap between low and current high
Tracks unfilled gaps as targets/entry zones
Auto-removes when filled
Premium/Discount Zones
Calculates 50-period swing range
Premium = Upper 50% (short from here)
Discount = Lower 50% (long from here)
Deep zones (<30% or >70%) for higher quality setups
Visual shading: Red = Premium, Green = Discount
Liquidity Sweeps
Sell-Side Sweep (SSL) = False break below lows → reversal up
Buy-Side Sweep (BSL) = False break above highs → reversal down
Marked with yellow labels on chart
Valid for 10 bars after occurrence
Break of Structure (BOS)
Identifies when price breaks recent swing high/low
Confirms trend continuation
Marked with small circles on chart
3. Confluence Scoring SystemEach timeframe has a 10-point scoring system based on your checklist requirements:Daily Score (10 points max)
HTF Trend Alignment (2 pts) - 4H and Daily EMAs aligned
SMC Structure (2 pts) - OB in correct zone with HTF bias
Liquidity Sweep (1 pt) - Recent SSL/BSL occurred
Volume Confirmation (1 pt) - Volume > 1.2x 20-period average
Optimal Time (1 pt) - 9:30-12 PM or 2-4 PM ET (avoids lunch)
Risk-Reward >2:1 (1 pt) - Built into exit strategy
Clean Price Action (1 pt) - BOS occurred
FVG Present (1 pt) - Near unfilled fair value gap
Minimum Required: 6/10 (adjustable)Weekly Score (10 points max)
Weekly/Monthly Alignment (2 pts) - W and M EMAs aligned
Daily/Weekly Alignment (2 pts) - D and W trends match
Premium/Discount Correct (2 pts) - Deep zone + trend alignment
Major Liquidity Event (1 pt) - SSL/BSL sweep
Order Block Present (1 pt) - Valid OB detected
Risk-Reward >3:1 (1 pt) - Built into exit
Fresh Order Block (1 pt) - OB < 10 bars old
Minimum Required: 7/10 (adjustable)Monthly Score (10 points max)
Monthly/Weekly Alignment (2 pts) - M and W trends match
Weekly OB in Monthly Zone (2 pts) - OB in deep discount/premium
Major Liquidity Sweep (2 pts) - Significant SSL/BSL
Strong Trend Alignment (2 pts) - D, W, M all aligned
Risk-Reward >4:1 (1 pt) - Built into exit
Extreme Zone (1 pt) - Price <20% or >80% of range
Minimum Required: 8/10 (adjustable)4. Entry ConditionsDaily Long Entry
✅ Daily score ≥ 6/10
✅ 4H trend bullish (price > EMAs)
✅ Price in discount zone
✅ Bullish OB OR SSL sweep OR near bullish FVG
✅ NOT during avoid times (lunch/first 5 min)Daily Short Entry
✅ Daily score ≥ 6/10
✅ 4H trend bearish
✅ Price in premium zone
✅ Bearish OB OR BSL sweep OR near bearish FVG
✅ NOT during avoid timesWeekly Long Entry
✅ Weekly score ≥ 7/10
✅ Weekly trend bullish
✅ Daily trend bullish
✅ Price in discount
✅ Bullish OB OR SSL sweepWeekly Short Entry
✅ Weekly score ≥ 7/10
✅ Weekly trend bearish
✅ Daily trend bearish
✅ Price in premium
✅ Bearish OB OR BSL sweepMonthly Long Entry
✅ Monthly score ≥ 8/10
✅ Monthly trend bullish
✅ Weekly trend bullish
✅ Price in DEEP discount (<30%)
✅ Bullish order block presentMonthly Short Entry
✅ Monthly score ≥ 8/10
✅ Monthly trend bearish
✅ Weekly trend bearish
✅ Price in DEEP premium (>70%)
✅ Bearish order block present5. Automated Risk ManagementPosition Sizing (Per Entry)
Daily: 1.0% account risk per trade
Weekly: 0.75% account risk per trade
Monthly: 0.5% account risk per trade
Formula:
Contracts = (Account Equity × Risk%) ÷ (Stop Points × $50)
Minimum = 1 contractStop Losses
Daily: 12 points ($600 per contract)
Weekly: 40 points ($2,000 per contract)
Monthly: 100 points ($5,000 per contract)
Profit Targets (Risk:Reward)
Daily: 2:1 = 24 points ($1,200 profit)
Weekly: 3:1 = 120 points ($6,000 profit)
Monthly: 4:1 = 400 points ($20,000 profit)
Example with $50,000 AccountDaily Trade:
Risk = $500 (1% of $50k)
Stop = 12 points × $50 = $600
Contracts = $500 ÷ $600 = 0.83 → 1 contract
Target = 24 points = $1,200 profit
Weekly Trade:
Risk = $375 (0.75% of $50k)
Stop = 40 points × $50 = $2,000
Contracts = $375 ÷ $2,000 = 0.18 → 1 contract
Target = 120 points = $6,000 profit
Monthly Trade:
Risk = $250 (0.5% of $50k)
Stop = 100 points × $50 = $5,000
Contracts = $250 ÷ $5,000 = 0.05 → 1 contract
Target = 400 points = $20,000 profit
6. Visual Elements on ChartKey Levels
Previous Daily High/Low - Red/Green solid lines
Previous Weekly High/Low - Red/Green circles
Previous Monthly High/Low - Red/Green crosses
Equilibrium Line - White dotted line (50% of range)
Zones
Premium Zone - Light red shading (upper 50%)
Discount Zone - Light green shading (lower 50%)
SMC Markings
Bullish Order Blocks - Green boxes with "Bull OB" label
Bearish Order Blocks - Red boxes with "Bear OB" label
Bullish FVGs - Green boxes with "FVG↑"
Bearish FVGs - Red boxes with "FVG↓"
Liquidity Sweeps - Yellow "SSL" (down) or "BSL" (up) labels
Break of Structure - Small lime/red circles
Entry Signals
Daily Long - Small lime triangle ▲ with "D" below price
Daily Short - Small red triangle ▼ with "D" above price
Weekly Long - Medium green triangle ▲ with "W" below price
Weekly Short - Medium maroon triangle ▼ with "W" above price
Monthly Long - Large aqua triangle ▲ with "M" below price
Monthly Short - Large fuchsia triangle ▼ with "M" above price
7. Information TablesConfluence Score Table (Top Right)
┌──────────┬────────┬────────┬────────┐
│ TF │ SCORE │ STATUS │ SIGNAL │
├──────────┼────────┼────────┼────────┤
│ 📊 DAILY │ 7/10 │ ✓ PASS │ 🔼 │
│ 📈 WEEKLY│ 6/10 │ ✗ WAIT │ ━ │
│ 🌙 MONTH │ 9/10 │ ✓ PASS │ 🔽 │
├──────────┴────────┴────────┴────────┤
│ P&L: $2,450 │
└─────────────────────────────────────┘
Green scores = Pass (meets minimum threshold)
Orange/Red scores = Fail (wait for better setup)
🔼 = Long signal active
🔽 = Short signal active
━ = No signal
Entry Checklist Table (Bottom Right)
┌──────────────┬───┐
│ CHECKLIST │ ✓ │
├──────────────┼───┤
│ ━ DAILY ━ │ │
│ HTF Trend │ ✓ │
│ Zone │ ✓ │
│ OB │ ✗ │
│ Liq Sweep │ ✓ │
│ Volume │ ✓ │
│ ━ WEEKLY ━ │ │
│ W/M Align │ ✓ │
│ Deep Zone │ ✗ │
│ ━ MONTHLY ━ │ │
│ M/W/D Align │ ✓ │
│ Zone: Discount│ │
└──────────────┴───┘
Green ✓ = Condition met
Red ✗ = Condition not met
Real-time updates as market conditions change
8. Alert SystemIndividual Alerts:
"Daily Long" - Triggers when daily long setup appears
"Daily Short" - Triggers when daily short setup appears
"Weekly Long" - Triggers when weekly long setup appears
"Weekly Short" - Triggers when weekly short setup appears
"Monthly Long" - Triggers when monthly long setup appears
"Monthly Short" - Triggers when monthly short setup appears
Combined Alerts:
"Any Long Signal" - Catches any bullish opportunity (D/W/M)
"Any Short Signal" - Catches any bearish opportunity (D/W/M)
Alert Messages Include:
🔼/🔽 Direction indicator
Timeframe (DAILY/WEEKLY/MONTHLY)
Current confluence score
HTF Current/Average RangeThe "HTF(Higher Timeframe) Current/Average Range" indicator calculates and displays the current and average price ranges across multiple timeframes, including daily, weekly, monthly, 4 hour, and user-defined custom timeframes.
Users can customize the lookback period, table size, timeframe, and font color; with the indicator efficiently updating on the final bar to optimize performance.
When the current range surpasses the average range for a given timeframe, the corresponding table cell is highlighted in green, indicating potential maximum price expansion and signaling the possibility of an impending retracement or consolidation.
For day trading strategies, the daily average range can serve as a guide, allowing traders to hold positions until the current daily range approaches or meets the average range, at which point exiting the trade may be considered.
For scalping strategies, the 15min and 5min average range can be utilized to determine optimal holding periods for fast trades.
Other strategies:
Intraday Trading - 1h and 4h Average Range
Swing Trading - Monthly Average Range
Short-term Trading - Weekly Average Range
Also using these statistics in accordance with Power 3 ICT concepts, will assist in holding trades to their statistical average range of the chosen HTF candle.
CODE
The core functionality lies in the data retrieval and table population sections.
The request.security function (e.g., = request.security(syminfo.tickerid, "D", , lookahead = barmerge.lookahead_off)) retrieves high and low prices from specified timeframes without lookahead bias, ensuring accurate historical data.
These values are used to compute current ranges and average ranges (ta.sma(high - low, avgLength)), which are then displayed in a dynamically generated table starting at (if barstate.islast) using table.new, with conditional green highlighting when the current range is greater than average range, providing a clear visual cue for volatility analysis.
HMA & D1 crossover FX (Study)Can work on other Forex pairs if change settings: Period
This example tuned for AUDUSD (FX Version)
Enter new order on HMA ( Hull Moving Average ) and D1 ( Daily Candle) crossovers, Exit orders as basket when profit = Your Target Profit
This study version built for users of Alerts. Crossover of HMA and DailyCandle1 (and/or DailyCandle1 cross DailyCandle2) (also possible Price cross HMA)






















