Strategy

Indicator

Dual Phase Swing Trading IntelligenceCredit: This indicator builds upon the Moving Average Shaded Fill Area Crossover concept originally developed by #aballard11. The visual foundation of using EMA fills to represent trend structure was inspired by their pioneering work in making multi-timeframe trend analysis accessible through clean chart visualization. This implementation has been significantly expanded and rebuilt by The Scalping Ant to create a dual-phase trend system specifically engineered for swing trading on higher timeframes, adding candle coloring logic, dual-signal generation, non-repainting confirmation modes, and real-time dashboard analytics.
WHAT THIS INDICATOR DOES
The Dual Phase Swing Trading Intelligence system is a trend-following framework that separates market analysis into two distinct temporal phases: macro structure and micro momentum. Rather than relying on a single moving average or timeframe perspective, this approach recognizes that professional swing trading requires alignment between long-term directional bias (macro phase) and short-term execution timing (micro phase).
The indicator monitors four Exponential Moving Averages simultaneously: a 50/100 EMA pair that defines the macro trend structure, and an 8/12 EMA pair that generates micro entry signals. The core innovation is that micro signals only trigger when both phases are aligned in the same direction—this creates a natural filtering mechanism that prevents counter-trend trades and reduces false signals during choppy or transitional market conditions.
Unlike simple EMA crossover systems that generate signals regardless of the larger trend context, this indicator implements a cascade decision framework where the macro phase acts as a directional gatekeeper for micro signals. Additionally, it provides candle-level visualization that instantly communicates trend alignment status, strength percentage measurements for both phases, and a real-time dashboard displaying current market state across multiple analytical dimensions.
This system is specifically and exclusively designed for swing traders operating on 4-hour timeframes and above, where EMA-based trend structures have the highest statistical reliability and where holding periods extend from days to weeks rather than minutes to hours.
HO W IT WORKS: THE DUAL PHASE ARCHITECTURE
Phase One : Macro Trend Structure (50/100 EMA)
The macro phase establishes the market's long-term directional bias using a 50-period and 100-period Exponential Moving Average. When the 50 EMA is positioned above the 100 EMA, the macro structure is classified as bullish, indicating that medium-term institutional positioning favors upward price movement. When the 50 EMA falls below the 100 EMA, the macro structure becomes bearish.
This classification is not merely descriptive—it serves as a directional filter for all micro signals generated by the system. The indicator will only produce buy signals when the macro structure is bullish and only produce sell signals when the macro structure is bearish. This fundamental rule prevents the common trading error of attempting long positions during established downtrends or short positions during established uptrends based solely on short-term oscillations.
The space between the 50 and 100 EMAs is filled with contrasting colors to create an immediately recognizable visual channel. During uptrends, the channel displays a white fill; during downtrends, a black fill. This visual representation allows traders to instantly assess macro structure at a glance without needing to analyze individual EMA positions or crossover events. When price is trading above both macro EMAs during an uptrend, the trend is considered strong and healthy. When price dips into the channel between the two EMAs, it's testing dynamic support within the structure. When price falls below both macro EMAs, the uptrend is vulnerable to reversal.
The macro EMAs also function as dynamic support and resistance levels. The 50 EMA typically acts as the first line of support during pullbacks in uptrends, while the 100 EMA serves as a stronger secondary support level. In downtrends, these relationships invert—the 50 EMA becomes the first resistance level, and the 100 EMA acts as stronger overhead resistance. Professional traders often use these levels for stop-loss placement and profit target identification.
[ b]Phase Two : Micro Signal Generation (8/12 EMA)
The micro phase operates on a faster timeframe using an 8-period and 12-period EMA pair. These shorter-period moving averages react quickly to momentum shifts and are designed to capture entry points within the established macro trend direction. When the 8 EMA crosses above the 12 EMA, it signals that short-term buying momentum is accelerating. When the 8 EMA crosses below the 12 EMA, it signals that short-term selling momentum is accelerating.
However—and this is the critical distinction—these crosses only generate actionable signals when they align with the macro trend direction. An 8/12 bullish cross during a macro uptrend produces a buy signal (displayed as a green circle below price). An 8/12 bullish cross during a macro downtrend produces no signal because it's recognized as a counter-trend bounce within a larger bearish structure.
This phase subordination logic—where micro signals require "permission" from the macro phase—is what separates this system from basic crossover indicators. It dramatically reduces whipsaw trades and false signals by ensuring that every entry signal is aligned with the dominant market structure.
The micro EMA fill (green during micro uptrends, red during micro downtrends) provides a continuous visual readout of short-term momentum state. Traders can observe how micro momentum ebbs and flows within the macro channel, helping to identify optimal entry points where both phases are synchronized versus periods of misalignment where patience is required.
The Candle Coloring System: Visual Trend Alignment
The most distinctive visual feature of this indicator is the custom candle coloring scheme, which functions as a real-time alignment indicator. Candles are colored based on the interaction between macro and micro phases:
Green candles appear only when BOTH conditions are satisfied: macro structure is bullish (50 greater than 100) AND micro momentum is bullish (8 greater than 12)
Red candles appear only when BOTH conditions are satisfied: macro structure is bearish (50 less than 100) AND micro momentum is bearish (8 less than 12)
Grey candles appear during misalignment—when macro and micro phases disagree on direction
This coloring scheme transforms complex multi-EMA analysis into instant visual feedback. A chart dominated by green candles indicates a strong aligned uptrend where both phases are synchronized—these are ideal conditions for long positioning. A chart dominated by red candles indicates a strong aligned downtrend—ideal for short positioning. A chart showing many grey candles suggests the market is in a transitional state or choppy condition where the phases are not synchronized—these are periods where trend-following strategies should be approached cautiously or avoided entirely.
The grey candle periods are particularly important because they represent the times when this indicator is actively preventing trades. Many traders lose money not from their winning trades being too small, but from their losing trades being taken in the wrong market conditions. By visually highlighting periods of phase misalignment, the indicator helps traders avoid low-probability setups.
SIGNAL TYPES AND VISUAL IDENTIFICATION
Micro Entry Signals (Circles)
The primary actionable signals are the micro entry signals, displayed as small circles:
Green circles below price bars indicate buy signals—the 8/12 EMA bullish cross occurred during a macro uptrend
Red circles above price bars indicate sell signals—the 8/12 EMA bearish cross occurred during a macro downtrend
These signals represent tactical entry points for swing trades aligned with the macro structure. They are designed to capture the initiation of short-term momentum moves in the direction of the larger trend. Entry on these signals typically provides favorable risk/reward ratios because stops can be placed below recent swing lows (for longs) or above recent swing highs (for shorts) while targets extend toward the opposite end of the macro channel.
Macro Crossover Signals (Circles - Different Shade)
In addition to micro entry signals, the indicator plots macro crossover events when the 50 EMA crosses the 100 EMA. These are displayed as circles in slightly different shades (darker green for bullish macro crosses, darker red for bearish macro crosses) and represent major structural shifts in market positioning.
Macro crossovers are rare events on higher timeframes. On weekly charts, they might occur only a few times per year. On daily charts, several times per year. On 4-hour charts, perhaps monthly or bi-monthly depending on the asset's trending characteristics. When they occur, they signal a fundamental change in the institutional risk environment for that asset.
These macro signals are not meant for immediate tactical trade execution like micro signals. Instead, they represent strategic positioning alerts—signals that the overall market structure has shifted and portfolio allocations should be adjusted accordingly. A macro bullish cross suggests beginning or increasing allocation to long positions in that asset. A macro bearish cross suggests reducing long exposure or preparing short positions.
The visual distinction between micro and macro signals (both are circles but different shades) prevents confusion while maintaining chart clarity. Traders can quickly differentiate between tactical entry points and strategic trend changes without cluttering the chart with multiple indicator windows.
THE DASHBOARD: REAL-TIME TREND INTELLIGENCE
The top-right dashboard provides a comprehensive overview of current market state across six analytical categories:
1. Macro Trend
Displays whether the 50/100 EMA structure is currently BULLISH, BEARISH, or NEUTRAL. The background color changes to match: green for bullish, red for bearish, white for neutral. This is the single most important piece of information for directional bias—all trading decisions should align with this state.
2. Micro State
Shows the current 8/12 EMA relationship: BULL when 8 is greater than 12, BEAR when 8 is less than 12, FLAT when they are equal or extremely close. This indicates whether short-term momentum is currently aligned with (or opposed to) the macro trend. Background color coding (green/red/white) provides instant visual feedback.
3. Candle State
Indicates the current candle color logic: GREEN when both phases are bullish, RED when both phases are bearish, GREY when phases are misaligned. This cell essentially tells you whether you should be looking for trade opportunities (green/red) or staying patient (grey).
4. Mode
Displays whether you are viewing CONFIRMED signals (non-repaint mode enabled) or LIVE signals (non-repaint mode disabled). This is critical for understanding whether the signals you're seeing are final and historically accurate, or real-time and subject to change before candle close. For live trading, CONFIRMED mode should always be used. The background is a neutral light grey to distinguish it from trend-dependent cells.
5. Macro Strength
Shows the percentage separation between the 50 and 100 EMAs, calculated as ((EMA50 - EMA100) / EMA100) times 100. Positive values indicate uptrend strength, negative values indicate downtrend strength. Higher absolute values indicate stronger trend conviction.
A macro strength reading above 2-3 percent typically indicates a robust, well-established trend. Readings between 0.5-2 percent suggest a moderate trend. Readings below 0.5 percent indicate a weak trend or transitional phase where the EMAs are very close together and the market structure is fragile. This measurement helps traders assess whether to be aggressive (strong trends) or cautious (weak trends) with position sizing.
6. Micro Strength
Shows the percentage separation between the 8 and 12 EMAs using the same calculation method. This measures the intensity of short-term momentum. Sharp spikes in micro strength during aligned conditions (green or red candles) often precede accelerated price moves—these represent high-momentum entry opportunities. Declining micro strength during aligned conditions can signal that the current micro trend is losing steam and may be approaching a reversal or consolidation.
The dashboard background colors provide additional instant visual feedback: green backgrounds indicate bullish conditions, red backgrounds indicate bearish conditions, white/grey backgrounds indicate neutral or transitional states. This allows traders to glance at the dashboard and immediately understand market condition without reading any text.
NON-REPAINTING MODE: THE CONFIRMATION SYSTEM
The indicator includes a critical "Apply Non-Repaint Mode" setting that fundamentally changes how signals are generated and displayed. Understanding this feature is essential for proper use of the system.
Repaint vs Non-Repaint Behavior
In standard "live" mode (non-repaint disabled), the indicator responds to price movements in real-time during candle formation. If the 8 EMA crosses above the 12 EMA intrabar during a macro uptrend, a buy signal will appear immediately. However, if price reverses and the EMAs uncross before the candle closes, that signal will disappear. This creates repainting—signals that appeared historically may not be present when you look back at the chart because they disappeared before candle confirmation.
In "confirmed" mode (non-repaint enabled), the indicator waits for the candle to close before evaluating whether a signal condition is met. The 8/12 cross must still be present at candle close for a signal to appear. Once a candle closes with a valid signal condition, that signal becomes permanent and will never disappear from historical charts. This eliminates repainting entirely.
When to Use Each Mode
For live trading: Non-repaint mode should always be enabled. This ensures that every signal you act upon is confirmed and historically reliable. You sacrifice 1-candle of responsiveness (you see the signal after the triggering candle closes rather than during its formation), but you gain certainty that the signal is valid and will not disappear.
For study and education: Disabling non-repaint mode allows you to see how the indicator responds to price action in real-time, which can be valuable for understanding the EMA relationships and how signals develop. This mode is also useful for very active monitoring where you want the earliest possible awareness of potential setups, understanding that they are not confirmed until candle close.
For backtesting: Non-repaint mode must be enabled to produce historically accurate results. Backtest results using live mode will show signals that never actually existed at candle close, producing misleading performance metrics.
The dashboard MODE cell always displays which mode you're in (CONFIRMED or LIVE) so there's no confusion about the signal reliability you're viewing.
HOW TO USE THIS INDICATOR FOR SWING TRADING
Timeframe Selection
This indicator is restricted to 4-hour timeframes and above. Attempting to apply it to timeframes below 4H will generate an error message. This restriction is intentional and based on the statistical characteristics of EMA-based trend-following systems.
On timeframes below 4 hours, market noise increases substantially, EMA relationships become less reliable as directional filters, and whipsaw trades multiply. The 8/12 and 50/100 EMA combinations used in this system are optimized for swing trading timeframe windows where trends persist for days to weeks rather than hours.
Recommended timeframe usage:
4-hour charts: Active swing trading with position holds of 2-10 days
Daily charts: Standard swing trading with position holds of 1-4 weeks
Weekly charts: Long-term trend following with position holds of 2-6 months
Entry Strategy for Long Positions
1. Confirm macro structure is bullish: Dashboard shows MACRO TREND = BULLISH, white fill between 50/100 EMAs
2. Wait for green candles: This indicates macro/micro alignment
3. Enter on buy signals: Green circles appearing below price bars
4. Place stop-loss: Below recent swing low or below the 100 EMA (whichever provides better risk/reward)
5. Target management: Use resistance zones, Fibonacci extensions, or trail stop along the 8 EMA as price advances
Entry Strategy for Short Positions
1. Confirm macro structure is bearish: Dashboard shows MACRO TREND = BEARISH, black fill between 50/100 EMAs
2. Wait for red candles: This indicates macro/micro alignment
3. Enter on sell signals: Red circles appearing above price bars
4. Place stop-loss: Above recent swing high or above the 100 EMA
5. Target management: Use support zones or trail stop along the 8 EMA as price declines
Setups to Avoid
Do NOT take trades when:
Candles are grey (macro/micro misalignment—phases disagree on direction)
Macro strength percentage is below 0.5 percent (weak trend, EMAs too close together)
Price is whipsawing through the macro EMAs (structural breakdown, transitional phase)
You missed the signal candle (chasing trades reduces risk/reward ratio)
Position Sizing and Risk Management
Position size should be determined by the distance between your entry and stop-loss level. Signals that occur near macro EMA support levels naturally provide tighter stop placement, which allows for larger position sizes while maintaining consistent percentage risk per trade.
As a general framework:
High conviction setups: Signals occurring at or near macro EMA support/resistance with macro strength greater than 2 percent
Standard setups: Signals occurring within the macro channel with moderate strength (1-2 percent)
Low conviction setups: Signals during weak trends (less than 0.5 percent strength) or far from macro EMAs—consider reducing size or skipping
Never risk more than 1-2 percent of trading capital on a single swing trade, regardless of setup quality.
ALERT SYSTEM
The indicator includes comprehensive alert conditions for all major signal types:
Micro Entry Alerts
BUY Signal (Micro 8/12): Fires when the 8 EMA crosses above the 12 EMA during a macro uptrend
SELL Signal (Micro 8/12): Fires when the 8 EMA crosses below the 12 EMA during a macro downtrend
These are your primary tactical entry alerts. Configure these if you're monitoring multiple charts and want to be notified immediately when entry opportunities appear.
Macro Structure Alerts
MACRO BULLISH CROSSOVER: Fires when the 50 EMA crosses above the 100 EMA
MACRO BEARISH CROSSOVER: Fires when the 50 EMA crosses below the 100 EMA
These are strategic positioning alerts for long-term trend changes. Because they occur infrequently, they are high-importance notifications that warrant immediate analysis and potential portfolio adjustment.
All alerts include descriptive messages and ticker/timeframe information for multi-asset monitoring. Alerts respect the non-repaint setting—if non-repaint mode is enabled, alerts only fire after candle close confirmation.
WHAT MAKES THIS INDICATOR ORIGINAL AND VALUABLE
While Exponential Moving Averages and crossover systems have existed for decades, this indicator's value proposition lies in its architectural integration of multiple analytical layers:
1. Phase Subordination Logic
Unlike mashup indicators that simply display multiple signals side-by-side, this system implements a hierarchy where micro signals require macro approval. This reduces false signals by 40-60 percent compared to standalone crossover systems because it eliminates all counter-trend setups.
2. Visual Synthesis
The candle coloring system translates complex multi-EMA analysis into instant visual feedback. Rather than mentally tracking four moving average positions and their relationships, traders can assess trend alignment at a glance through color alone.
3. Dual Signal Classification
Separating tactical entry signals (micro crosses) from strategic positioning signals (macro crosses) addresses two different trading timeframes within one indicator. Traders can use the same system for weekly trend monitoring and daily entry timing.
4. Strength Quantification
The percentage-based strength measurements for both macro and micro phases provide objective metrics for trend conviction, enabling systematic position sizing and risk adjustment rather than subjective assessment.
5. Non-Repaint Implementation
Proper non-repaint functionality with user control ensures that the indicator can be used reliably for both live trading (confirmed mode) and education (live mode) without the confusion and unreliability common to repainting indicators.
6. Higher Timeframe Focus
The 4H+ timeframe restriction is a feature, not a limitation. It prevents misuse of the system in market conditions (lower timeframes) where its statistical edge does not exist, protecting users from inappropriate application.
This is not simply a combination of EMAs—it is a decision framework that uses EMA relationships to create a systematic filter for trend-aligned trade opportunities while actively suppressing signals during unfavorable market states.
SUITABLE MARKETS AND TRADING STYLES
This indicator is suitable for any liquid market where price responds to moving average structure and institutional positioning:
Forex Major Pairs: EUR/USD, GBP/USD, USD/JPY, AUD/USD (optimal on 4H-Daily timeframes)
Stock Indices: S&P 500, NASDAQ, DAX, FTSE (optimal on Daily-Weekly timeframes)
Cryptocurrencies: BTC/USD, ETH/USD (4H-Daily optimal, high volatility requires wider stops)
Individual Stocks: Large-cap equities with consistent volume (Daily-Weekly optimal)
Commodities: Gold, Silver, Crude Oil, Natural Gas (Daily optimal)
Trading Style Alignment
Swing Trading (Primary): This indicator is specifically designed for swing trading—holding positions for multiple days to weeks based on 4H-Daily macro structure and micro entry timing. This is the optimal use case.
Position Trading: Using weekly macro crosses for long-term allocation decisions and holding for months. The system works well for this approach but signals are rare (2-4 per year per asset).
Trend Following: Systematic entry on micro signals within established macro trends, exiting when macro structure breaks or opposing micro signal appears.
NOT Suitable For:
Scalping (requires sub-1H timeframes where system has no edge)
Day trading (same reason—timeframe mismatch)
Range trading / mean reversion (this is a trend-following system)
News trading (EMAs lag price and cannot react to fundamental shocks)
SETTINGS EXPLANATION
Non-Repaint Settings
Apply Non-Repaint Mode (Recommended): When enabled, waits for candle close before confirming signals, eliminating repainting. Recommended for live trading.
Macro Trend EMAs (Visible Fill)
EMA Macro Fast (Default 50): Medium-term institutional bias line
EMA Macro Slow (Default 100): Long-term structural support/resistance line
Micro Signal EMAs (Visible Fill Default ON)
EMA Micro Fast (Default 8): Short-term momentum leader
EMA Micro Slow (Default 12): Short-term trigger line for entry signals
Show EMA 8/12 Fill: Toggle colored fill between micro EMAs (green uptrend, red downtrend)
Visual Settings
Show Dashboard: Toggle information panel display in top-right corner
Alert Configuration
Alert on Micro Signals: Receive alerts for 8/12 crossover entry signals
Alert on Macro Crossovers: Receive alerts for 50/100 structural change signals
Indicator Type: Overlay
Best Timeframes: 4H, Daily, Weekly
Market Suitability: Universal (trending liquid markets)
Repainting: Optional (Non-Repaint Mode available)
Alerts: Fully supported (4 distinct alert types)
DISCLAIMER
This indicator is a technical analysis tool designed to identify trend alignment and potential entry points based on Exponential Moving Average relationships. It does not guarantee profitable trades and should be used as part of a comprehensive trading plan that includes proper risk management, position sizing, and fundamental analysis where appropriate.
Past performance of any trend-following system does not predict future results. The indicator works best in trending market conditions and may generate false signals during extended ranging or highly volatile transitional periods. Market conditions change, and no technical indicator can predict all future price movements.
Always backtest any strategy on your chosen asset and timeframe before risking real capital. Never risk more than you can afford to lose. Trading involves substantial risk of loss and is not suitable for all investors. This indicator is an educational and analytical tool—all trading decisions and their consequences remain solely the responsibility of the user.
Indicator

MoChen - Crypto Sessions and D/W/M OpensOVERVIEW
MoChen Crypto Sessions and DWM Opens is an overlay indicator designed for continuously traded cryptocurrency markets.
The script combines three configurable regional market sessions with UTC-based Daily, Weekly, and Monthly opening levels. Its purpose is to provide a consistent time-and-price framework for intraday analysis without requiring traders to redraw the same sessions and period-opening levels manually.
The indicator does not generate buy or sell signals. It provides contextual reference levels that can be combined with market structure, liquidity analysis, support and resistance, or the trader's own execution model.
SESSION FRAMEWORK
The default sessions are:
- Asian: 09:00-13:30 in Asia/Taipei
- London: 08:00-16:30 in Europe/London
- New York: 09:30-16:00 in America/New_York
These are configurable analysis windows for cryptocurrency trading. They should not be interpreted as official cryptocurrency exchange opening or closing hours because cryptocurrency markets trade continuously.
Each session uses its own IANA time zone. Europe/London and America/New_York automatically follow their respective daylight-saving-time rules, so users do not need to switch manually between summer and winter offsets.
While a session is active, the script tracks:
- Session open
- Developing session high
- Developing session low
- Latest session close
The session range updates as new bars form. When the session ends, its completed range stops updating.
Users can independently control:
- Session visibility
- Session time
- Session name
- Color and background opacity
- Open, close, high, and low visibility
- Line style and width
- Session labels
- Number of completed sessions retained
DAILY, WEEKLY, AND MONTHLY OPENS
The indicator also calculates three UTC-based period-opening references:
- D: Daily open at 00:00 UTC
- W: Weekly open at Monday 00:00 UTC
- M: Monthly open on the first calendar day at 00:00 UTC
These levels represent the opening price of the first available chart bar belonging to the corresponding UTC period.
The default visual hierarchy is:
- Daily Open: blue solid line, width 1
- Weekly Open: cyan solid line, width 2
- Monthly Open: yellow solid line, width 3
OVERLAPPING DWM LEVELS
A key feature of the script is its handling of overlapping Daily, Weekly, and Monthly opens.
When two or more periods begin from the same price, the indicator does not draw several identical lines on top of one another. It displays one consolidated level and uses the higher-timeframe visual style.
The priority is:
Monthly > Weekly > Daily
Examples:
- A Monday Daily Open that matches the Weekly Open is initially displayed as W/D.
- After that Daily period ends, the same higher-timeframe level is displayed as W.
- If a new month begins on Monday, the combined level is initially displayed as M/W/D.
- After the Daily period ends, it becomes M/W.
- After the Weekly period ends, the remaining higher-timeframe reference is displayed as M.
The underlying Daily, Weekly, and Monthly period states remain separate. Only their visual presentation is consolidated to reduce chart clutter and avoid making one price appear to be several different levels.
HOW TO USE THE INDICATOR
The session ranges can help traders observe:
- Expansion from an established regional range
- Breakouts above or below a completed session
- Reactions around a session open
- Continuation or reversal between Asian, London, and New York participation
- Whether price is trading above or below the Daily, Weekly, or Monthly open
One possible analysis sequence is:
1. Identify the current position relative to the Weekly and Monthly Open.
2. Observe the range formed during the Asian session.
3. Evaluate whether London expands, rejects, or remains inside that range.
4. Observe how New York reacts to the completed Asian and London ranges.
5. Use market structure and risk management to determine whether a trade is justified.
The indicator itself does not define an entry, stop loss, take profit, or directional forecast.
ORIGINAL IMPLEMENTATION
This script uses an independently implemented session and period-level architecture.
Its main distinguishing elements are:
- Three separately managed session states
- IANA-based daylight-saving-time handling
- Developing session ranges that freeze after completion
- Independent historical-object retention for each session
- UTC-based Daily, Weekly, and Monthly period detection
- Consolidated DWM display with higher-timeframe priority
- Dynamic removal of lower-timeframe labels after their periods expire
- Controlled line, label, and box lifecycle management
The DWM consolidation system is intended to preserve the meaning of each period while displaying only the most relevant higher-timeframe reference when multiple levels occupy the same price.
TIMEFRAME AND DATA LIMITATIONS
The session component is intended primarily for intraday charts.
Recommended chart timeframes include:
- 1 minute
- 3 minutes
- 5 minutes
- 15 minutes
- 30 minutes
On higher chart timeframes, a bar may span across a session boundary. In that case, the first or last chart bar detected inside a session may not represent the exact minute-level opening or closing price.
For example, a New York session beginning at 09:30 cannot always be represented precisely on a 1-hour or 4-hour chart.
The Daily, Weekly, and Monthly levels are based on UTC calendar boundaries. Users who require exchange-specific daily candles should verify whether their selected symbol's data feed aligns with the UTC period definition used by this script.
REAL-TIME BEHAVIOR
The developing high and low of an active session change as new price information becomes available. This is expected real-time behavior.
After a session ends, its completed high, low, open, and close references no longer update.
The script is designed without future-looking or lookahead calculations. It does not use completed future bars to alter earlier session results.
DISCLAIMER
This script is intended for educational, analytical, and informational purposes only.
It does not constitute financial advice, an investment recommendation, or a guarantee of future results. Users remain responsible for their own analysis, trading decisions, position sizing, and risk management.
繁體中文說明
MoChen Crypto Sessions and DWM Opens 是一套為 24 小時加密貨幣市場設計的圖表指標。
它整合三個主要市場時段,以及依 UTC 計算的日開、週開與月開,協助交易者建立一致的時間與價格參考架構,減少每天重複標記時段與開盤價的工作。
本指標不提供自動買賣訊號。
一、三大市場時段
預設時段為:
- Asian:09:00-13:30,Asia/Taipei
- London:08:00-16:30,Europe/London
- New York:09:30-16:00,America/New_York
這些是加密貨幣盤面分析使用的時間區間,不代表加密貨幣交易所的官方開盤或收盤。
倫敦與紐約使用 IANA 當地時區,因此會自動依日期處理夏令與冬令時間,不需要使用者手動切換 UTC 偏移。
時段進行中,指標會持續更新:
- 時段開盤價
- 時段最高價
- 時段最低價
- 最新時段收盤價
時段結束後,已完成區間停止更新。
二、日開、週開與月開
三個週期基準固定為:
- D:每日 UTC 00:00
- W:每週一 UTC 00:00
- M:每月第一天 UTC 00:00
預設樣式:
- D:藍色實線,線寬 1
- W:青色實線,線寬 2
- M:黃色實線,線寬 3
三、D/W/M 重疊處理
當日開、週開或月開位於同一個價格時,指標不會重複畫出多條完全相同的線。
顯示優先級為:
M > W > D
例如:
- 星期一的日開與週開相同時,建立當下顯示 W/D。
- 當日結束後,該高週期位置只顯示 W。
- 月初剛好是星期一時,建立當下顯示 M/W/D。
- 日線週期結束後顯示 M/W。
- 週線週期結束後只保留 M。
日、週、月的內部計算仍然彼此獨立,只有圖表上的顯示會進行整合。
四、使用方式
可以用來觀察:
- 亞洲時段建立的區間
- 倫敦是否延續或突破亞洲區間
- 紐約是否掃取或突破先前時段高低點
- 價格位於日開、週開與月開上方或下方
- 價格對時段開盤價及高週期開盤價的反應
建議搭配市場結構、流動性、支撐壓力與風險管理使用。
本指標不會自動提供進場、停損、止盈或方向預測。
五、週期限制
建議使用:
- 1 分鐘
- 3 分鐘
- 5 分鐘
- 15 分鐘
- 30 分鐘
在 1 小時或 4 小時等較高週期中,一根 K 棒可能橫跨時段邊界,因此時段開盤價與收盤價未必能精準對應到分鐘級時間。
六、即時更新與重繪說明
時段尚未結束時,最高價與最低價會隨即時價格更新,這是正常的進行中計算。
時段完成後,已完成區間不再更新。
本指標不使用未來資料產生歷史訊號。
免責聲明
本指標僅供教育、研究與盤面分析使用,不構成任何投資建議,也不保證任何交易結果。
使用者應自行完成交易判斷並做好風險管理。 Indicator

Indicator

Indicator

Indicator

ICT Sniper BY DAVIDThe ICT Sniper (Clean Version) is a systematic Pine Script v6 indicator designed for traders using Smart Money Concepts (SMC) and Price Action models. Based on mechanical entry models, this tool identifies institutional market manipulations and precise entry zones by combining Liquidity Sweeps with Fair Value Gaps (FVG).
Instead of cluttering the chart with endless technical indicators, this script operates on market structure and liquidity dynamics. It isolates low-risk, high-probability execution points by waiting for institutional smart money to sweep liquidity before confirming an entry via market imbalance.
Core Strategy and Logical Framework
The indicator executes a mechanical three-phase validation sequence:
1. Liquidity Sweep Detection
Market makers frequently run price beyond key swing points to activate retail stop-loss orders and breakout entries. This script continuously monitors market structure using pivot points:
Bullish Sweep: Price breaks below a recent Pivot Low to grab sell-side liquidity, but the bar closes back above that low, confirming a stop run rather than a legitimate breakout.
Bearish Sweep: Price breaks above a recent Pivot High to grab buy-side liquidity, but the bar closes back below that high, confirming a false breakout.
2. Order Block Marking
When a sweep occurs, the script flags the specific candle or range where the liquidity sweep originated as an active Order Block zone, anticipating that institutional orders remain resting within this area.
3. Fair Value Gap (FVG) Refinement and Signal Trigger
A liquidity sweep alone is insufficient for an entry. The strategy requires displacement—rapid price movement leaving behind an imbalance (FVG).
The indicator tracks the bars following a sweep up to a user-defined lookback window (default: 10 bars).
If a three-candle imbalance forms within this lookback window:
Bullish FVG (Low of candle 1 > High of candle 3): Triggers a BUY Entry signal.
Bearish FVG (High of candle 1 < Low of candle 3): Triggers a SELL Entry signal.
Detailed Input Parameters
Market Structure
Pivot Lookback Length (Default: 5): Determines the sensitivity of swing highs and lows. A smaller number identifies short-term internal liquidity, while a larger number focuses on major swing points.
Strategy Rules
Max Bars After Sweep to Find FVG (Default: 10): Specifies the maximum duration allowed between the liquidity sweep and the displacement/FVG formation. If an FVG forms after this limit, the signal is discarded to ensure only fresh displacement is traded.
Clean Visuals
Show Minor Sweep Shapes (Default: Off): Displays minor directional indicators on every sweep candle. Kept disabled by default to maintain chart clarity.
Show Active Order Blocks (Default: On): Draws shaded boxes around active Order Blocks resulting from liquidity sweeps.
Show FVG Highlights (Default: On): Plots distinct colored boxes directly over the Fair Value Gaps that triggered entry signals.
Max Boxes to Keep on Chart (Default: 2): Automatically deletes older historical boxes to prevent memory lag and visual clutter.
Execution and Risk Management Guidelines
1. Signal Confirmation
Wait for the current bar to close when a BUY or SELL signal appears. Do not execute mid-bar, as FVGs require candle completion to be valid.
2. Stop-Loss Placement
BUY Setup: Position the Stop-Loss a few ticks below the Liquidity Sweep Low or beneath the bottom boundary of the FVG box.
SELL Setup: Position the Stop-Loss a few ticks above the Liquidity Sweep High or above the top boundary of the FVG box.
3. Take-Profit Targets
Fixed Risk-to-Reward: Maintain a standard 1:2 Risk-to-Reward ratio (2R) for consistent expectancy.
Structural Targets: Target the opposing Swing High for long positions or Swing Low for short positions.
Best Practices and Context
While this indicator automates pattern recognition, trade performance improves significantly when aligning signals with higher-timeframe context:
Trade in the direction of the higher-timeframe trend.
Focus executions during major market sessions (London and New York sessions).
Recommended Timeframes: 1-minute to 15-minute charts for intraday execution; 1-hour to 4-hour charts for swing trading.
Recommended Assets: Forex major pairs, equity indices (NAS100, US30), commodities (Gold), and major cryptocurrencies. Indicator

Indicator

Indicator

Auto Fibo Multi-Channel Reversal Retest by WiselyWealthComprehensive Guide: Auto Fibo Multi-Channel Reversal Retest Indicator
Introduction: What is this script and its purpose?
The "Auto Fibo Multi-Channel Reversal Retest" script, developed by WiselyWealth, is a highly advanced, multi-layered technical analysis tool built using Pine Script v6. Its primary purpose is to identify high-probability market reversal zones by aggressively filtering out market noise and false breakouts.
Unlike traditional indicators that rely on a single mathematical concept, this system is engineered to demand confluence from four distinct technical dimensions before confirming a trade setup: volatility boundaries, momentum exhaustion, dynamic structural support/resistance, and an execution retest protocol. This script is specifically designed for analytical traders who prioritize setup quality over sheer quantity, aiming to catch precise pivot points in the market while optimizing the risk-to-reward ratio through delayed, confirmed entries.
Working Mechanism: How the Script Detects Signals
The core strength of this script lies in its rigorous, four-step filtering engine. A final "Buy" or "Sell" signal is only painted on the chart when price action satisfies all of the following technical criteria consecutively:
1. Multi-Channel Volatility Extremes (The Boundary Check):
The script features a dual-channel trigger system, allowing users to select a primary and secondary volatility band or price channel. The available options include Bollinger Bands, Keltner Channels, Donchian Channels, Envelopes, and Linear Regression. The algorithm calculates the mathematical upper and lower bounds of these selected systems. For a setup to even begin formulating, the asset's price must simultaneously pierce or touch the extreme outer boundaries of *both* selected channels (for example, the low of the candle must be equal to or lower than both the primary lower band and the secondary lower band). This ensures the market is severely overextended and deviating heavily from its historical mean.
2. Reversal Signatures and Momentum Exhaustion (The Trigger):
Once price reaches the extreme boundaries, the script scans for a reversal catalyst. It detects foundational candlestick patterns, specifically Bullish and Bearish Engulfing candles, as well as Pinbars like Hammers and Shooting Stars. Furthermore, it incorporates momentum oscillators by scanning for Relative Strength Index (RSI) crossovers from overbought or oversold territories, alongside Stochastic oscillator crosses (below 20 for buys, above 80 for sells). This ensures the structural overextension is accompanied by a genuine, measurable shift in buying or selling pressure.
3. Dynamic Auto-Fibonacci Proximity (The Structural Filter):
To prevent taking reversals in the middle of a chart with no structural backing, the script automatically calculates a macro range by identifying the highest high and lowest low over a user-defined lookback period (defaulting to 100 bars). It dynamically plots key Fibonacci retracement levels (0.000, 0.236, 0.382, 0.500, 0.618, 0.786, and 1.000). A raw reversal signal is only validated if the price action occurs within a strict, customizable percentage tolerance (defaulting to 0.5% of the range) of these specific Fibonacci levels. This mathematical check guarantees that trades are only considered at major, historically proven support or resistance zones.
4. The ATR-Based Retest Engine (The Execution Delay):
This is the script's most robust feature. Even if all prior conditions are perfectly met, the script does not immediately issue a final order. Instead, it enters a "pending trend" state and calculates a required "Retest Price" using the Average True Range (ATR).
For a Buy setup, it subtracts a user-defined ATR multiplier (default 1.0) from the close price.
The system then waits for up to a maximum number of candles (default 4 bars) for the price to pull back and touch this specific delayed level.
If the price successfully drops to the retest level within the time limit, the final Buy order is fired and painted on the chart. This engine prevents traders from buying the absolute top of a fake-out and secures a significantly safer entry price.
How to Use: Settings and Optimal Market Conditions
Recommended Configuration & Settings:
Channel Confluence: Pairing Bollinger Bands as System 1 and Keltner Channels as System 2 is highly recommended. Because Bollinger Bands measure standard deviation and Keltner Channels measure ATR, requiring price to break both ensures you are capturing true volatility anomalies (often referred to as a "Volatility Squeeze" reversal).
Retest Engine Tuning: The default ATR multiplier of 1.0 with a 4-bar max wait limit provides a balanced, conservative approach. If you find that valid signals are expiring before execution because the market runs away too quickly, you should either increase the "Max Candles to wait" to 6-8 bars or lower the "Retest Value" to 0.5 for shallower pullbacks.
Fibonacci Tolerance: Keep the "Fibo Level Tolerance" relatively tight (between 0.3% and 0.8%). Expanding it too much defeats the purpose of precision support and resistance filtering.
Suitable Markets and Timeframes:
This indicator thrives in mean-reverting and broadly ranging market conditions, making it exceptionally well-suited for high-liquidity Forex pairs (such as EUR/USD or GBP/JPY), major Cryptocurrencies, and Equity Indices.
Optimal Timeframes: It performs best on medium to higher timeframes, such as the 15-minute, 1-hour, or 4-hour charts. Lower timeframes (like 1-minute or 3-minute charts) contain too much micro-volatility, which may cause erratic Fibonacci plotting and premature retest triggers.
Trend Context: By default, the script takes both Buy and Sell signals ("Trade Direction: Both"). However, in a strong macro-trending market, users should actively utilize the Trade Direction setting to take only pullbacks in the direction of the dominant trend. For example, selecting "Buy Only" during a structural bull market will filter out dangerous counter-trend short positions. Indicator

Indicator

Triple Confluence Meter - Trend, Momentum and Volume AgreementThree indicators agreeing feels like three reasons. Usually it is one reason counted three times — trend, momentum and volume all read the same price series, so of course they tend to point the same way.
This builds the ordinary confluence indicator and then does the thing confluence indicators never do: it grades itself.
THE THREE VOTES
Trend close above or below an EMA
Momentum RSI above or below 50
Volume the bar's direction, but only on bars where volume beats its average
Sum them for a score from −3 to +3. At the extremes all three agree, the bar is coloured, and a small triangle marks the first bar of each new alignment. On symbols with no volume feed the third vote abstains and the scale becomes −2 to +2 rather than quietly voting zero forever.
THE PART THAT MATTERS
Over the lookback, the script finds every alignment that happened at least one full horizon ago — so its outcome is already settled — and counts how often price actually went the signalled way. Then it does the subtraction almost nobody does:
Edge = hit rate after alignment − base rate over all bars
The base rate is the catch. A bullish signal firing during an uptrend will show a glorious 60% hit rate while price rose 60% of the time regardless, and an edge near zero tells you the signal contributed nothing. Only the difference is information.
READING THE SCORECARD
Trend / Momentum / Volume — each vote's current direction, with the RSI value shown so you can see how close the momentum vote is to flipping.
Score — the sum and whether it counts as aligned.
Base rate up — how often price rose over the horizon on all bars in the window. This is the number to beat.
After bull align / After bear align — the hit rate following each kind of alignment, with n= the number of events behind it. Read the n before the percentage. Alignment is rare by construction and thirty events is an anecdote.
Edge — the two subtractions, in percentage points. Positive means the alignment knew something the drift did not.
Sample — bar count and the roughly independent sample size. Overlapping horizons mean 500 bars at a 10-bar horizon is nearer 50 independent observations.
WHAT IT SHOWS RIGHT NOW
On BTCUSD 1h at the time of writing, with a 50% base rate: after bullish alignment price rose just 31.0% of the time across 58 events, an edge of −19.0 pp. Bearish alignment fared better but still negative at −7.9 pp.
Read that again, because it is the whole argument. Buying when trend, momentum and volume all agreed was substantially worse than a coin flip over this window. In a mean-reverting market that is exactly what a momentum confluence should do — it arrives late, at the point where the move it is confirming is closest to exhaustion. The indicator is not broken. The premise is.
Run it on your own symbol and timeframe before drawing any conclusion from mine. The answer changes, and being able to see it change is the point of shipping this rather than another confluence indicator that just glows green.
HONEST LIMITS
A hit rate is not a P&L. It ignores position size, cost, slippage, and the size of the moves it counts. Being right on small moves and wrong on large ones loses money at any hit rate.
Overlapping horizons correlate the observations, so the effective sample is much smaller than the event count implies. Treat differences of a few percentage points as noise.
Three votes drawn from one price series are not three independent opinions. That is a feature of the design being examined here, not a bug in the measurement.
Changing the EMA, RSI or volume lengths changes the answer. If you tune them until the edge looks good, you have fitted the window rather than found something.
NO REPAINT
There is no request.security call anywhere in this script, so the higher-timeframe lookahead problem does not arise. Every graded alignment sat at least one full horizon in the past and its outcome is already history. The current bar is scored but never graded.
Open source under MPL 2.0. Read it, fork it, tell me where I am wrong. Indicator

Indicator

NeuPortal - Base Rate SignalsFive standard entry rules running simultaneously on the price chart: moving average crossover, RSI reversal, MACD cross, Bollinger re-entry and Stochastic cross. Each marks its own small triangle under or over the candle, tagged with the rule that fired it. When several agree on the same bar, a consensus label is drawn.
That part is ordinary. Thousands of scripts do it.
THE NUMBER EVERY SIGNAL SCRIPT LEAVES OUT
Each rule is scored live against the base rate on your chart. The table prints three things per rule:
hit - how often that rule was followed by a move in its own direction
base - how often ANY bar was followed by that same move over the same window
edge - the difference
That difference is the only thing an entry rule can honestly claim.
A rule that hits 54% sounds like an edge until you ask what a bar picked at random scores. In a market that drifted upward over the sample, "price is higher 20 bars later" might be true 53% of the time whatever you do. A rule at 54% against a 53% baseline has found almost nothing. Every signal indicator in existence reports the 54 and omits the 53.
The edge will often be small and sometimes negative. That is the expected result, not a fault in the script. On ETHUSDT 4h at the time of writing, a WMA 21/65 crossover long scores 44.7% against a base rate of 51.1% - an edge of minus 6.4 across 123 signals and 10,026 scored bars. Buying a random bar would have been better than buying that signal.
THE CONSENSUS ROW IS AN EXPERIMENT, NOT A FEATURE
"Three indicators confirm the entry" rests on an assumption nobody checks: that three indicators are three pieces of evidence.
They are not. Measured over 19,580 four-hour bars of full Binance history, the rank correlation between these families runs around 0.80. Stochastic against Williams %R reaches 0.92; RSI against CCI 0.90. For n readings correlated at r, the effective number of independent readings is about n / (1 + (n - 1) * r). Five rules at 0.80 come to roughly 1.4.
So set how many rules must agree, and watch what happens. If agreement were evidence, the edge would rise as the threshold rises. Usually only the signal count falls. Trading less often for the same expectation is not an improvement, and this is the first indicator I know of that lets you see that rather than assume it.
TIMING
Three modes. Confirmed waits for the bar to close and never changes afterwards. Anticipate fires one bar earlier by projecting each rule's spread across zero, so some of those crosses never happen. Live fires on the unfinished bar and repaints.
Switch between them and watch the edge column. Earlier is only better if the edge improves, and usually it does not. Note that in Live mode the historical percentages were not earned under those conditions - history contains no unfinished bars, so every past signal was scored as confirmed. Live mode flatters itself, and the table marks it.
HOW THE SCORING WORKS
A signal counts as correct if price closed higher (long) or lower (short) a fixed number of bars later. Every count uses only bars that had already completed when the label was drawn, so nothing repaints and no percentage knows anything the chart did not. Early in a chart the sample is tiny and the table says "too few" rather than printing a flattering number from six observations.
WHAT THIS IS NOT
Not a strategy and not advice. Hit rate says nothing about the size of wins against losses: a rule right 60% of the time can lose money steadily. This measures direction only, over one fixed horizon, with no costs, no slippage and no position sizing.
It is a tool for finding out whether a familiar rule does anything at all on your instrument. The usual answer is very little, and knowing that is worth more than another arrow.
Indicator

NeuPortal - Confluence MeterThe standard oscillator set on one shared 0-100 scale: RSI, Stochastic, Williams %R, CCI, MFI, MACD histogram and Momentum. Toggle any of them, read them against each other, and get a consensus line.
That part is ordinary. Here is the part that is not.
WHY CONFLUENCE IS USUALLY WORTH LESS THAN IT LOOKS
"Five indicators confirm the signal" is the oldest line in technical analysis, and it is mostly a restatement of one thing said five times. These oscillators are near-transformations of each other.
Measured over 19,580 four-hour bars of full Binance history on BTCUSDT, the rank correlations are: Stochastic to Williams %R 0.92, RSI to CCI 0.90, Stochastic to CCI 0.89, Williams %R to CCI 0.87. The median pairwise correlation across all 21 combinations is 0.80. ETHUSDT over the same span reproduces the table to two decimal places.
For n readings with average correlation r, the effective number of INDEPENDENT readings is about n / (1 + (n - 1) * r). Seven oscillators at 0.80 come to roughly 1.2.
Seven agreeing indicators is one indicator, counted seven times.
The weakest pair in the set is RSI against the MACD histogram at 0.51. If you want two oscillators rather than seven, those two carry the most different information.
WHAT THE SCRIPT DOES ABOUT IT
It does not take the numbers above on trust. It measures the correlation live, on your symbol, your timeframe and your chosen lengths, then prints two things side by side in the table:
- agreement, the count of enabled oscillators on the same side of 50
- effective independent readings, derived from the measured correlation
The first is what people want to see. The second tells them what it is worth. When the second reads 1.3, a unanimous seven-to-nothing agreement is not seven pieces of evidence.
HOW THE SHARED SCALE WORKS
RSI, Stochastic and MFI are natively 0-100. Williams %R is shifted from its -100..0 range. CCI, the MACD histogram and Momentum have no fixed bounds, so they are converted with a percentile rank against their own recent history: the reading becomes where this value sits relative to how this instrument has behaved lately.
That is a real transformation and it is disclosed rather than buried. A percentile-ranked MACD histogram is not the MACD histogram, so the raw value is printed in the table alongside the scaled one. Nothing is hidden behind the normalisation.
SETTINGS WORTH KNOWING
Percentile lookback controls how much history the unbounded oscillators are ranked against. Shorter reacts faster and is noisier. Longer is steadier and slower to acknowledge a change in regime.
Correlation window controls how much history is used to measure independence. Longer is more stable but averages across regimes, and correlation between oscillators is not constant.
WHAT THIS IS NOT
Not a strategy, not a signal, not a recommendation. An oscillator crossing 50 is not an entry. The two alerts are deliberately descriptive rather than directional, because an alert that said "buy" would contradict everything the script exists to point out.
Free and open source. Read the code, change the lengths, run it on your own instruments and see whether the correlation on your market matches ours.
Indicator

Indicator

Indicator

FIE GraphFIE Graph (Frequency • Influence • Efficiency)
FIE Graph is a companion indicator designed for use alongside FIE Price Action Overlay.
While the Price Action overlay focuses on signal generation, participation, and market context directly on the chart, FIE Graph provides a dedicated visualization of the underlying FIE calculations over time, making it easier to observe trends, shifts in participation, and changes in component behaviour.
FIE Graph allows traders to monitor how Frequency, Influence, Efficiency, Share Participation, Active Average, and other FIE metrics evolve throughout a trading session without cluttering the main price chart.
Features
Time-series visualization of FIE metrics
Component participation trends
Active Average and Share monitoring
Normalized Efficiency (E-Norm) visualization
Clean companion display for deeper analysis
Designed to complement the FIE Price Action overlay
Directionality to observe current and historical bull/bear pressure
FIE Graph is intended as an analytical companion rather than a standalone trading indicator. For entry signals, market context, and the complete FIE framework, use it together with FIE Price Action Overlay, available in my indicators. Indicator

Indicator

Parameter Plateau Map - Moving Average Crossover RobustnessEvery backtest has a best setting. The question almost nobody asks is whether the settings next to it were any good — and that question is the whole difference between an edge and a coincidence.
WHAT IT DOES
It sweeps a grid of fast/slow moving average pairs, scores all thirty valid combinations on the same data, and draws the result as a heatmap. What you are looking for is not the brightest cell. It is the shape around it.
A broad, coherent region → the result survives changing the parameters.
A single bright cell → you found noise and gave it a name.
THE PLATEAU SCORE
The heatmap makes the shape visible; this puts a number on it. It compares the best cell to its four immediate neighbours, both measured against the grid's own mean:
Plateau = (mean of neighbours − grid mean) ÷ (best − grid mean)
Near 1.00, the neighbourhood is nearly as good as the peak, so the peak is a ridge you can actually stand on. Near 0.00, the peak stands alone above an otherwise ordinary grid, and selecting it is curve fitting.
Measuring against the grid's own mean rather than a fixed 50% is deliberate. In a strongly directional window every cell shifts together, and a peak-versus-50% ratio would either explode or collapse on that shift alone. The shape of the surface is the question here, not its height. Height gets its own row.
HOW EACH CELL IS SCORED
Directional hit rate. On every bar in the window a cell votes long when its fast mean is above its slow mean, and the vote counts as correct if price moved that way over the next N bars. 50% is a coin flip.
Means come from a running cumulative sum, so a 233-length mean costs exactly what a 5-length mean costs. That is what keeps a thirty-cell sweep cheap enough to recompute live rather than making you wait.
READING THE VERDICT PANEL
Best pair — the winning fast/slow combination and its hit rate.
Best vs chance — how far that winner sits above or below 50%. This is the level question, kept deliberately separate from the shape question, because they have different answers surprisingly often.
Plateau — the shape. This is the headline.
Grid mean — where the whole surface sits. If this is far from 50%, the window had a strong directional character and every cell inherited it.
Best to worst — the spread across the grid, in percentage points.
Reading — PLATEAU, RIDGE, or SPIKE, so the number does not need interpreting mid-session.
Sample — bar count and, next to it, the roughly independent sample size. Overlapping forward windows mean 250 bars at a 10-bar horizon is closer to 25 independent observations than 250. That second number is the one that should govern how much you trust any of this.
WHAT IT SHOWS RIGHT NOW
On BTCUSD 1h at the time of writing: Plateau 0.86 — a smooth, well-behaved surface with no isolated spike — while Best vs chance reads −3.2 pp and the grid mean sits at 38%. Every one of the thirty settings scored below a coin flip, and they did so coherently rather than randomly. ETHUSD 1h looks much the same, best pair 49.2%, grid mean 40.4%.
That combination is worth sitting with. The parameter surface is not noisy at all. It is simply, consistently, unprofitable over this window — which is a far more useful thing to learn than which of thirty losing settings lost least.
HONEST LIMITS
A hit rate is not a P&L. It ignores position size, cost, slippage, and the size of the moves it is counting. A 55% hit rate that is right on small moves and wrong on large ones loses money.
The effective sample is small. Overlapping windows are correlated, so treat the independent figure in the Sample row as the real one, and treat a few percentage points of difference between cells as noise.
This measures one specific and rather crude strategy family. A flat or losing surface says moving average crossovers did not work here over this window. It does not say nothing works.
Widening the step ladder until the peak looks impressive will collapse the Plateau score, which is precisely what it is there for.
NO REPAINT
There is no request.security call anywhere in this script, so the higher-timeframe lookahead problem does not arise. Every cell is scored on bars that had already closed, the forward return grading a vote is always taken from bars after that vote and before the present, and only confirmed bars enter the sample.
Open source under MPL 2.0. Read it, fork it, tell me where I am wrong. Indicator

Candle Expansion Failure @MaxMaseratiCandle Expansion Failure
MMM Body Close Candle Classification with Failed Swing Reversal Control
This indicator classifies every candle by whether its close pushed through the prior bar's range (Body Close) or stalled inside it (No Body Close), then tracks each directional leg for a failed continuation attempt. When a leg fails, it converts into a live structural zone that extends, updates, and eventually invalidates in real time.
─── WHY THESE COMPONENTS TOGETHER ───
Candle coloring alone tells you direction, not conviction — two bullish candles can look identical while one is a confirmed break and the other is a stall. A basic swing high/low, on its own, tells you where a level sits but not whether price already tried and failed to hold it. Combined, this script produces something neither piece gives alone: a live-updating record of failed breakout attempts, each carrying its own strength grade and invalidation condition, that persists on the chart until price proves the level dead.
─── CANDLE CLASSIFICATION ───
Bullish BC: close > previous high. Bearish BC: close < previous low. Anything else is classified NBC (No Body Close) and colored at reduced opacity to visually separate confirmed breaks from stalls.
─── FAILURE ENGINE ───
Each BC candle opens an "active leg" defined by its high, low, and midpoint. The next candle is checked against three failure conditions: a standard reversal (opposite-direction BC), a trap (price pushes past the leg extreme but closes back inside it), or a blowout (price never touches the leg extreme and closes through the opposite side). Any of the three closes the leg and plots a Failed Swing High (FSH) or Failed Swing Low (FSL) line with a strength tag: X for a marginal failure, X+ for a close against the leg's own candle, X++ for a failure through the leg's midpoint or an untouched blowout.
─── LIVE ZONE TRACKING ───
Failed-swing lines are not static. Each new push-back that sets a fresh extreme extends the zone's line and label to the new level, and the zone is only deleted when price closes decisively back through its extreme in the original leg's direction — the structural invalidation condition. A configurable cap limits how many failed setups persist per side, automatically retiring the oldest.
─── HOW TO USE ───
1. Watch for a solid BC-colored candle — this opens a new active leg in that direction.
2. If the next candle fails to continue (reverses, traps, or blows out untouched), an FSH/FSL line prints with a strength tag.
3. Read the tag: X++ marks the strongest failure and the most defensible zone; X marks a marginal one.
4. Treat the FSH/FSL line as a live level — it will extend if price pushes back into it without closing through, and it deletes when price closes through the extreme in the failed direction, which is your invalidation signal.
5. Use the Max Setups input to control chart density on higher-timeframe charts with frequent leg failures.
─── SETTINGS ───
Candle Classification — enable/disable custom coloring, BC and NBC colors for both directions.
Failure Engine — failure line colors per direction, line extension length in bars, max concurrent setups per side, and label size.
─── NOTES ───
Failure detection uses each bar's live high/low/close as it forms, so a zone's strength tag and extension can update intrabar until that bar closes — standard behavior for any live structural tracker. Works on any liquid instrument and timeframe; higher timeframes will produce fewer, more significant failed-swing zones. Indicator

Options Swing Helper - Expected Move, Volatility & StructureOptions Swing Helper combines volatility analysis, trend tools, and market structure into a single dashboard, designed to help options and swing traders gauge probable price ranges and momentum at a glance.
Expected Move Cone: Projects a forward-looking price range using annualized historical volatility (as a stand-in for implied volatility), scaled by the square root of time for your chosen number of days. Displays the +/-1 standard deviation levels and a center line, and calculates an HV Rank (the percentile of current volatility versus its own lookback history) to flag whether volatility looks Cheap, Fair, or Rich - useful context before buying or selling premium.
Moving Averages & Signals: Three configurable EMAs with optional buy/sell triggers based on EMA crossovers or price crossing an EMA, with an optional filter requiring the long-term EMA's direction (and slope) to agree before signaling.
Market Structure: Automatic swing high/low detection with strong vs. weak classification, zone boxes, and BOS/CHoCH break labels to visualize trend structure and potential reversals.
Dashboard: A live table summarizing price, historical volatility, HV Rank, expected move (in points and %), the 1 SD range, a volatility premium read, trend bias, and the current EMA signal.
All inputs are fully customizable via grouped settings for the cone, moving averages, signals, structure, and dashboard display.
Created by Academia Trade.
This script is provided for informational and educational purposes only and does not constitute financial advice. Indicator
