Compression Dashboard & EMA Tracker by Herman Sangivera (Papua)Compression & EMA Probability Tracker By Herman Sangivera ( Papua )
Overview
The Compression & EMA Probability Tracker is a specialized price action tool designed to identify "Compression" (CP) zones—areas where price volatility narrows, and liquidity is systematically cleared. These zones often precede explosive breakouts or sharp reversals.
By integrating EMA 9 (Fast) and EMA 21 (Slow), this indicator analyzes the current trend momentum within the compression box and provides a real-time probability assessment of whether the market is likely to continue its trend or undergo a reversal.
How It Works
Compression Detection: Using a lookback period and an ATR-based threshold, the script automatically highlights periods of low volatility with a gray background box. This represents the "coiling" effect of the market.
Trend Alignment (EMA 9/21): * If EMA 9 > EMA 21 and price remains above them, the trend is considered bullish.
If EMA 9 < EMA 21 and price remains below them, the trend is considered bearish.
Real-Time Dashboard: A sleek on-chart panel displays:
Current Status: Identifies Rally, Drop, or Reversal warnings.
Continuation Probability (%): Likelihood of the current trend resuming after the breakout.
Reversal Probability (%): Likelihood of a trend change based on EMA crossovers inside the box.
Key Features
Automatic Box Plotting: Visually defines the range of the compression.
Dynamic Dashboard: High-visibility panel showing trend strength and probabilities.
Highly Customizable: Adjust EMA lengths, ATR sensitivity, and dashboard position to fit your trading style.
How to Trade with this Indicator
Trend Continuation: Look for a breakout in the direction of the EMA alignment (e.g., price breaks above the box while EMA 9 is above EMA 21). This is high-probability when the dashboard shows >70% Trend Probability.
Reversal: Watch for the price to cross back into the box and for the EMA 9 to cross the EMA 21. This shift in momentum often signals a trap or a trend exhaustion.
Disclaimer: This indicator is for educational and analytical purposes only. Trading involves significant risk, and past performance (probabilities) does not guarantee future results. Always use proper stop-loss management.
Cycles
Shock Gap Bot [Enhanced]Shock Gap bot this to provide entry for pre market stocks , so you can get the bounce back
Cyberpunk Hyper-Linear ChannelCyberpunk Hyper-Linear Channel is a next-generation linear regression channel designed to visualize trend direction, volatility, and price positioning with high clarity and minimal noise.
Unlike traditional regression channels, this indicator applies EMA smoothing to both slope and intercept, significantly reducing sudden angle shifts and visual jitter.
The result is a stable, latency-controlled trend channel that adapts smoothly to market structure.
🔹 Core Concept
・Linear regression defines the trend axis
・Standard deviation determines dynamic channel width
・Slope & intercept smoothing improves structural stability
・Neon zones highlight bullish / bearish pressure in real time
🔹 Key Features
・Smoothed Linear Regression Channel (trend-focused, low noise)
・Volatility-based adaptive upper & lower boundaries
・Dynamic neon fill that reacts to price position
・Clear trend bias visualization without repainting clutter
・Cyberpunk-inspired, clean and modern aesthetic
🔹 How to Use
・Price near center line → Mean reversion / equilibrium zone
・Price approaching channel edges → Volatility expansion
・Upper zone dominance → Bullish trend pressure
・Lower zone dominance → Bearish trend pressure
・Breakouts beyond the channel may signal trend acceleration or exhaustion
🔹 Best Use Cases
・Trend-following confirmation
・Dynamic support & resistance mapping
・Market structure visualization across all assets
Cyberpunk Hyper-Linear Channel は、
トレンド方向・ボラティリティ・価格の位置関係を
ノイズを極力排除して可視化する次世代線形回帰チャネルです。
従来の線形回帰チャネルと異なり、
傾き(Slope)と切片(Intercept)の両方にEMAスムージングを適用。
これにより、角度の急変や視覚的ブレを抑えた
安定性の高いトレンド構造を描画します。
🔹 コンセプト
・線形回帰によるトレンド軸の定義
・標準偏差による動的チャネル幅
・スムージングで構造ノイズを低減
・価格位置に応じたネオンゾーンの動的強調表示
🔹 特徴
・低ノイズ・高安定な線形回帰チャネル
・ボラティリティ連動型の上下バンド
・価格位置に反応するダイナミックな発色
・リペイント感のないクリーンな描画
・サイバーパンク調の洗練されたデザイン
🔹 使い方
・中央線付近 → 平衡・持ち合いゾーン
・チャネル上限 / 下限付近 → ボラ拡大・圧力増加
・上部ゾーン優勢 → 上昇トレンド圧力
・下部ゾーン優勢 → 下降トレンド圧力
・チャネル外へのブレイクは加速 or 行き過ぎの兆候として注視
🔹 想定用途
・トレンドフォローの補助
・動的サポート / レジスタンスの把握
・相場構造の視覚的理解
UT Bot + MACD BUY Delayed Confirm v6UT Bot + MACD BUY Delayed Confirm..even if macd cross happens afterwards signal arrives
Leader Stock ScannerLeader Stock Scanner, Testing using AI
✅ How it works:
Relative Strength (RS) vs SPY – RS above 80 marks strong leaders.
Trend Alignment – 50 EMA > 150 EMA > 200 EMA and price above all EMAs.
Liquidity Filter – 20-day average volume > 500k.
Price Filter – avoids low-priced microcap traps (< $10).
Output – signals a “triangle up” on chart and can trigger alerts.
Pattern Multi-TF Dashboardesigned to identify the three primary phases of price action: Contraction, Expansion, and Trend. By combining technical momentum (ADX) with price range volatility, this script provides a "top-down" view of the market, allowing traders to see how lower-timeframe price action fits into the broader market cycle.
Core Logic & Market Phases
The indicator classifies market conditions based on a proprietary blend of ADX (Average Directional Index) and price deviation from the Fair Market Value (FMV).
🟦 Contraction (Blue): Identified when ADX is low and price is consolidating within a narrow range relative to the FMV. This represents "market value" where orders are being accumulated.
🟧 Expansion (Orange): Triggered when ADX begins to rise and price pushes away from the FMV. This represents the initial breakout phase where the market is seeking a new value area.
🟩 Trend (Green): Confirmed when ADX remains high and price maintains direction. This is the "momentum" phase of the cycle.
⬜ Neutral (Gray): Default state when neither contraction nor strong momentum is detected.
Key Features
Multi-TF Dashboard: A dynamic, real-time table displaying the Phase, Bias (Bullish/Bearish), and FMV price for eight different timeframes (1m through Monthly).
Visual Bias Tracking: The "Bias" column is color-coded (Green for Bullish, Red for Bearish) based on whether price is trading above or below the Fair Market Value (Mid-point of the range).
On-Chart Inefficiencies (FVG): Automatically plots Green/Red triangles to highlight Fair Value Gaps, identifying areas of price imbalance where liquidity may be resting.
HTF FMV Overlay: Plots the Fair Market Value (Mid-line) of a user-defined Higher Timeframe (e.g., 4H) directly onto your current chart for easy trend reference.
Optimized Performance: Built specifically for Pine Script® v6, the dashboard is designed to update only on the most recent bar to ensure zero chart lag during manual scrolling.
How to Use
Identify the HTF Phase: Look at the background color of your chart to see the 4H or Daily phase.
Check for Alignment: Use the Dashboard to see if the 1m and 5m biases match the HTF bias.
Find Entry: Look for Inefficiencies (FVGs) that align with the Expansion or Trend phases for high-probability entry points.
Pattern Multi-TF DashboardPattern indicator is a comprehensive market analysis tool designed to identify the three primary phases of price action: Contraction, Expansion, and Trend. By combining technical momentum (ADX) with price range volatility, this script provides a "top-down" view of the market, allowing traders to see how lower-timeframe price action fits into the broader market cycle.
Core Logic & Market Phases
The indicator classifies market conditions based on a proprietary blend of ADX (Average Directional Index) and price deviation from the Fair Market Value (FMV).
🟦 Contraction (Blue): Identified when ADX is low and price is consolidating within a narrow range relative to the FMV. This represents "market value" where orders are being accumulated.
🟧 Expansion (Orange): Triggered when ADX begins to rise and price pushes away from the FMV. This represents the initial breakout phase where the market is seeking a new value area.
🟩 Trend (Green): Confirmed when ADX remains high and price maintains direction. This is the "momentum" phase of the cycle.
⬜ Neutral (Gray): Default state when neither contraction nor strong momentum is detected.
Key Features
Multi-TF Dashboard: A dynamic, real-time table displaying the Phase, Bias (Bullish/Bearish), and FMV price for eight different timeframes (1m through Monthly).
Visual Bias Tracking: The "Bias" column is color-coded (Green for Bullish, Red for Bearish) based on whether price is trading above or below the Fair Market Value (Mid-point of the range).
On-Chart Inefficiencies (FVG): Automatically plots Green/Red triangles to highlight Fair Value Gaps, identifying areas of price imbalance where liquidity may be resting.
HTF FMV Overlay: Plots the Fair Market Value (Mid-line) of a user-defined Higher Timeframe (e.g., 4H) directly onto your current chart for easy trend reference.
Optimized Performance: Built specifically for Pine Script® v6, the dashboard is designed to update only on the most recent bar to ensure zero chart lag during manual scrolling.
How to Use
Identify the HTF Phase: Look at the background color of your chart to see the 4H or Daily phase.
Check for Alignment: Use the Dashboard to see if the 1m and 5m biases match the HTF bias.
Find Entry: Look for Inefficiencies (FVGs) that align with the Expansion or Trend phases for high-probability entry points.
JOWY LA VERDADERA ESTRUCTURABasically it is an indicator that perfectly represents the typical BoS Market structure in the fastest way. It is advisable to study several temporalities at the same time and not focus on just one.
Balance Zone ProjectorOVERVIEW
Projects balance zones above and below up to 3 anchor zones. Each zone represents a 2x, 4x, 8x... multiple of the original anchor height, helping you identify key price levels for entries, exits, and targets.
HOW TO USE
1. Add the indicator to your chart
2. Click to set Anchor 1 High (top of your zone)
3. Click to set Anchor 1 Low (bottom of your zone)
4. Zones automatically project above and below
MULTIPLE ANCHORS
Enable Anchor 2 and Anchor 3 in settings to track multiple zones at different time periods. Each anchor has its own:
- High/Low prices
- Bars Back (where to start drawing)
- Bars Forward (zone width)
ZONE GROUPS
Zones are colored by group for easy identification:
- Group 1: Zones 1-2 (nearest to anchor)
- Group 2: Zones 3-6
- Group 3: Zones 7-14
- Group 4: Zones 15-30
CUSTOMIZATION
- Enable/disable up or down projections
- Adjust colors and transparency per zone group
- Show/hide zone labels and midlines
- Customize label text templates
SETTINGS
All anchors share the same visual settings (colors, labels, midlines) for consistency. Individual anchor timing is controlled per-anchor.
Based on the Balance Zone Engine concept for Sierra Chart.
Market Intent Flow (MIF)🟡 Market Intent Flow (MIF) – Gold Trader’s Perspective
Market Intent Flow (MIF) is a price-action-based indicator designed to reveal real market participation behind Gold (XAUUSD) moves.
Instead of flooding the chart with signals, MIF highlights only moments when the market clearly shows intent — whether buyers or sellers are in control.
Gold is a liquidity-driven instrument. MIF is built to respect that nature, not fight it.
🏆 Why Gold Traders Like This Indicator
Gold traders prefer clarity over noise, and that’s exactly what MIF delivers:
🧲 Gold respects structure & momentum
🔊 Big moves happen with volume expansion
🧠 Smart money shows intent before continuation
⏳ Fewer signals = higher quality setups
🎯 Works well on H1, H4, and M15
This makes MIF ideal for intraday, swing, and positional Gold traders.
🧠 Detection Logic
Simple • Effective • Battle-Tested
MIF does not rely on lagging indicators.
It confirms intent using three proven market elements:
📈 Structure Shift – Price must break recent highs or lows
🕯 Candle Strength – Strong body dominance, not weak wicks
🔊 Volume Expansion – Participation confirms conviction
Only when all conditions align, a signal is printed.
💥 Displacement Filter
Power Move Confirmation
Gold often creates fake breakouts.
MIF avoids them using a displacement filter:
🚀 Signals appear only during impulsive candles
❌ Weak, slow, or choppy candles are ignored
📊 Confirms real institutional movement
🔥 Ideal for catching continuation after liquidity events
This keeps the indicator clean, disciplined, and professional.
📌 How to Use It Best
🟢 Green Signal → Bullish intent confirmed
🔴 Red Signal → Bearish intent confirmed
🔵 EMA Line → Market bias & trend filter
⚠️ Important Note
This indicator is a confirmation tool, not a prediction engine.
It is designed to help traders trade with the market, not against it.
Gann Market Cycle Alerts (Long-Term)according to gann time cycle move and buy and sell and side ways
[COG] NautilusOverview
This indicator combines multiple technical analysis tools to identify high-probability entry points in trending markets. It uses moving average crossovers for trend direction, Bollinger Bands for mean reversion opportunities, and optional filters to reduce false signals and avoid choppy market conditions.
What Makes This Indicator Unique
Heiken Ashi Toggle:
All calculations can be performed on either regular or Heiken Ashi candles with a single click
Multi-Layer Filtering System: Four independent filters work together to improve signal quality
First Entry Detection: Automatically identifies and labels the first signal after a trend change
Anti-Overtrading Protection: Built-in cooldown mechanism prevents signal spam
Core Components
1. Trend Detection (EMA/SMA Crossover)
The indicator uses a 15-period EMA and 50-period SMA to determine market direction. Buy signals only occur when EMA > SMA, and sell signals only when EMA < SMA.
// Trend Detection
bullishTrend = ema15 > sma50
bearishTrend = ema15 < sma50
2. Bollinger Bands Mean Reversion
Entry signals trigger when price touches or penetrates the Bollinger Bands, indicating potential reversal or pullback opportunities within the established trend.
//Bollinger Band Touch Detection
lowerBandTouch = selectedLow <= bbLower
upperBandTouch = selectedHigh >= bbUpper
// Base Entry Conditions
baseBuySignal = bullishTrend and lowerBandTouch and bullishClose
baseSellSignal = bearishTrend and upperBandTouch and bearishClose
3. Candle Confirmation
Signals require a bullish candle close (close > open) for buy signals and bearish candle close (close < open) for sell signals, ensuring momentum alignment.
// Candle Close Type
bullishClose = selectedClose > selectedOpen
bearishClose = selectedClose < selectedOpen
Optional Filters (All Toggleable)
Filter 1: StochRSI Momentum
Ensures entries occur during oversold/overbought conditions. Buy signals require StochRSI < 20, sell signals require StochRSI > 80.
// StochRSI Calculation
rsi = ta.rsi(stochRSISource, rsiLength)
stochRSI_K = ta.sma(ta.stoch(rsi, rsi, rsi, stochRSILength), stochKSmooth)
// Filter Conditions
stochRSIOversoldCondition = stochRSI_K < stochRSIOversold
stochRSIOverboughtCondition = stochRSI_K > stochRSIOverbought
Filter 2: MA Separation (Anti-Chop)
Blocks signals when moving averages are too close together, indicating sideways/choppy market conditions. Default threshold is 1% separation.
// Calculate percentage separation between EMA and SMA
maSeparationPct = (math.abs(ema15 - sma50) / sma50) * 100
// MA separation filter condition
maSeparationValid = maSeparationPct >= maSeparationThreshold
Why this matters: When the 15 EMA and 50 SMA are very close (< 1% apart), the market is typically consolidating. Signals in these conditions have lower win rates.
Filter 3: Cooldown Period
Prevents over-trading by blocking new signals for a specified number of bars (default: 10) after a signal occurs. Buy and sell cooldowns are tracked separately.
// Variables to track the bar index of the last signal
var int lastBuySignalBar = na
var int lastSellSignalBar = na
// Calculate bars since last signal
barsSinceLastBuy = na(lastBuySignalBar) ? 999999 : bar_index - lastBuySignalBar
// Cooldown filter condition
buyCooldownValid = barsSinceLastBuy >= cooldownBars
// Update tracking when signal fires
if buySignal
lastBuySignalBar := bar_index
Advanced Features
Heiken Ashi Mode
Toggle between regular candles and Heiken Ashi candles for all calculations. Heiken Ashi candles smooth price action and can reduce false signals in volatile markets.
// Fetch Heiken Ashi OHLC values
= request.security(
ticker.heikinashi(syminfo.tickerid),
timeframe.period,
)
// Select which OHLC to use based on toggle
selectedClose = useHeikenAshi ? haClose : close
First Entry Detection
Automatically identifies and labels the first signal after a trend change with "1. Trend Cycle Entry" text. This helps traders distinguish between fresh trend entries and continuation signals.
// Detect trend changes
trendChangedToBullish = bullishTrend and not bullishTrend
// Reset tracking when trend changes
if trendChangedToBullish
hadBuySignalInCurrentBullTrend := false
// Identify first signal in new trend
isFirstBuyInTrendCycle = buySignal and not hadBuySignalInCurrentBullTrend
How Signals Are Generated
The indicator uses a layered approach where each condition must be satisfied:
// Apply all filters
buySignal = enableBuySignals and baseBuySignal and
(not enableStochRSIFilter or stochRSIOversoldCondition) and
(not enableMASeparationFilter or maSeparationValid) and
(not enableCooldownFilter or buyCooldownValid)
Buy Signal Requirements:
✅ 15 EMA above 50 SMA (bullish trend)
✅ Candle low touches or goes below lower Bollinger Band
✅ Candle closes bullish (green)
✅ (Optional) StochRSI < 20
✅ (Optional) MA separation > threshold %
✅ (Optional) Cooldown period expired
Sell Signal Requirements:
✅ 15 EMA below 50 SMA (bearish trend)
✅ Candle high touches or goes above upper Bollinger Band
✅ Candle closes bearish (red)
✅ (Optional) StochRSI > 80
✅ (Optional) MA separation > threshold %
✅ (Optional) Cooldown period expired
Customization Options
Moving Averages:
Adjustable EMA length (default: 15)
Adjustable SMA length (default: 50)
Source selection (Close, Open, High, Low, HL2, HLC3, OHLC4)
Bollinger Bands:
Adjustable length (default: 20)
MA type selection (SMA, EMA, SMMA, WMA, VWMA)
Adjustable standard deviation multiplier (default: 2.0)
StochRSI Filter:
Adjustable RSI length (default: 14)
Adjustable Stochastic length (default: 14)
Customizable oversold/overbought levels (default: 20/80)
MA Separation Filter:
Adjustable minimum separation percentage (default: 1.0%)
Cooldown Filter:
Adjustable cooldown period in bars (default: 10)
Visual Settings:
Customizable colors for all elements
Adjustable line widths
Toggle first entry labels on/off
How to Use
Basic Setup: Apply the indicator to your chart. By default, it shows moving averages, Bollinger Bands, and entry signals.
Choose Your Mode: Enable Heiken Ashi mode if you prefer smoother signals and are willing to accept some lag.
Enable Filters: Start with all filters disabled to see raw signals. Then enable filters one by one:
Start with MA Separation filter to avoid choppy markets
Add StochRSI filter to catch better momentum conditions
Add Cooldown filter to prevent over-trading
Adjust Parameters: Tune the parameters based on your timeframe and trading style:
Lower timeframes: Consider shorter cooldown periods
Higher timeframes: May want tighter MA separation requirements
Watch for First Entry Labels: The "1. Trend Cycle Entry" label highlights the highest-probability signals occurring right after trend changes.
Important Notes
⚠️ This indicator does not repaint. All signals appear on closed candles only.
⚠️ Past performance is not indicative of future results. This indicator should be used as part of a complete trading strategy with proper risk management.
⚠️ Filters reduce signal frequency: Enabling multiple filters will significantly reduce the number of signals. This is intentional to improve quality over quantity.
⚠️ Heiken Ashi mode considerations: While HA mode smooths signals, it can also introduce lag. Test both modes on your preferred timeframe.
Best Practices
Always backtest on your preferred timeframe before live trading
Start conservative with tighter filters, then loosen if needed
Pay special attention to "First Entry" signals for highest probability setups
Use appropriate position sizing and stop losses
Consider market conditions: trending vs ranging
Disclaimer
This indicator is for educational purposes only and should not be considered financial advice. Trading involves substantial risk of loss. Always do your own research and consider your risk tolerance before trading.
Short-Term Cycle Investing Strategy This strategy use for short term cycle data use and useing phase accumilitain and distrubution and buy zone monthly weekly daily
ICT + AVP + CHoCH (Smart Money)just tried to check concept of ict avp and choch for trading in various charts
SAS 4H Positional ScreenerSAS 4H Positional Screener is a structure-based trend filter designed for 4-hour positional trading in Indian large-cap stocks.
It identifies high-probability bullish setups by combining trend alignment, price acceptance, and institutional market structure.
This screener is not a buy/sell strategy.
It is a professional pre-trade filter used to shortlist stocks that are ready or near-ready for LONG trades.
Crypto Momentum OscillatorThe indicator uses an adaptive weighting system that dynamically adjusts component importance based on rolling correlations with BTC, creating a composite master score that signals optimal entry/exit conditions when macro tailwinds align with crypto momentum.
Trend-cycle reversion (multi-timeframe)Trend-cycle reversion (multi-timeframe) is a mean-reversion “stretch” gauge built around a simple idea: price often deviates from its recent path (trend + dominant swing rhythm), and those deviations become more actionable when you scale them by volatility and express them as a standardized score.
This script models the last N bars as:
1) a linear trend (to capture drift), plus
2) a single dominant cycle (to capture the most prominent oscillation inside the same window).
It then measures how far current price is from the model’s next-bar projection, normalizes that distance by ATR (volatility), and finally converts the result into a rolling Z-score. The output is displayed as a multi-timeframe dashboard so you can see “stretch vs. fit” across several time compressions at once.
------------------------------------------------------------
What you see on the chart
------------------------------------------------------------
The indicator draws a table (overlay) with up to 12 rows (configurable), one per timeframe from your CSV list.
Each row shows:
• TF: The timeframe being evaluated (e.g., 1, 5, 15, 60, 240, D).
• Z: The current Z-score of the volatility-scaled model gap on that timeframe.
• State: A simple interpretation using your Z threshold:
- “Short ▼” when Z > +threshold (price is extended above the model path)
- “Long ▲” when Z < −threshold (price is extended below the model path)
- “Hold •” when inside the band (not unusually stretched)
Colors follow the same logic: red for high positive Z, green for high negative Z, gray when neutral or unavailable.
Important: “Long/Short” here describes the direction of mean-reversion pressure (over/under the fitted path), not a complete trading system by itself.
------------------------------------------------------------
How it works (plain-English math)
------------------------------------------------------------
1) Optional log transform
If “Fit on log(price)” is enabled, the model runs on log(price) instead of raw price. This is often useful for markets that behave multiplicatively (large percentage moves, long-term exponential growth), because distances become closer to “percent-like” rather than absolute dollars.
2) Trend fit (linear regression in the window)
Over the last Window Length bars, the script estimates a straight-line trend. Think of this as the baseline path that best explains the window if you ignore swings.
3) Cycle search (best period by least-squares error)
After removing the linear trend, the script searches for a single sinusoidal cycle period between:
• Min Period and Max Period (in bars), stepping by Period Step.
For each candidate period, it computes the best-fitting sine+cosine components and measures the remaining error (SSE). The period with the smallest SSE is selected as the “best” cycle for that window.
To reduce recalculation cost and to keep the chosen cycle from flapping every bar, the script re-runs this period search only every “Re-search best period every N bars”. Between searches, it keeps using the last best period.
4) Next-bar projection and “gap”
Using the fitted trend + fitted cycle, the script projects the model value one bar ahead (relative to the window indexing). It then computes:
gap = (current value) − (projected value)
If “Invert sign” is enabled, the gap is multiplied by −1. This doesn’t change magnitude, it only flips interpretation (useful if you prefer the opposite sign convention).
5) Volatility scaling via ATR
The raw gap is divided by ATR to make it comparable across symbols and regimes. If you are fitting on log(price), ATR is also computed in log space using a log-based true range, then smoothed similarly (so the scale is consistent).
This produces a “gap in ATR units”.
6) Z-score standardization
Finally, the script computes a rolling Z-score of the ATR-scaled gap over “Z-score length”:
Z = (gapATR − mean(gapATR)) / stdev(gapATR)
This is what appears in the table. The Z-score answers: “How unusual is today’s model deviation compared to the last Z-score length observations?”
------------------------------------------------------------
How to interpret the Z-score
------------------------------------------------------------
Z near 0:
Price is close to the model path relative to recent volatility (nothing unusual).
Z above +threshold:
Price is meaningfully ABOVE the fitted path (stretched up). This can be read as elevated downside mean-reversion pressure — but it can also persist during strong trends.
Z below −threshold:
Price is meaningfully BELOW the fitted path (stretched down). This can be read as elevated upside mean-reversion pressure — but it can also persist during fast selloffs.
A practical way to use this indicator is to treat it as a “context filter” or “risk tool”:
• Fading extremes: look for mean-reversion setups when Z is beyond the threshold and price action confirms (e.g., momentum stalls, structure breaks, volatility contraction/expansion cues).
• Trend-aware reversion: only take “reversion” signals in the direction permitted by your separate trend filter (higher-timeframe trend, moving average regime, market structure, etc.).
• Take-profit / risk management: in a trend-following strategy, extremes can be used as partial profit zones or as “don’t chase here” warnings.
------------------------------------------------------------
Multi-timeframe (MTF) notes
------------------------------------------------------------
Each table row is computed with request.security() on that timeframe with no lookahead, so it is not using future bars to form the value.
However, like any live indicator, the value for an actively forming bar can change until that bar closes (especially on the lower timeframes). Also, higher-timeframe rows update when that higher-timeframe bar updates/closes.
------------------------------------------------------------
Inputs (what to change first)
------------------------------------------------------------
If you only change a few settings, start here:
• Window Length:
Controls how much history the model uses. Larger = smoother/stabler, but slower to adapt.
• Min/Max Period + Step:
Controls the cycle search range and granularity.
- Wider ranges can capture more possibilities but cost more computation.
- Smaller steps can find a closer match but also cost more.
• Re-search every N bars:
Higher = faster performance and more stability; lower = more adaptive but can be noisier.
• ATR length (scale gap):
Controls the volatility scale. Shorter reacts faster to volatility changes; longer is steadier.
• Z-score length:
Controls how “rare” extremes are. Longer lengths make Z more stable, but require more history and adapt slower to regime shifts.
• Z threshold:
Defines when the table labels “Long/Short”. Common choices are 1.5–2.5 depending on how selective you want extremes to be.
• Timeframes (CSV) + Max table rows:
Controls what you see in the dashboard.
------------------------------------------------------------
Limitations and expectations
------------------------------------------------------------
This is a single-cycle, windowed model. Markets can be multi-cycle, non-sinusoidal, or structurally shifting; in those cases the “best period” is simply the best approximation inside the window, not a guarantee of a true underlying rhythm.
Z-score extremes are not automatic reversal calls. In strong trends or during volatility shocks, Z can stay extreme longer than expected. Use this as a measurement tool, then combine it with your own confirmation and risk management.
This indicator is for analysis/education and does not provide financial advice.






















