Multi-Mode Adaptive Strategy [MMAS]This Pine Script strategy dynamically adapts to different market conditions. Users can switch between trend‑following, mean‑reversion, and breakout modes, making it versatile across assets and timeframes.
Key Metrics:
- BTCUSDT / 1D → Return: +42.5%, Sharpe: 1.8, Max Drawdown: -12.3%, Win Rate: 61%
- XAGUSD / 1H → Return: +18.7%, Sharpe: 1.4, Max Drawdown: -8.5%, Win Rate: 58%
- EURUSD / 4H → Return: +25.2%, Sharpe: 1.6, Max Drawdown: -10.1%, Win Rate: 60%
Key Features:
- Modular design: switch between trend, mean‑reversion, breakout
- Works across crypto, forex, commodities
- Clear visualization with signals and metrics
• Global Note
"Universal strategy design for cross‑asset adaptability."
• Tags
trend, mean‑reversion, breakout, multi‑asset, adaptive strategy, pine script
指標和策略
VolumeValueArea (Double Ref Back)Description :
Overview This indicator is designed for traders who rely on Auction Market Theory and want to identify the market's true Fair Value with precision. It combines two independent Volume Profile instances into a single tool, allowing you to analyze market structure across multiple timeframes simultaneously (e.g., Daily and 4-Hour).
The unique feature of this script is the "Reference Back" logic. Instead of only seeing the current session's profile, you can project the Value Area (VA) and Point of Control (POC) from n periods ago onto the current session. This allows you to immediately see how price reacts to previous areas of high liquidity.
Key Features
Dual Profile Instances: Run two separate profiles (e.g., Profile 1 on 'Daily' and Profile 2 on '4 Hour') within one indicator to find confluence.
Historical Referencing (Offset): Display the levels of past sessions on the current chart.
Offset 0: Shows the developing levels of the current session.
Offset 1: Projects the finished levels of the previous session onto the current price action.
Active Line Projection: Automatically projects the relevant POC and Value Area lines into the future (infinite extension) for the currently active session, making it easy to spot upcoming support and resistance.
Stateless Session Precision: Uses a robust calculation method to ensure session breaks (like the 4-Hour starts) are mathematically precise, regardless of exchange timestamps.
Full Visual Control: Customize line styles (Solid, Dashed, Dotted), widths, and colors for POC, VAH, and VAL independently.
How to Use: Finding Fair Value Clusters
The primary goal of this script is to visualize where "Fair Value" overlaps across different timeframes. This is often called Clustering.
Setup Confluence: Set Profile 1 to a higher timeframe (e.g., Daily) and Profile 2 to a lower timeframe (e.g., 4 Hour or 1 Hour).
Analyze the Context: Set the Reference Back to 1. This allows you to trade the current session while seeing the key levels established in the previous session.
Identify Clusters: Look for areas where the Daily POC/Value Area aligns closely with the H4 POC/Value Area.
Strong Support/Resistance: When a Daily VAH aligns with a 4H POC, it creates a "Cluster" of interest.
Acceptance vs. Rejection: If price moves away from a cluster and creates a new value area, the market is seeking a new fair value. If it rotates around the cluster, fair value is established.
Settings Guide
Session Type: Choose between Daily, Weekly, Monthly, 4 Hour, 1 Hour, etc.
Reference Back (n Periods): Determines which past session's levels are drawn on the current bars. 0 = Current, 1 = Previous, 2 = The one before that.
Resolution: The granularity of the volume profile (higher = more precise).
Extend Active: If enabled, the lines for the current calculation period will extend infinitely to the right until a new session begins.
Styles: Configure independent line styles to visually distinguish between Profile 1 (e.g., solid lines) and Profile 2 (e.g., dashed lines).
Risk Disclaimer This tool is for chart analysis and educational purposes only. Past volume nodes do not guarantee future price reactions. Always manage your risk responsibly.
BE-Synergistic RSI Fusion Strategy█ Overview of the Script:
The Synergistic RSI Fusion Strategy is a sophisticated technical analysis tool designed to detect market turning points (reversals) and high-momentum breakouts. Unlike standard indicators that simply tell you to "Buy" or "Sell" based on a crossed line or overbought/oversold levels, this script builds a structural trade setup using zones. It waits for price action to confirm the signal before acting.
█ Why "Synergistic RSI Fusion"?:
The core engine of the indicator makes it all:
Fusion : Standard RSI only looks at the closing price relative to the previous closing price. This script calculates a comprehensive RSI that incorporates the candle's Highs and Lows.
Why is this more powerful? Imagine a "Hammer" candle where price drops significantly during the session but recovers to close near the open. A standard RSI sees almost no change because the Close is near the Open. However, Fusion RSI captures the full volatility of that dip and recovery, recognizing the massive "effort" and hidden battle between buyers and sellers that standard RSI completely misses.
Synergy : It combines this advanced momentum reading with ATR (Average True Range) to define volatility-based entry and exit zones. It blends momentum (RSI) with market structure (Price Action Zones).
█ How it Stands Unique:
The Core engine: Capturing the true efforts of the movement in price.
Multi-Peak Divergence: Instead of simple A-to-B divergence, this script uses a state machine to track local peaks by filtering out weak signals and waits for a significant disagreement between price and momentum.
The Zone System: It doesn't plot signals blindly. When divergence is found, it draws two "waiting rooms" (Green and Red zones). The trade is only taken if the candle closes inside one of these zones.
█ Divergence Trades: The Two-Way Setup:
A unique feature of this script is that when a Divergence signal appears, it generates two potential entry zones: a Bullish zone and a Bearish zone.
The Rational Behind the Two-Way Approach:
New traders often assume a Divergence means "Reversal." However, experienced traders know that Divergence simply means "Tension is building."
Scenario A (The Reversal): The RSI is screaming that momentum is dying, but price is pushing higher. If price respects the divergence, it will drop into the reversal zone. This is the standard divergence trade.
Scenario B (The Failure/Trap): sometimes, momentum is so strong that it blows through the divergence. If price ignores the RSI warning and breaks into the continuation zone, it signals that the trend is incredibly powerful.
Why Trade Both Ways?
By placing zones on both sides, the script essentially says: " I know a big move is coming because of the tension (Divergence), but I will let the market prove direction first. " This prevents you from " catching a falling knife " by trying to pick the exact top or bottom.
The Counter-Trading Logic (The Trap):
The script includes advanced logic for failed trades. If you enter a trade and the Stop Loss is hit immediately (a "fake-out"), the script adjusts the opposing zone by considering the liquidity of that particular candle.
Why? If the market traps Long traders and hits their stops, that selling pressure often fuels a massive move downwards. This logic allows the script to flip bias instantly and join the real move.
█ Continuation Trends: Why Price Runs After TP:
You may notice that often, after the Take Profit (TP) is hit, the price continues to run in that direction for a long time.
The "Breakout" Effect:
The Take Profit levels in this script are calculated using ATR (Average True Range). This is a conservative target based on recent average volatility.
Structural Breaks: The entry zones are usually positioned at key structural pivots. When price has enough energy to enter the zone and hit 100% of the ATR target, it effectively confirms a Break of Structure.
Momentum Release: The Divergence phase acts like a coiled spring. When that spring finally snaps (the trade entry), the release of energy is often far greater than just one ATR unit.
Psychology: When the TP is hit, it confirms the analysis was correct. This draws in other traders and algorithms who missed the initial entry, adding fuel to the fire and extending the trend.
█ Major Support & Resistance Zone:
The untested zones are typically the safe haven to place your SLs, which definitely act as Support & Resistance once the price approaches these zones.
CryptoFlux Dynamo [JOAT]CryptoFlux Dynamo: Velocity Scalping Strategy
WHAT THIS STRATEGY IS
CryptoFlux Dynamo is an open-source Pine Script v6 strategy designed for momentum-based scalping on cryptocurrency perpetual futures. It combines multiple technical analysis methods into a unified system that adapts its behavior based on current market volatility conditions.
This script is published open-source so you can read, understand, and modify the complete logic. The description below explains everything the strategy does so that traders who cannot read Pine Script can fully understand how it works before using it.
HOW THIS STRATEGY IS ORIGINAL AND WHY THE INDICATORS ARE COMBINED
This strategy uses well-known indicators (MACD, EMA, RSI, MFI, Bollinger Bands, Keltner Channels, ATR). The originality is not in the individual indicators themselves, but in the specific way they are integrated into a regime-adaptive system. Here is the detailed justification for why these components are combined and how they work together:
The Problem Being Solved:
Standard indicator-based strategies use fixed thresholds. For example, a typical MACD strategy might enter when the histogram crosses above zero. However, in cryptocurrency markets, volatility changes dramatically throughout the day and week. A MACD crossover during a low-volatility consolidation period has very different implications than the same crossover during a high-volatility trending period. Using the same entry thresholds and stop distances in both conditions leads to either:
Too many false signals during consolidation (if thresholds are loose)
Missing valid opportunities during expansion (if thresholds are tight)
Stops that are too tight during volatility spikes (causing premature exits)
Stops that are too wide during compression (giving back profits)
The Solution Approach:
This strategy first classifies the current volatility regime using normalized ATR (ATR as a percentage of price), then dynamically adjusts ALL other parameters based on that classification. This creates a context-aware system rather than a static threshold comparison.
How Each Component Contributes to the System:
ATR-Based Regime Classification (The Foundation)
The strategy calculates ATR over 21 periods, smooths it with a 13-period EMA to reduce noise from wicks, then divides by price to get a normalized percentage. This ATR% is classified into three regimes:
- Compression (ATR% < 0.8%): Market is consolidating, breakouts are more likely but false signals are common
- Expansion (ATR% 0.8% - 1.6%): Normal trending conditions
- Velocity (ATR% > 1.6%): High volatility, larger moves but also larger adverse excursions
This regime classification then controls stop distances, profit targets, trailing stop offsets, and signal strength requirements. The regime acts as a "meta-parameter" that tunes the entire system.
EMA Ribbon (8/21/34) - Trend Structure Detection
The three EMAs establish trend direction and structure. When EMA 8 > EMA 21 > EMA 34, the trend structure is bullish. The slope of the middle EMA (21) is calculated over 8 bars and converted to degrees using arctangent. This slope measurement quantifies trend strength, not just direction.
Why these specific periods? The 8/21/34 sequence follows Fibonacci-like spacing and provides good separation on 5-minute cryptocurrency charts. The fast EMA (8) responds to immediate price action, the mid EMA (21) represents the short-term trend, and the slow EMA (34) acts as a trend filter.
The EMA ribbon works with the regime classification: during compression regimes, the strategy requires stronger ribbon alignment before entry because false breakouts are more common.
MACD (8/21/5) - Momentum Measurement
The MACD uses faster parameters (8/21/5) than the standard (12/26/9) because cryptocurrency markets move faster than traditional markets. The histogram is smoothed with a 5-period EMA to reduce noise.
The key innovation is the adaptive histogram baseline. Instead of using a fixed threshold, the strategy calculates a rolling baseline from the smoothed absolute histogram value, then multiplies by a sensitivity factor (1.15). This means the threshold for "significant momentum" automatically adjusts based on recent momentum levels.
The MACD works with the regime classification: during velocity regimes, the histogram baseline is effectively higher because recent momentum has been stronger, preventing entries on relatively weak momentum.
RSI (21 period) and MFI (21 period) - Independent Momentum Confirmation
RSI measures momentum using price changes only. MFI (Money Flow Index) measures momentum using price AND volume. By requiring both to confirm, the strategy filters out price moves that lack volume support.
The 21-period length is longer than typical (14) to reduce noise on 5-minute charts. The trigger threshold (55 for longs, 45 for shorts) is slightly offset from 50 to require momentum in the trade direction, not just neutral readings.
These indicators work together: a signal requires RSI > 55 AND MFI > 55 for longs. This dual confirmation reduces false signals from price manipulation or low-volume moves.
Bollinger Bands (1.5 mult) and Keltner Channels (1.8 mult) - Squeeze Detection
When Bollinger Bands contract inside Keltner Channels, volatility is compressing and a breakout is likely. This is the "squeeze" condition. When the bands expand back outside the channels, the squeeze "releases."
The strategy uses a 1.5 multiplier for Bollinger Bands (tighter than standard 2.0) and 1.8 for Keltner Channels. These values were chosen to identify meaningful squeezes on 5-minute cryptocurrency charts without triggering too frequently.
The squeeze detection works with the regime classification: squeeze releases during compression regimes receive additional signal strength points because breakouts from consolidation are more significant.
Volume Impulse Detection - Institutional Participation Filter
The strategy calculates a volume baseline (34-period SMA) and standard deviation. A "volume impulse" is detected when current volume exceeds the baseline by 1.15x OR when the volume z-score exceeds 0.5.
This filter ensures entries occur when there is meaningful market participation, not during low-volume periods where price moves are less reliable.
Volume impulse is required for all entries and adds points to the composite signal strength score.
Cycle Oscillator - Trend Alignment Filter
The strategy calculates a 55-period EMA as a cycle basis, then measures price deviation from this basis as a percentage. When price is more than 0.15% above the cycle basis, the cycle is bullish. When more than 0.15% below, the cycle is bearish.
This filter prevents counter-trend entries. Long signals require bullish cycle alignment; short signals require bearish cycle alignment.
BTC Dominance Filter (Optional) - Market Regime Filter
The strategy can optionally use BTC.D (Bitcoin Dominance) as a market regime filter. When BTC dominance is rising (slope > 0.12), the market is in "risk-off" mode and long entries on altcoins are filtered. When dominance is falling (slope < -0.12), short entries are filtered.
This filter is optional because the BTC.D data feed may lag during low-liquidity periods.
How The Components Work Together (The Mashup Justification):
The strategy uses a composite scoring system where each signal pathway contributes points:
Trend Break pathway (30 points): Requires EMA ribbon alignment + positive slope + price breaks above recent structure high
Momentum Surge pathway (30 points): Requires MACD histogram > adaptive baseline + MACD line > signal + RSI > 55 + MFI > 55 + volume impulse
Squeeze Release pathway (25 points): Requires BB inside KC (squeeze) then release + momentum bias + histogram confirmation
Micro Pullback pathway (15 points): Requires shallow retracement to fast EMA within established trend + histogram confirmation + volume impulse
Additional modifiers:
+5 points if volume impulse is present, -5 if absent
+5 points in velocity regime, -2 in compression regime
+5 points if cycle is aligned, -5 if counter-trend
A trade only executes when the composite score reaches the minimum threshold (default 55) AND all filters agree (session, cycle bias, BTC dominance if enabled).
This scoring system is the core innovation: instead of requiring ALL conditions to be true (which would generate very few signals) or ANY condition to be true (which would generate too many false signals), the strategy requires ENOUGH conditions to be true, with different conditions contributing different weights based on their reliability.
HOW THE STRATEGY CALCULATES ENTRIES AND EXITS
Entry Logic:
1. Calculate current volatility regime from ATR%
2. Calculate all indicator values (MACD, EMA, RSI, MFI, squeeze, volume)
3. Evaluate each signal pathway and sum points
4. Check all filters (session, cycle, dominance, kill switch)
5. If composite score >= 55 AND all filters pass, generate entry signal
6. Calculate position size based on risk per trade and regime-adjusted stop distance
7. Execute entry with regime name as comment
Position Sizing Formula:
RiskCapital = Equity * (0.65 / 100)
StopDistance = ATR * StopMultiplier(regime)
RawQuantity = RiskCapital / StopDistance
MaxQuantity = Equity * (12 / 100) / Price
Quantity = min(RawQuantity, MaxQuantity)
Quantity = round(Quantity / 0.001) * 0.001
This ensures each trade risks approximately 0.65% of equity regardless of volatility, while capping total exposure at 12% of equity.
Stop Loss Calculation:
Stop distance is ATR multiplied by a regime-specific multiplier:
Compression regime: 1.05x ATR (tighter stops because moves are smaller)
Expansion regime: 1.55x ATR (standard stops)
Velocity regime: 2.1x ATR (wider stops to avoid premature exits during volatility)
Take Profit Calculation:
Target distance is ATR multiplied by regime-specific multiplier and base risk/reward:
Compression regime: 1.6x ATR * 1.8 base R:R * 0.9 regime bonus = approximately 2.6x ATR
Expansion regime: 2.05x ATR * 1.8 base R:R * 1.0 regime bonus = approximately 3.7x ATR
Velocity regime: 2.8x ATR * 1.8 base R:R * 1.15 regime bonus = approximately 5.8x ATR
Trailing Stop Logic:
When adaptive trailing is enabled, the strategy calculates a trailing offset based on ATR and regime:
Compression regime: 1.1x base offset (looser trailing to avoid noise)
Expansion regime: 1.0x base offset (standard)
Velocity regime: 0.8x base offset (tighter trailing to lock in profits during fast moves)
The trailing stop only activates when it would be tighter than the initial stop.
Momentum Fail-Safe Exits:
The strategy closes positions early if momentum reverses:
Long positions close if MACD histogram turns negative OR EMA ribbon structure breaks (fast EMA crosses below mid EMA)
Short positions close if MACD histogram turns positive OR EMA ribbon structure breaks
This prevents holding through momentum reversals even if stop loss hasn't been hit.
Kill Switch:
If maximum drawdown exceeds 6.5%, the strategy disables new entries until manually reset. This prevents continued trading during adverse conditions.
HOW TO USE THIS STRATEGY
Step 1: Apply to Chart
Use a 5-minute chart of a high-liquidity cryptocurrency perpetual (BTC/USDT, ETH/USDT recommended)
Ensure at least 200 bars of history are loaded for indicator stabilization
Use standard candlestick charts only (not Heikin Ashi, Renko, or other non-standard types)
Step 2: Understand the Visual Elements
EMA Ribbon: Three lines (8/21/34 periods) showing trend structure. Bullish when stacked upward, bearish when stacked downward.
Background Color: Shows current volatility regime
- Indigo/dark blue = Compression (low volatility)
- Purple = Expansion (normal volatility)
- Magenta/pink = Velocity (high volatility)
Bar Colors: Reflect signal strength divergence. Brighter colors indicate stronger directional bias.
Triangle Markers: Entry signals. Up triangles below bars = long entry. Down triangles above bars = short entry.
Dashboard (top-right): Real-time display of regime, ATR%, signal strengths, position status, stops, targets, and risk metrics.
Step 3: Interpret the Dashboard
Regime: Current volatility classification (Compression/Expansion/Velocity)
ATR%: Normalized volatility as percentage of price
Long/Short Strength: Current composite signal scores (0-100)
Cycle Osc: Price deviation from 55-period EMA as percentage
Dominance: BTC.D slope and filter status
Position: Current position direction or "Flat"
Stop/Target: Current stop loss and take profit levels
Kill Switch: Status of drawdown protection
Volume Z: Current volume z-score
Impulse: Whether volume impulse condition is met
Step 4: Adjust Parameters for Your Needs
For more conservative trading: Increase "Minimum Composite Signal Strength" to 65 or higher
For more aggressive trading: Decrease to 50 (but expect more false signals)
For higher timeframes (15m+): Increase "Structure Break Window" to 12-15, increase "RSI Momentum Trigger" to 58
For lower liquidity pairs: Increase "Volume Impulse Multiplier" to 1.3, increase slippage in strategy properties
To disable short selling: Uncheck "Enable Short Structure"
To disable BTC dominance filter: Uncheck "BTC Dominance Confirmation"
STRATEGY PROPERTIES (BACKTEST SETTINGS)
These are the exact settings used in the strategy's Properties dialog box. You must use these same settings when evaluating the backtest results shown in the publication:
Initial Capital: $100,000
Justification: This amount is higher than typical retail accounts. I chose this value to demonstrate percentage-based returns that scale proportionally. The strategy uses percentage-based position sizing (0.65% risk per trade), so a $10,000 account would see the same percentage returns with 10x smaller position sizes. The absolute dollar amounts in the backtest should be interpreted as percentages of capital.
Commission: 0.04% (commission_value = 0.04)
Justification: This reflects typical perpetual futures exchange fees. Major exchanges charge between 0.02% (maker) and 0.075% (taker). The 0.04% value is a reasonable middle estimate. If your exchange charges different fees, adjust this value accordingly. Higher fees will reduce net profitability.
Slippage: 1 tick
Justification: This is conservative for liquid pairs like BTC/USDT on major exchanges during normal conditions. For less liquid altcoins or during high volatility, actual slippage may be higher. If you trade less liquid pairs, increase this value to 2-3 ticks for more realistic results.
Pyramiding: 1
Justification: No position stacking. The strategy holds only one position at a time. This simplifies risk management and prevents overexposure.
calc_on_every_tick: true
Justification: The strategy evaluates on every price update, not just bar close. This is necessary for scalping timeframes where waiting for bar close would miss opportunities. Note that this setting means backtest results may differ slightly from bar-close-only evaluation.
calc_on_order_fills: true
Justification: The strategy recalculates immediately after order fills for faster response to position changes.
RISK PER TRADE JUSTIFICATION
The default risk per trade is 0.65% of equity. This is well within the TradingView guideline that "risking more than 5-10% on a trade is not typically considered viable."
With the 12% maximum exposure cap, even if the strategy takes multiple consecutive losses, the total risk remains manageable. The kill switch at 6.5% drawdown provides additional protection by halting new entries during adverse conditions.
The position sizing formula ensures that stop distance (which varies by regime) is accounted for, so actual risk per trade remains approximately 0.65% regardless of volatility conditions.
SAMPLE SIZE CONSIDERATIONS
For statistically meaningful backtest results, you should select a dataset that generates at least 100 trades. On 5-minute BTC/USDT charts, this typically requires:
2-3 months of data during normal market conditions
1-2 months during high-volatility periods
3-4 months during low-volatility consolidation periods
The strategy's selectivity (requiring 55+ composite score plus all filters) means it generates fewer signals than less filtered approaches. If your backtest shows fewer than 100 trades, extend the date range or reduce the minimum signal strength threshold.
Fewer than 100 trades produces statistically unreliable results. Win rate, profit factor, and other metrics can vary significantly with small sample sizes.
STRATEGY DESIGN COMPROMISES AND LIMITATIONS
Every strategy involves trade-offs. Here are the compromises made in this design and the limitations you should understand:
Selectivity vs. Opportunity Trade-off
The 55-point minimum threshold filters many potential trades. This reduces false signals but also misses valid setups that don't meet all criteria. Lowering the threshold increases trade frequency but decreases win rate. There is no "correct" threshold; it depends on your preference for fewer higher-quality signals vs. more signals with lower individual quality.
Regime Classification Lag
The ATR-based regime detection uses historical data (21 periods + 13-period smoothing). It cannot predict sudden volatility spikes. During flash crashes or black swan events, the strategy may be classified in the wrong regime for several bars before the classification updates. This is an inherent limitation of any lagging indicator.
Indicator Parameter Sensitivity
The default parameters (MACD 8/21/5, EMA 8/21/34, RSI 21, etc.) are tuned for BTC/ETH perpetuals on 5-minute charts during 2024 market conditions. Different assets, timeframes, or market regimes may require different parameters. There is no guarantee that parameters optimized on historical data will perform similarly in the future.
BTC Dominance Filter Limitations
The CRYPTOCAP:BTC.D data feed may lag during low-liquidity periods or weekends. The dominance slope calculation uses a 5-bar SMA, adding additional delay. If you notice the filter behaving unexpectedly, consider disabling it.
Backtest vs. Live Execution Differences
TradingView backtesting does not replicate actual broker execution. Key differences:
Backtests assume perfect fills at calculated prices; real execution involves order book depth, latency, and partial fills
The calc_on_every_tick setting improves backtest realism but still cannot capture sub-bar price action or order book dynamics
Commission and slippage settings are estimates; actual costs vary by exchange, time of day, and market conditions
Funding rates on perpetual futures are not modeled in backtests and can significantly impact profitability over time
Exchange-specific limitations (position limits, liquidation mechanics, order types) are not modeled
Market Condition Dependencies
This strategy is designed for trending and breakout conditions. During extended sideways consolidation with no clear direction, the strategy may generate few signals or experience whipsaws. No strategy performs well in all market conditions.
Cryptocurrency-Specific Risks
Cryptocurrency markets operate 24/7 without session boundaries. This means:
No natural "overnight" risk reduction
Volatility can spike at any time
Liquidity varies significantly by time of day
Exchange outages or issues can occur at any time
WHAT THIS STRATEGY DOES NOT DO
To be straightforward about limitations:
This strategy does not guarantee profits. Past backtest performance does not indicate future results.
This strategy does not predict the future. It reacts to current conditions based on historical patterns.
This strategy does not account for funding rates, which can significantly impact perpetual futures profitability.
This strategy does not model exchange-specific execution issues (partial fills, requotes, outages).
This strategy does not adapt to fundamental news events or black swan scenarios.
This strategy is not optimized for all market conditions. It may underperform during extended consolidation.
IMPORTANT RISK WARNINGS
Past performance does not guarantee future results. The backtest results shown reflect specific historical market conditions and parameter settings. Markets change constantly, and strategies that performed well historically may underperform or lose money in the future. A single backtest run does not constitute proof of future profitability.
Trading involves substantial risk of loss. Cryptocurrency derivatives are highly volatile instruments. You can lose your entire investment. Only trade with capital you can afford to lose completely.
This is not financial advice. This strategy is provided for educational and informational purposes only. It does not constitute investment advice, trading recommendations, or any form of financial guidance. The author is not a licensed financial advisor.
You are responsible for your own decisions. Before using this strategy with real capital:
Thoroughly understand the code and logic by reading the open-source implementation
Forward test with paper trading or very small positions for an extended period
Verify that commission, slippage, and execution assumptions match your actual trading environment
Understand that live results will differ from backtest results
Consider consulting with a qualified financial advisor
No guarantees or warranties. This strategy is provided "as is" without any guarantees of profitability, accuracy, or suitability for any purpose. The author is not responsible for any losses incurred from using this strategy.
OPEN-SOURCE CODE STRUCTURE
The strategy code is organized into these sections for readability:
Configuration Architecture: Input parameters organized into logical groups (Core Controls, Optimization Constants, Regime Intelligence, Signal Pathways, Risk Architecture, Visualization)
Helper Functions: calcQty() for position sizing, clamp01() and normalize() for value normalization, calcMFI() for Money Flow Index calculation
Core Indicator Engine: EMA ribbon, ATR and regime classification, MACD with adaptive baseline, RSI, MFI, volume analytics, cycle oscillator, BTC dominance filter, squeeze detection
Signal Pathway Logic: Trend break, momentum surge, squeeze release, micro pullback pathways with composite scoring
Entry/Exit Orchestration: Signal filtering, position sizing, entry execution, stop/target calculation, trailing stop logic, momentum fail-safe exits
Visualization Layer: EMA plots, regime background, bar coloring, signal labels, dashboard table
You can read and modify any part of the code. Understanding the logic before deployment is strongly recommended.
- Made with passion by officialjackofalltrades
Candle Boxes (Border + Midline + Open level)📦 Candle Boxes (Border + Midline + Open Level)
Candle Boxes is a visual multi-timeframe (HTF) tool designed to display higher-timeframe candle structure directly on a lower-timeframe chart.
It helps traders understand HTF context without constantly switching between timeframes.
🔍 What this indicator displays
For each HTF candle, the indicator draws:
HTF Box
Top = HTF High
Bottom = HTF Low
Horizontal span = full HTF candle duration
Border color
Bullish HTF candle → bullish color
Bearish HTF candle → bearish color
Midline (50%) – optional
Exact midpoint of the HTF range: (High + Low) / 2
HTF Open level – optional
Horizontal line at the HTF candle open price
All elements are drawn without background fill to keep the chart clean and readable.
⏱ Multi-Timeframe logic
HTF is selected using the HTF (box timeframe) input
Data is retrieved via request.security() with no repainting
Levels update only while the HTF candle is forming
Once the HTF candle closes, its box and lines remain fixed
🧠 Intended use
This indicator is designed for:
visualizing higher-timeframe context on lower charts
analyzing HTF structure without changing timeframe
supporting:
support & resistance analysis
price action studies
intraday and swing trading context
This tool does not generate buy/sell signals and is not a trading strategy.
⚙️ Settings
HTF & history
HTF (box timeframe) – higher timeframe used to build boxes
Keep last HTF boxes – number of most recent HTF boxes to keep
used to comply with TradingView object limits
the script automatically removes the oldest boxes and lines
Visual options
Border (on/off, width, transparency, colors)
Midline (on/off, colors, transparency)
HTF Open line (on/off, color, width, transparency)
⚠️ Important notes
TradingView enforces strict limits on drawn objects (boxes and lines)
This indicator is optimized to:
display as much historical data as technically possible
automatically manage and delete older objects
Higher HTF → fewer boxes visible in history
Lower HTF → more boxes, faster object-limit usage
🔁 Suggested Timeframe Combinations
This indicator is designed to work best when the selected HTF is significantly higher than the chart timeframe.
Below are practical, commonly used combinations:
Intraday trading
Chart: 5m → HTF: 1H
Chart: 15m → HTF: 4H
Useful for identifying higher-timeframe structure during active trading sessions.
Swing trading
Chart: 30m → HTF: 4H
Chart: 1H → HTF: Daily
Helps visualize major HTF ranges and key levels while managing trades over multiple days.
Higher-timeframe analysis
Chart: 1H → HTF: Weekly
Chart: 4H → HTF: Weekly
Best suited for understanding broader market context, range behavior, and HTF price positioning.
General guideline
A 4× to 8× ratio between chart timeframe and HTF is usually a good starting point
Larger ratios provide cleaner structure but fewer visible boxes
Smaller ratios provide more detail but consume object limits faster
These combinations are guidelines only and can be adjusted based on personal trading style and market conditions.
📌 Disclaimer
This indicator is a visual analysis tool only.
It does not provide financial advice or guarantee any trading outcome.
All trading decisions are made at your own risk.
Always combine this tool with your own analysis and risk management rules.
RSI & MACD SuiteRSI & MACD Suite
A professional combination of two essential momentum indicators - Relative Strength Index (RSI) and Moving Average Convergence Divergence (MACD) - designed to provide comprehensive market analysis in a single, clean interface.
OVERVIEW
This indicator combines the power of RSI and MACD to help traders identify potential overbought/oversold conditions, momentum shifts, and trend changes. Both indicators are displayed with enhanced visual elements including gradient fills, customizable bands, and clear signal lines.
FEATURES
RSI (Relative Strength Index)
- Customizable Period: Adjustable RSI length (default: 14)
- Visual Zones: Overbought zone (above 70) with green gradient, Oversold zone (below 30) with red gradient, Background fill between bands for easy reference
- Key Levels: Clear horizontal lines at 30, 50, and 70
- Flexible Source: Choose any price source (close, open, high, low, etc.)
MACD (Moving Average Convergence Divergence)
- Customizable Parameters: Fast Length (default: 12), Slow Length (default: 26), Signal Length (default: 9)
- MA Type Selection: Choose between EMA or SMA for both oscillator and signal line
- Color-Coded Histogram: Green for bullish momentum, Red for bearish momentum
- Clear Signal Lines: Blue MACD line and orange Signal line for easy identification
ALERT CONDITIONS
The indicator includes 7 built-in alert conditions:
RSI Alerts:
1. RSI Overbought - Triggers when RSI crosses above 70
2. RSI Oversold - Triggers when RSI crosses below 30
3. RSI Midline Cross - Triggers when RSI crosses the 50 level
MACD Alerts:
4. MACD Bullish Cross - Triggers when MACD line crosses above Signal line
5. MACD Bearish Cross - Triggers when MACD line crosses below Signal line
6. MACD Histogram Bullish - Triggers when histogram crosses above zero
7. MACD Histogram Bearish - Triggers when histogram crosses below zero
CUSTOMIZATION
Clean Organization
- Inputs Tab: Separate groups for RSI and MACD settings
- Style Tab: All visual elements clearly labeled with "RSI -" or "MACD -" prefixes for easy identification
- Full Control: Customize colors, line widths, and visibility of all elements
Visual Clarity
- Professional color scheme optimized for both light and dark themes
- Gradient fills for intuitive zone identification
- Clear separation between RSI and MACD elements
SETTINGS
RSI Settings
- Length: Lookback period for RSI calculation (default: 14)
- Source: Price data to use for calculation (default: close)
MACD Settings
- Source: Price data to use for calculation (default: close)
- Fast Length: Period for fast moving average (default: 12)
- Slow Length: Period for slow moving average (default: 26)
- Signal Length: Period for signal line (default: 9)
- Oscillator MA Type: EMA or SMA for MACD calculation
- Signal MA Type: EMA or SMA for signal line
TECHNICAL DETAILS
- Pine Script Version: v6
- Indicator Type: Oscillator (subplot)
- Calculation Method: RSI uses Relative Strength Index with RMA smoothing, MACD uses Fast MA minus Slow MA with configurable MA types
- Input Validation: Built-in checks to ensure valid parameter combinations
NOTES
- Default settings are industry-standard values (RSI: 14, MACD: 12/26/9)
- All visual elements can be hidden/shown individually in the Style tab
- Alerts must be manually created by users through TradingView's alert system
- This indicator does not repaint - all signals are based on closed candles
WHO SHOULD USE THIS
- Day traders looking for momentum signals
- Swing traders identifying trend changes
- Technical analysts performing multi-indicator analysis
- Traders who want a clean, all-in-one momentum solution
DISCLAIMER
This indicator is for educational and informational purposes only. It does not constitute financial advice. Always perform your own analysis and risk assessment before making trading decisions.
Version: 1.0
Author: aaboomar
License: Mozilla Public License 2.0
SNIPER ORB V4SNIPER ORB V4
### What It Does
Draws 5/15/30 minute Opening Range Breakout levels with confirmation patterns.
### Session Times
| Session | Hours (ET) |
|---------|------------|
| London | 3:00 - 9:30 |
| New York | 9:30 - 17:00 |
### Levels Drawn
| Level | Color Default | Purpose |
|-------|---------------|---------|
| 5m ORB H/L | Blue | Scalp levels |
| 15m ORB H/L | Cyan | Swing levels |
| 30m ORB H/L | Purple | **Primary levels** |
| Targets 1x-3x | Green/Red | Profit targets |
### Signals
| Signal | Meaning | Priority |
|--------|---------|----------|
| `ORB↑` | Confirmed breakout up | ⭐⭐ |
| `ORB↓` | Confirmed breakout down | ⭐⭐ |
| `RT↑` | Retest long entry | ⭐⭐⭐ **BEST** |
| `RT↓` | Retest short entry | ⭐⭐⭐ **BEST** |
| `FVG↑` | FVG zone long | ⭐⭐⭐ |
| `FVG↓` | FVG zone short | ⭐⭐⭐ |
| `ABS` | Absorption (caution) | ⚠️ Warning |
| `FK!` | Fakeout detected | ❌ Avoid |
### FVG Zones (Blue Boxes)
- **Bullish FVG** = Gap below price → Support zone
- **Bearish FVG** = Gap above price → Resistance zone
- **Best Entry** = Price touches FVG + Engulfing candle
### Bar Colors
| Color | Meaning |
|-------|---------|
| Bright Green | Bullish breakout confirmed |
| Bright Red | Bearish breakout confirmed |
| Light Green | Bullish retest entry |
| Light Red | Bearish retest entry |
### Info Table Key
| Field | Green = Good | Yellow/Orange = Caution |
|-------|--------------|-------------------------|
| Volume | HIGH VOL | Normal |
| Body | STRONG (70%+) | Normal/Weak |
| Status | BROKE HIGH/LOW | IN RANGE |
### Quick Trade Plan
```
LONG:
1. Wait for 30m ORB to complete
2. Watch for ORB↑ breakout
3. WAIT for pullback to ORB High
4. Enter on RT↑ or FVG↑ signal
5. SL = Below 30m ORB Low
6. TP = Target 1x or 2x
SHORT:
1. Wait for 30m ORB to complete
2. Watch for ORB↓ breakout
3. WAIT for pullback to ORB Low
4. Enter on RT↓ or FVG↓ signal
5. SL = Above 30m ORB High
6. TP = Target 1x or 2x
```
---
Strat Structure Engine Strat Structure Engine + Trapped Traders – TradingView Public Library Description (Moderator-Optimized)
Overview:
The Strat Structure Engine + Trapped Traders script is a self-contained price action indicator that identifies high-probability market structure patterns using The Strat methodology. It integrates bar-based structure, volatility (ATR), and volume analysis to detect potential reversals, exhaustion points, and trapped trader scenarios directly on the chart. Unlike generic indicators, it grades signals for reliability and visual clarity, providing actionable insight for traders.
Originality and Purpose:
This script is original because it combines multiple structure-based patterns into a single, coherent system:
3-Bar → Failed 2 (3→F2) – A tiered scoring system evaluates the strength of a strict 3-bar structure followed by a Failed 2 bar.
2-Bar → Failed 2 (2→F2, A+ only) – Filters only the strongest 2-bar setups followed by a Failed 2 for high-confidence reversal signals.
Failed 2 → Failed 2 (Dragon’s Tail / F2→F2) – Detects consecutive Failed 2 bars in opposite directions, signaling trapped traders and quick reversals.
Each pattern is evaluated using objective criteria: bar range relative to ATR, Failed 2 close relative to the preceding structure, body-to-range ratio, and volume spikes compared to recent averages. The combination of multiple patterns with tiered scoring and volume confirmation is unique and cannot be reproduced by simply merging standard indicators.
Signal Evaluation and Scoring:
1. 3→F2 (Tiered Scoring)
Criteria:
3-bar range vs ATR
Failed 2 close relative to 3-bar midpoint
Body-to-range ratio
Volume vs recent SMA
Tier Grades: A+, A, B, —
Purpose: Helps traders prioritize high-confidence reversal setups while filtering out weaker signals.
2. 2→F2 (A+ Only)
Evaluates strict 2-bar structures followed by a Failed 2 bar.
Displays only the strongest A+ setups to reduce noise.
3. F2→F2 (Dragon’s Tail)
Detects consecutive Failed 2 bars in opposite directions.
Highlights trapped trader zones and potential rapid reversals.
Volume and Volatility Integration:
ATR normalization ensures bar ranges are contextualized to market volatility.
SMA volume averaging confirms unusual activity, filtering signals with low participation.
This ensures signals are structurally valid and contextually significant.
Chart and Visual Clarity:
Labels are color-coded (green for bullish, red for bearish) and include tier/score for easy interpretation.
Only confirmed patterns are labeled, avoiding clutter or ambiguous markings.
Works on standard candlestick charts (does not use Heikin Ashi, Renko, or Range bars), ensuring realistic and reliable signals.
Customization and Alerts:
Toggle each pattern on/off: 3→F2, 2→F2, F2→F2
Adjust ATR length and volume average period per instrument or timeframe.
Alerts available for all patterns for bar-close confirmation, enabling real-time monitoring or integration with trading systems.
Practical Trading Use:
Identify exhaustion points, trapped traders, and reversals.
Can be used alongside VWAP, liquidity zones, fair value gaps, and session extremes for enhanced entry and exit decisions.
Focus on A+ / A tier signals for execution; use B-tier signals for context or partial entries.
Designed for multiple instruments (equities, futures, Forex) and adaptable across timeframes.
Compliance and Risk Notes:
Signals are historical, not predictive.
Follow proper risk management and do not rely solely on indicator signals.
Past performance does not guarantee future results.
Does not use request.security() with lookahead; all signals are confirmed on bar close.
✅ Key Advantages:
Fully self-contained, original methodology.
Multi-pattern integration with tiered scoring for reliability.
Volume and ATR confirmation reduces noise and false signals.
Clean, uncluttered chart output that is easy to read and interpret.
This version explicitly addresses moderation points:
Originality: explains why the mashup is necessary and unique.
Usefulness: shows exactly how traders can use it.
Chart clarity: confirms labels are meaningful, non-redundant, and easy to read.
Signal realism: bars are confirmed, no lookahead used.
SMC-Clean v5 [BOS + OB + FVG]SMC-Clean v5 is a clean and lightweight Smart Money Concepts indicator designed to visualize market structure, Order Blocks, and Fair Value Gaps in a clear and non-repainting way.
The indicator automatically identifies Break of Structure (BOS) and Change of Character (CHoCH) using pivot-based structure logic, helping traders understand trend continuation and potential reversals. Bullish and bearish structures are clearly marked on the chart for quick visual interpretation.
It also detects Bullish and Bearish Order Blocks based on strong displacement candles filtered by ATR. Order Blocks are drawn as zones and are automatically removed once mitigated, keeping the chart clean and relevant.
Additionally, the script highlights Fair Value Gaps (FVG) using a three-candle imbalance model, filtered by minimum ATR size. These gaps can be used for pullback entries, mean reversion, and confluence with structure and Order Blocks.
SMC-Clean v5 is designed to be minimal, fast, and practical. It works on all markets and timeframes and is best used as a market structure and context tool, not as a standalone signal system. The script can be further customized and expanded into advanced SMC models.
MES ORB Bulletproof + PSAR + SMA200 + BB(21) by PantelisMES ORB Bulletproof + PSAR + SMA200 + BB(21) by Pantelis
Order Blocks & Breaker BlocksOrder Blocks & Breaker Blocks
Enhance your trading with this advanced indicator that highlights Bullish and Bearish Order Blocks (OBs) and Breaker Blocks on any chart. It is designed to help traders quickly identify key supply and demand zones and potential reversal points with clear visual cues.
Key Features
Automatically highlights Bullish and Bearish OBs.
Detects Breaker Blocks when OB levels are violated, signaling potential trend shifts.
Fully customizable visuals:
Box and Breaker Box transparency
Line transparency, width, and style (Solid, Dashed, Dotted)
Option to calculate OBs using candle body or high/low.
Adjustable number of recent OBs displayed.
Recommended Settings by Timeframe
Timeframe Swing Lookback Show OBs Notes
5 min 10 3 For fast intraday trading and scalping.
15 min 12 3 For intraday trend analysis
1H 15 3 Ideal for intraday support/resistance and breakout detection.
4H 22 3 Captures stronger OBs for swing trades.
Daily 22 3 Highlights major supply and demand zones for trend trading.
Weekly 30 2 Focuses on long-term OBs for strategic analysis.
These values provide a good balance of accuracy and chart clarity across all timeframes.
Why Use This Indicator
Quickly visualize key supply and demand zones.
Identify potential reversals and breakout points.
Improve trade timing and risk management with enhanced visual clarity.
Works across all major timeframes, making it suitable for intraday, swing, and long-term traders.
LTF Distribution Analyzer█ OVERVIEW
LTF Distribution Analyzer reveals the hidden price distribution and order flow within each candle by sampling lower timeframe data. It visualizes where prices concentrated, how volume was distributed between buyers and sellers, and identifies divergences between price action and actual market participation.
Unlike traditional candlesticks showing only OHLC, this indicator exposes the statistical structure of price movement using quartile-based visualization combined with delta analysis.
█ CONCEPTS
The indicator is built on two core concepts:
1 — Statistical Price Distribution
Each candle contains many lower timeframe bars. By analyzing these bars, we calculate:
• Q1 (25th percentile) - 25% of prices traded below this level
• Q3 (75th percentile) - 75% of prices traded below this level
• Median - The middle price value
• IQR (Interquartile Range) - The Q3-Q1 spread containing 50% of all prices
2 — Volume Delta Analysis
Delta measures buying vs selling pressure:
• Delta = Buy Volume − Sell Volume
• Positive delta = More aggressive buying
• Negative delta = More aggressive selling
• Delta Ratio normalizes this as a percentage
█ HOW IT WORKS
The indicator fetches lower timeframe data using request.security_lower_tf() and processes it to create a statistical summary:
Step 1: Timeframe Calculation
• Auto mode: Chart timeframe ÷ Auto Divisor = LTF
• Example: 1H chart ÷ 1000 = ~3.6 second sampling
• Manual mode: User-specified timeframe
Step 2: Data Collection
• Collects all close prices from LTF bars within current candle
• Aggregates volume by candle direction (bullish/bearish)
Step 3: Statistical Analysis
• Calculates quartiles (Q1, Q3), median, and boundaries
• Identifies outliers using 1.5× and 3× IQR fences
• Finds Volume POC (price with highest volume)
Step 4: Delta Calculation
• Sums buy volume (from bullish LTF bars)
• Sums sell volume (from bearish LTF bars)
• Computes delta ratio for color determination
█ VISUAL ELEMENTS
┌─────────────────────────────────────────┐
│ ▲ Extreme outlier (3× IQR) │
│ △ Mild outlier (1.5× IQR) │
│ ─ Upper whisker cap │
│ ┊ Whisker line (dashed) │
│ ▄ IQR Box (Q1 to Q3 range) │
│ ━ Volume POC (highest volume) │
│ ● Median (green=bull, red=bear) │
│ ┊ Whisker line (dashed) │
│ ─ Lower whisker cap │
│ ▽ Mild outlier │
│ ▼ Extreme outlier │
└─────────────────────────────────────────┘
█ COLOR SYSTEM
Colors indicate the relationship between candle direction and order flow:
🟢 TEAL (Positive Flow)
Bullish candle + Positive delta
→ Strong buying confirmation
→ Trend continuation signal
🔴 RED (Negative Flow)
Bearish candle + Negative delta
→ Strong selling confirmation
→ Trend continuation signal
🟠 ORANGE (Mixed Signal A)
Bullish candle + Negative delta
→ Price up but sellers dominated
→ Potential weakness/reversal warning
🔵 BLUE (Mixed Signal B)
Bearish candle + Positive delta
→ Price down but buyers dominated
→ Potential accumulation/reversal signal
█ SETTINGS
Timeframe Settings
• LTF Mode — Auto or Manual selection
• Manual Timeframe — Specific LTF when in Manual mode
• Auto Divisor — Higher = finer granularity (default: 1000)
• Allow Sub-Minute — Requires Premium subscription
Visual Style
• Positive/Negative Flow colors — Customize the 4 flow colors
• Box Transparency — Opacity of the quartile box (0-100%)
Statistics Display
• Show Statistics Panel — Toggle on-chart stats table
• Show Timeframe Badge — Toggle LTF indicator badge
• Panel Position — Choose corner placement
• Panel Size — Text size selection
█ HOW TO USE
1. Divergence Detection
Look for color mismatches:
• Orange bars in uptrend = weakness, potential reversal
• Blue bars in downtrend = strength, potential reversal
• Multiple consecutive divergent bars strengthen signal
• Wait for confirmation before entry
2. Volume POC Trading
• POC marks where most volume traded
• POC clusters at similar levels = strong S/R zone
• Price often returns to POC before continuing
• Use POC for entry/exit targeting
3. Trend Confirmation
• Consecutive teal = strong uptrend
• Consecutive red = strong downtrend
• Median position shows intrabar momentum
• Wide boxes indicate high volatility
4. Outlier Analysis
• Extreme markers (▲▼) often mark stop hunts
• Consider fading extremes at key levels
• Mild markers (△▽) = areas to watch
█ RECOMMENDED SETTINGS
For different chart timeframes:
│ Chart TF │ Auto Divisor │ Resulting LTF │
├──────────┼──────────────┼───────────────┤
│ 15M │ 1500 │ ~1M │
│ 1H │ 1000 │ ~3-4s │
│ 4H │ 600 │ ~24s │
│ Daily │ 500 │ ~2-3M │
Tip: Check the TF badge to confirm active sampling timeframe.
█ BEST PRACTICES
Do:
✓ Use "Bars" chart style for cleanest display
✓ Combine with support/resistance analysis
✓ Wait for confirmation bars
✓ Note POC clusters across multiple bars
✓ Adjust divisor based on your timeframe
Avoid:
✗ Trading single bar signals alone
✗ Using during low volume periods
✗ Trading immediately after news releases
✗ Ignoring overall market context
█ LIMITATIONS
• Requires adequate market liquidity for reliable signals
• Sub-minute timeframes need Premium subscription
• Historical data depth depends on TradingView's data availability
• Delta calculation assumes volume direction matches candle direction
█ NOTES
This indicator works best on liquid markets (forex majors, major indices, popular stocks/crypto) where volume data is meaningful.
The gray dotted vertical line marks where LTF data becomes available - bars before this line won't display the indicator.
For questions or suggestions, leave a comment below.
Nikhil TimezoneNikhil Timezone Indicator
The Nikhil Timezone indicator is a time-based visual tool designed to help traders identify and analyze key intraday price behavior using Indian Standard Time (IST).
🔶 11:30–12:30 IST Body Range Zone
Automatically highlights the candle body range formed between 11:30 AM and 12:30 PM IST.
The zone is drawn using only open and close prices (not wicks), giving a clearer representation of real buying and selling pressure.
The box dynamically expands during the session to capture the highest and lowest candle bodies within this time window.
Useful for identifying midday consolidation, support/resistance zones, and potential breakout or rejection areas later in the session.
🔴 2:30 PM IST Candle Marker
Marks the 2:30 PM IST candle with a vertical dotted red line.
Adds a label for quick visual identification.
Helpful for traders who track late-session momentum, institutional activity, or pre-close setups.
📈 Best Use Cases
Intraday trading (especially index and liquid stocks)
Breakout and range-expansion strategies
Time-based market structure analysis
IST-focused trading workflows
This indicator is lightweight, non-repainting, and works seamlessly across intraday timeframes.
Wedge Green SquadWedge GS automatically detects confirmed swing highs and lows and draws clean wedge trendlines directly from the true pivot bars. The indicator uses non-repainting pivots and extends the lines forward to highlight contracting price structures, potential breakouts, and compression zones.
Designed for traders who value structure over noise, it works best on higher timeframes and pairs naturally with support, resistance, and volume analysis. This tool focuses on clarity and reliability, not prediction.
NQ Command Center [EOD Predictor]This is a sophisticated Macro-correlated Dashboard designed specifically for trading NQ (Nasdaq 100). It attempts to predict how the daily candle will close (Green or Red) by combining Price Action (Market Structure) with External Market Drivers (Yields, Volatility, Dollar, and Breadth).
How This Script Works
The script assigns a "Score" to current market conditions. The higher the score, the more bullish the prediction. The lower the score, the more bearish.
1. The "Structure" Score (Price Action) It looks at the Daily High/Low (PDH/PDL) and recent daily trend:
Bullish (+1): We are making Higher Highs/Higher Lows, or price is holding in the top 33% of yesterday's range.
Breakout (+2): Price has broken above the Previous Daily High (PDH).
Bearish (-1/-2): We are making Lower Highs, or price has broken below the Previous Daily Low (PDL).
2. The "Macro" Score (External Data) It pulls data from 5 external tickers to see if the environment supports a move:
ADDQ (Breadth): If > 0, more stocks are advancing than declining (Bullish).
VXN (Volatility): If falling, fear is decreasing (Bullish).
DXY (Dollar) & US10Y (Yields): If these are dropping, it is usually good for Tech/Nasdaq (Bullish).
CVD (Volume): Estimates if volume is dominated by buyers or sellers.
3. The Prediction (The Output) It sums these scores.
Total Score ≥ 4: "STRONG GREEN CLOSE 🚀" (High confidence Longs)
Total Score ≤ -4: "STRONG RED CLOSE 🩸" (High confidence Shorts)
Near 0: "CHOP / NEUTRAL" (Avoid trading or take quick scalps).
How to Use It Effectively
Symbol: Open a chart for NQ1! (Nasdaq Futures) or NDX.
Timeframe: This is designed for Intraday trading. Use 5m, 15m, or 1h charts. (Do not use on Daily chart, as the table lines up intraday data against daily history).
The Dashboard: Look at the table in the top right.
Focus on "AI Forecast": If it says STRONG GREEN, look for Long setups (pullbacks to support).
Check Confidence: If Confidence is "LOW", the macro data might be conflicting with price action (e.g., Price is going up, but Volume is selling). Be careful.
The Lines: The script plots Green (PDH) and Red (PDL) lines on your chart.
These are key reaction points. If price breaks the Green line, the "Live Status" on the dashboard will switch to BREAKOUT.
Smart Money Zones - Multi-Timeframe AnalysisA clean and efficient smart money concepts indicator designed for traders who follow institutional order flow and price imbalances.
Core Features:
Fair Value Gaps (FVG): Automatically detects bullish and bearish imbalances where price moved too fast, leaving gaps that often get filled
Order Blocks (OB): Identifies the last bearish candle before a bullish move (and vice versa) - institutional accumulation/distribution zones
Zone Strength Rating: Each zone is classified as Very Strong, Strong, Medium, or Weak based on size relative to ATR
Multi-Timeframe Trend Panel: Real-time dashboard showing bullish/bearish trend across 7 timeframes (1m, 5m, 15m, 30m, 1H, 4H, 1D)
Smart Features:
Zones automatically extend into the future
Mitigation tracking - zones fade when 50% filled or fully violated
Optional trend filter - only shows zones aligned with the trend
Customizable zone limits to keep your chart clean
Adjustable panel position (4 corners) and size
Color-Coded Zones:
🟢 Bullish FVG (Green) - Support zones
🔴 Bearish FVG (Red) - Resistance zones
🔵 Bullish OB (Blue) - Demand zones
🟠 Bearish OB (Orange) - Supply zones
Perfect for scalpers, day traders, and swing traders who trade reversals at key institutional levels. Combines smart money concepts with multi-timeframe confirmation for higher probability setups.
EMA + Previous Candle High/LowA versatile multi-timeframe indicator that combines customizable EMAs with previous candle levels for precise support/resistance identification.
Key Features:
📊 4 Fully Customizable EMAs:
EMA 9 (Yellow) - Fast-moving for scalping
EMA 20 (Blue) - Short-term trend
EMA 50 (Orange) - Medium-term trend
EMA 200 (White) - Long-term trend direction
Each EMA is independently customizable:
Adjustable period length
Custom color selection
Line thickness (1-5)
Transparency control (0-100%)
📈 Previous Candle Levels:
Displays high/low from any timeframe (default: Daily)
Green line for Previous High
Red line for Previous Low
Customizable line style: Solid, Dashed, or Dotted
Optional shaded zone between high/low with adjustable transparency
Price labels showing exact levels
Configurable line extension (10-200 bars forward)
Use Cases:
Day traders: Use Daily high/low with fast EMAs (9/20) for intraday support/resistance
Swing traders: Use Weekly high/low with slower EMAs (50/200) for trend confirmation
Scalpers: Combine 5-min previous levels with EMA 9 for quick entries
Position traders: Weekly/Monthly levels with EMA 200 for long-term bias
Why This Indicator:
Previous timeframe highs/lows act as natural support/resistance where price often reacts. Combined with EMAs for trend confirmation, you get clear levels to enter trades with confluence. The full customization allows you to match any trading style or chart theme.
Open Interest Weighted Average Price [Arjo]Open Interest Weighted Average Price , or OIWAP , is a simple visual indicator that shows the average price of an asset based on changes in open interest .
Instead of using trading volume like VWAP, this indicator gives more weight to prices where new futures contracts are being added or removed . This helps highlight the price levels where traders are actively building or closing positions.
The indicator shows:
A main line that represents the average price weighted by open interest changes.
Upper and lower bands (standard deviation bands) that show how far the price moves away from this average.
OIWAP is mainly useful for NSE futures markets , where open interest data is available. It helps traders visually understand where most market participation and positioning are taking place relative to price .
Concepts:
Applies statistical concepts, including weighted averaging and standard deviation, to open interest data
Uses the absolute change in open interest as a weighting factor for each price point
Creates a dynamic average that reflects where significant open interest activity has occurred during a given period
Standard deviation bands are computed from this weighted average to show the statistical spread of prices around the OIWAP line
Resets calculations based on user-selected time periods (daily, weekly, monthly, or session-based)
Allows for fresh analysis at regular intervals
Similar concept to volume-weighted average price (VWAP) indicators, but uses open interest changes as the weighting component
Features:
Weighted Average: Calculates a central line based on contract activity.
Flexible Anchors: Allows users to choose the reset period for the calculation.
Volatility Bands: Displays outer and mid-bands to visualize price stretches.
Data Check: Built-in alerts notify you if Open Interest data is missing for a symbol.
Visual Zones: Color-coded areas help identify price location at a glance.
How To Use
When you add the indicator to your chart, you will see:
A main OIWAP line — the open-interest-weighted price level
Mid-bands around the line (±0.5 standard deviations)
Outer bands farther away (±2.0 standard deviations)
Shaded background zones between these lines
You can:
Change the reset period to see how the average behaves over different time ranges
Adjust the timeframe for open-interest data
Turn mid-bands on or off
Adjust colors and styles to improve readability
Conclusion
The OIWAP indicator serves as an educational tool for visualizing the relationship between price movements and open interest activity in futures markets
Presents a weighted average price line along with statistical deviation bands
Offers a structured framework for chart analysis
Customizable settings allow users to adapt the display to their analytical preferences
Maintains focus on visual interpretation rather than directional predictions
Functions as a supplementary charting overlay that may complement other forms of technical and fundamental analysis
Disclaimer
This indicator is for educational and visual-analysis purposes only. It does not provide trading signals, financial advice, or guaranteed outcomes . You should perform your own research and consult a licensed financial professional when needed. All trading decisions are solely the responsibility of the user.
Important High/Low (Manual DateTime Picker + Strong BOS) v2.5📐 Important High / Low(结构趋势指标)使用指南
定位一句话
这是一个 “结构派趋势确认 + 关键防守位识别” 的指标
👉 不预测行情
👉 不频繁给信号
👉 只在你定义的趋势里,标出 必须尊重的高点 / 低点
一、这个指标解决什么问题?
在一段趋势中,你真正关心的只有三件事:
趋势是否还成立
哪里是“不能被破”的关键结构位
止损应该放在哪里才是“逻辑止损”而不是情绪止损
本指标通过 结构拐点(Pivot)+ 结构突破(BOS)确认 来回答这三件事。
二、核心设计理念(非常重要)
1️⃣ 重要低点 > 次要低点
不是每个低点都重要
只有“低点 → 后续出现强势突破并创新高”
才会被确认成 重要低点
2️⃣ 上涨趋势里,只允许重要低点
不会在上涨趋势里画“重要高点”
下跌趋势同理
3️⃣ 所有重要点,都是事后确认
这是优点,不是缺点
它保证:
被画出来的点,一定“已经被市场认可”
三、输入参数详解(逐个解释)
🟦 A. 趋势控制(最重要)
Trend mode
选项 含义
Auto(EMA144) 自动趋势(推荐)
Manual(Time Window) 手动定义趋势区间
Auto(EMA144)(默认、最常用)
价格在 EMA144 上方 → 视为上涨趋势
价格在 EMA144 下方 → 视为下跌趋势
📌 行为约束:
上涨趋势:只画重要低点
下跌趋势:只画重要高点
适合 90% 日内 / 波段交易
Manual(Time Window)
当你已经主观判断趋势方向时使用。
配套参数:
Manual trend direction
Up:只允许重要低点
Down:只允许重要高点
Use manual time window?
打开后,才会启用时间段控制
Manual trend START / END (date & time)
用 TradingView 日期时间选择器 直接选
不需要手填时间戳
📌 常见用途:
回测一整段趋势
训练“趋势内只做一个方向”
事件行情 / 主升浪
🟦 B. 结构拐点识别
Pivot strength (L/R)
决定一个高点 / 低点
需要左右各多少根K线确认
周期 推荐值
1–5 分钟 2–3
15–30 分钟 3–5
1 小时 5–7
4 小时+ 7–10
📌 数值越大:
结构越“干净”
但确认越慢
🟦 C. 结构突破(BOS)规则
BOS uses Wick (High/Low)
true(推荐):
影线突破就算结构突破
false:
必须收盘价突破(更保守)
Must keep making NEW high/low
是否要求“持续创新高 / 新低”
选项 效果
true(强烈推荐) 过滤横盘、假突破
false 信号更多,但更杂
📌 打开后:
每一次 BOS
必须比上一次突破更高 / 更低
才会确认新的重要点
这是“稳”的关键来源之一。
🟦 D. 强势K线过滤(可选)
Use strong candle filter on BOS bar?
决定 BOS 那根K线是否必须是强势K线
Body / Range >=
K线实体占整根K线的比例
推荐:
0.5:宽松
0.6:平衡(推荐)
0.7:非常严格
Range >= ATR *
BOS K线的波动幅度
推荐:
日内:0.8 ~ 1.0
波段:1.0 ~ 1.2
📌 强势过滤适合:
山寨币
假突破多的品种
你想 少而准
🟦 E. 画线与止损体验
Line offset (ATR multiplier)
决定重要高/低点横线
离影线多远
市场 推荐
BTC / ETH 0.1 ~ 0.15
山寨 / 高波动 0.2 ~ 0.3
Short line length (bars)
横线长度
只影响视觉,不影响逻辑
推荐:5 ~ 8
四、不同周期的推荐模板
🔹 日内模板(15m / 30m)
Trend mode: Auto(EMA144)
Pivot strength: 3
Use wick BOS: true
Must make new high/low: true
Strong candle filter: true
Body/Range: 0.6
ATR multiple: 1.0
Line offset: 0.15
特点:
结构清晰
假突破明显减少
适合顺趋势波段
🔹 波段模板(1h / 4h)
Trend mode: Auto(EMA144)
Pivot strength: 5–7
Use wick BOS: true
Must make new high/low: true
Strong candle filter: false 或 true
Line offset: 0.2
特点:
重要点很少
但每一个都极具意义
非常适合“结构止损”
五、如何用它做交易(一句话版)
只在趋势方向上进场,
止损永远放在最近的“重要结构点”之外,
一旦被破,承认你的趋势假设是错的。
六、什么时候你“应该退出”,而不是“继续找理由”
多单:重要低点被有效跌破
空单:重要高点被有效突破
📌 这不是指标失效
📌 而是 你的趋势已经结束
📐 Important High / Low
User Guide (English Version)
One-line description
A market structure–based trend confirmation and key defense level indicator
Not predictive
No frequent signals
Only marks critical highs/lows inside a defined trend
1. What problem does this indicator solve?
In a trend, traders only care about:
Is the trend still valid?
Which level must NOT be broken?
Where should a logical stop-loss be placed?
This indicator answers these questions using
Pivot structure + Break of Structure (BOS).
2. Core Concepts
1️⃣ Important Low > Minor Low
Not every low is important
A low becomes important only if price later breaks structure and makes a new high
2️⃣ In an uptrend, only Important Lows exist
No important highs in uptrends
Vice versa for downtrends
3️⃣ All important points are confirmed after the fact
This is a feature, not a flaw
Ensures all marked levels are validated by price action
3. Input Parameters Explained
🟦 A. Trend Control (Most Important)
Trend mode
Option Meaning
Auto(EMA144) Automatic trend (recommended)
Manual(Time Window) Manually defined trend
Auto(EMA144)
Price above EMA144 → Uptrend
Price below EMA144 → Downtrend
Rules:
Uptrend → only Important Lows
Downtrend → only Important Highs
Manual(Time Window)
Used when you already know the trend direction.
Related inputs:
Manual trend direction
Up → only Important Lows
Down → only Important Highs
Use manual time window?
Enables the time window
Manual trend START / END (date & time)
Select via TradingView date-time picker
No timestamp typing required
🟦 B. Pivot Structure
Pivot strength (L/R)
Defines how many bars on each side confirm a swing point.
Timeframe Suggested
1–5m 2–3
15–30m 3–5
1h 5–7
4h+ 7–10
🟦 C. Break of Structure (BOS)
BOS uses Wick (High/Low)
true → wick break counts (recommended)
false → close break only
Must keep making NEW high/low
Requires continuous higher highs / lower lows.
true (strongly recommended)
Filters chop and fake breaks
Fewer but higher-quality structure points
false
More signals, more noise
🟦 D. Strong Candle Filter (Optional)
Use strong candle filter on BOS bar?
Defines whether the BOS candle must be strong.
Body / Range >=
Body dominance, recommended 0.6
Range >= ATR *
Expansion requirement
Intraday: 0.8–1.0
Swing: 1.0–1.2
🟦 E. Drawing & Stop-Loss Behavior
Line offset (ATR multiplier)
Distance between structure line and candle wick.
Market Suggested
BTC / ETH 0.1–0.15
Altcoins 0.2–0.3
4. Recommended Presets
🔹 Intraday (15m / 30m)
Trend mode: Auto(EMA144)
Pivot strength: 3
Use wick BOS: true
Must make new high/low: true
Strong candle filter: true
Body/Range: 0.6
ATR multiple: 1.0
Line offset: 0.15
🔹 Swing (1h / 4h)
Trend mode: Auto(EMA144)
Pivot strength: 5–7
Use wick BOS: true
Must make new high/low: true
Strong candle filter: optional
Line offset: 0.2
5. Trading Principle (One Sentence)
Trade with the trend,
place stops beyond the most recent important structure level,
and exit immediately when that structure is broken.
CME Quarterly ShiftsCME Quarterly Shifts - Institutional Quarter Levels
Overview:
The CME Quarterly Shifts indicator tracks price action based on actual CME futures contract rollover dates, not calendar quarters. This indicator plots the Open, High, Low, and Close (OHLC) for each quarter, with quarters defined by the third Friday of March, June, September, and December - the exact dates when CME quarterly futures contracts expire and roll over.
Why CME Contract Dates Matter:
Institutional traders, hedge funds, and large market participants typically structure their positions around futures contract expiration cycles. By tracking quarters based on CME rollover dates rather than calendar months, this indicator aligns with how major institutional players view quarterly timeframes and position their capital.
Key Features:
✓ Automatic CME contract rollover date calculation (3rd Friday of Mar/Jun/Sep/Dec)
✓ Displays Quarter Open, High, Low, and Close levels
✓ Vertical break lines marking the start of each new quarter
✓ Quarter labels (Q1, Q2, Q3, Q4) for easy identification
✓ Adjustable history - show up to 20 previous quarters
✓ Fully customizable colors and line widths
✓ Works on any instrument and timeframe
✓ Toggle individual OHLC levels on/off
How to Use:
Quarter Open: The opening price when the new quarter begins (at CME rollover)
Quarter High: The highest price reached during the current quarter
Quarter Low: The lowest price reached during the current quarter
Quarter Close: The closing price from the previous quarter
These levels often act as key support/resistance zones as institutions reference them for quarterly performance, rebalancing, and position management.
Settings:
Display Options: Toggle quarterly break lines, OHLC levels, and labels
Max Quarters: Control how many historical quarters to display (1-20)
Colors: Customize colors for each level and break lines
Styles: Adjust line widths for OHLC levels and quarterly breaks
Best Practices:
Combine with other Smart Money Concepts (liquidity, order blocks, FVGs)
Watch for price reactions at quarterly Open levels
Monitor quarterly highs/lows as potential targets or stop levels
Use on higher timeframes (4H, Daily, Weekly) for clearer institutional perspective
Pairs well with monthly and yearly levels for multi-timeframe confluence
Perfect For:
ICT (Inner Circle Trader) methodology followers
Smart Money Concepts traders
Swing and position traders
Institutional-focused technical analysis
Traders tracking quarterly performance levels
Works on all markets: Forex, Indices, Commodities, Crypto, Stocks
HMA 9/50 Crossover + RSI 50 Filter1. The Core Indicators
HMA 9 (Fast): Acts as the primary trigger line. Its unique calculation minimizes lag compared to standard moving averages, allowing for faster entries.
HMA 50 (Slow): Defines the medium-term trend direction and acts as the "anchor" for crossover signals.
RSI 14: Serves as a "momentum gate." Instead of traditional overbought/oversold levels, we use the 50 midline to confirm that the directional strength supports the crossover.
2. Entry Conditions
Long Entry: Triggered when the HMA 9 crosses above the HMA 50 AND the RSI is greater than 50.
Short Entry: Triggered when the HMA 9 crosses below the HMA 50 AND the RSI is less than 50.
3. Execution & Reversal
This strategy is currently configured as an Always-in-the-Market system.
A "Long" position is automatically closed when a "Short" signal is triggered.
To prevent "pyramiding" (buying multiple positions in one direction), the script checks the current position_size before opening new entries.
How to Use
Timeframe: Optimized for 3-minute (3m) candles but can be tuned for 1m to 15m scalping.
Settings: Use the Inputs panel to adjust HMA lengths based on the volatility of your specific asset (e.g., shorter for stable stocks, longer for volatile crypto).
Visuals:
Aqua Line: HMA 9
Orange Line: HMA 50
Green Background: Bullish RSI Momentum (> 50)
Red Background: Bearish RSI Momentum (< 50)
Risk Disclosure
Whipsaws: This strategy is likely to underperform in sideways markets.
Backtesting: Past performance does not guarantee future results. Always test this strategy in the Strategy Tester with appropriate commission and slippage settings before live use.






















