Z-Score Trend Channels [BackQuant]Z-Score Trend Channels
A self-contained price-statistics framework that turns a rolling z-score into price channels, bias states, and trade markers. Run either trend-following or mean-reversion from the same tool with clear, on-chart context.
What it is
A rolling statistical map that measures how far price is from its recent average in standard-deviation units (z-score).
Adaptive channels drawn in price space from fixed z thresholds, so the rails breathe with volatility.
A simple trend proxy from z-score momentum to separate trending from ranging conditions.
On-chart signals for pullback entries, stretched extremes, and practical exits.
Core idea (plain English math)
Rolling mean and volatility - Over a lookback you get the average price and its standard deviation.
Z-score - How many standard deviations the current price is above or below its average: z = (price - mean) / stdev. z near 0 means near average; positive is above; negative is below.
Noise control - An EMA smooths the raw z to reduce jitter and false flickers.
Channels back in price - Fixed z levels are converted back to price to form the upper, lower, and extreme rails.
Trend proxy - A smoothed change in z is used as a lightweight trend-strength line. Positive strength with positive z favors uptrend; negative strength with negative z favors downtrend.
What you see on the chart
Channels and fills - Mean, upper, lower, and optional extreme lines. The area mean->upper tints with the bearish color, mean->lower tints with the bullish color.
Background tint (optional) - Soft green, red, or neutral based on detected trend state.
Signals - Bullish Entry (triangle up) when z exits the oversold zone upward; Bearish Entry (triangle down) when z exits the overbought zone downward; Extreme markers (diamonds) at the extreme bands with a one-bar turn.
Table - Current z, trend state, trend strength, distance to bands, market state tag, and a quick volatility regime label.
Edge labels - MEAN, OB, and OS labels slightly projected forward with level values.
Inputs you will actually use
Z-Score Period - Lookback for mean and stdev. Larger = slower and steadier rails, smaller = more reactive.
Smoothing Period - EMA on z. Lower = earlier but choppier flips; higher = later but cleaner.
Price Source - Default hlc3. Choose close if you prefer session-close logic.
Upper and Lower Thresholds - Default around +2.0 and -2.0. Tighten for more signals, widen for fewer and stronger.
Extreme Upper and Lower - Deeper stretch guards, e.g., +/- 2.5.
Strength Period - EMA on z momentum. Sets how fast the trend proxy flips.
Trend Threshold - Minimum absolute z to accept a directional bias.
Visual toggles - Channels, signals, background tint, stats table, colors, and optional last-bar trend label.
How to use it: trend-following playbook
Read the state - Uptrend when z > Trend Threshold and trend strength > 0. Downtrend when z < -Trend Threshold and trend strength < 0. Neutral otherwise.
Entries - In an uptrend, prefer Bullish Entry signals that fire near the lower channel. In a downtrend, prefer Bearish Entry signals that fire near the upper channel.
Stops - Conservative: beyond the extreme channel on your side. Tighter: just outside the standard band that framed the signal.
Exits - For longs, exit or trim on a cross back through z = 0 or a clean tag of the upper threshold. For shorts, mirror with z = 0 up-cross or tag of the lower threshold. You can also reduce if trend strength flips against you.
Adds - In strong trends, additional signals near your side’s band can be add points. Avoid adding once z hovers near the opposite band for several bars.
How to use it: mean-reversion playbook
Find stretch - Standard reversions: Bullish Entry when z leaves the oversold zone upward; Bearish Entry when z leaves the overbought zone downward. Aggressive reversions: Extreme markers at extreme bands with a one-bar turn.
Entries - Take the signal as price exits the zone. Prefer setups where trend strength is near zero or tilting against the prior push.
Targets - First target is the mean line. A runner can aim for the opposite standard channel if momentum keeps flipping.
Stops - Outside the extreme band beyond your entry. If fading without extremes, place risk just beyond the opposite standard band.
Filters - Optional: skip counter-trend fades against a very strong trend state unless your risk is tight and predefined.
Reading the stats table
Current Z-Score - Magnitude and sign of displacement now.
Trend State - Uptrend, Downtrend, or Ranging.
Trend Strength - Smoothed z momentum. Higher absolute values imply stronger directional conviction.
Distance to Upper/Lower - Percent distance from price to each band, useful for sizing targets or judging room left.
Market State - Overbought, Oversold, Extreme OB, Extreme OS, or Normal.
Volatility Regime - High, Normal, or Low relative to recent distribution. Expect bands to widen in High and tighten in Low.
Parameter guidance (conceptual)
Z-Score Period - Choose longer for a structural mean, shorter for a reactive mean.
Smoothing Period - Lower for earlier but noisier reads; higher for slower but steadier reads.
Thresholds - Start around +/- 2.0. Tighten for scalping or quiet ranges. Widen for noisy or fast markets.
Trend Threshold and Strength Period - Raise to avoid weak, transient bias. Lower to capture earlier regime shifts.
Practical examples
Trend pullback long - State shows Uptrend. Price tests the lower channel; z dips near or below the lower threshold; a Bullish Entry prints. Stop just below extreme lower; first target mean; keep a runner if trend strength stays positive.
Mean-revert short - State is Ranging. z tags the extreme upper, an Extreme Bearish marker prints, then a Bearish Entry prints on the leave. Stop above extreme upper; target the mean; consider a runner toward the lower channel if strength turns negative.
Potential Questions you might have
Why z-score instead of fixed offsets - Because the bands adapt with volatility. When the tape gets quiet the rails tighten, when it runs hot the rails expand. Your entries stay normalized.
Do I need both modes - No. Many users run only trend pullbacks or only mean-reversions. The tool lets you toggle what you need and keep the chart readable.
Multi-timeframe workflow - A common approach is to set bias from a higher timeframe’s trend state and execute on a lower timeframe’s signals that align with it.
Summary
Z-Score Trend Channels gives you an adaptive mean, volatility-aware rails, a simple trend lens, and clear signals. Trade the trend by buying pullbacks in green and selling pullbacks in red, or fade stretched extremes back to the mean with defined risk. One framework, two strategies, consistent logic.
Trend Analysis
PCCE + False Breakout DetectorPCCE + False Breakout Detector
Type: Invite-Only Indicator (closed source)
Purpose : Detect price compression and the first expansion after it, while flagging failed breakouts (bull/bear traps) for risk control.
1) What’s original here!
This tool integrates three behaviour-driven tests that work in a single decision flow:
A compression score built from:
(a) monotonic body shrink,
(b) wick-dominance, and
(c) relative range contraction versus history.
This is not a bands/oscillator port; it’s a structure-first filter that isolates coils.
A thrusted expansion requirement that combines real-body impulse and relative-volume participation (+ optional EMA alignment) to qualify a breakout beyond the coil envelope.
An immediate post-breakout failure test (trap logic) that checks whether the breakout re-enters the prior swing range within a short window.
Used together, these steps turn raw breaks into contextual, risk-aware events: setup → trigger → validation. That is the value of the combination.
⸻
2) Concepts behind the calculations:
Let body_t = |close_t − open_t|,
uw_t = high_t − max(open_t, close_t) (upper wick),
lw_t = min(open_t, close_t) − low_t (lower wick),
R_t(k) = highest(high, k)_t − lowest(low, k)_t (range over k bars),
MA_body(k) = SMA(body, k), MA_vol(k) = SMA(volume, k).
2.1 Compression (coil) detection
We evaluate within a window k = coilLength:
• Body shrink count: number of consecutive steps where body_(t−i) < body_(t−i−1).
• Wick dominance: AvgWickBody = avg( (uw + lw) / body ) over the window; require AvgWickBody > wickRatioMin.
• Relative range contraction: current R_t(k) must be less than α × avg( R_(t−j)(k) ) computed over a lookback of rangeWindow windows, with α < 1 (tight market).
When all three are true, we mark a coil zone; the coil bounds are High_coil = highest(high, k), Low_coil = lowest(low, k).
2.2 Expansion (“Burst”) confirmation
A breakout is only qualified when all hold on bar close:
• Direction: close > High_coil → up; close < Low_coil → down.
• Body thrust: body_t > MA_body(k) × bodyMult.
• Participation: volume_t > MA_vol(k) × volumeMultiplier.
• Trend alignment (optional): close_t > EMA(emaLen) for up / < EMA for down.
• Cooldown: t − lastSignal > cooldownBars.
If satisfied, print Burst↑ or Burst↓ on that bar.
2.3 Failed breakout (trap) detection
Let H_s and L_s be the prior swing high/low from a lookback rangeLookback (excluding the current bar). Define:
• Bull break attempt: a bar that closed above H_s.
Bull trap: within fakeoutBars bars after that attempt, any close returns below H_s. Mark ❌ red above that bar.
• Bear break attempt: a bar that closed below L_s.
Bear trap: within fakeoutBars bars after that attempt, any close returns above L_s. Mark ❌ green below that bar.
Alerts fire on bar close only.
⸻
3) What you’ll see on the chart
• Coil box: shaded envelope (tight-range bounds).
• Burst labels: Burst↑ / Burst↓ only when thrust + volume (and optional EMA) confirm the break.
• Trap markers: ❌ red (failed bullish breakout) / ❌ green (failed bearish breakout).
• Alerts: “Burst Up” and “Burst Down” (close-based).
⸻
4) How to use it
1. Preparation : When a coil box appears, mark the bounds; expect expansion risk to rise.
2. Trigger : Act only on Burst labels (they already encode body/volume thrust and optional trend).
3. Validation : If a ❌ trap prints shortly after a breakout, treat it as a warning/exit event; breakouts that re-enter the prior swing range are statistically fragile.
4. Context : Works well on 15m–4H where structure is visible. Combine with your own higher-timeframe bias, S/R, liquidity pools, and risk rules.
5. Tuning :
• Tighten/loosen coil sensitivity via coilLength, wickRatioMin, and the range contraction factor.
• Use larger bodyMult / volumeMultiplier to demand stronger breaks.
• cooldownBars controls clustering in fast sessions.
• rangeLookback and fakeoutBars control how strict the trap check is.
⸻
5) Repainting, scope, and limitations
• Burst and trap labels are evaluated on bar close; once printed, they do not repaint. Coil boxes can update while forming; they stabilize once conditions are met.
• Sudden news/illiquid periods can defeat filters; adjust multipliers and cooldown for your instrument.
• This is an indicator, not a strategy; it does not publish PnL, win-rate, or forward promises.
LQ sweep (DeadCat)This indicator provides a streamlined approach to Smart Money Concepts (SMC) market structure analysis, focusing on identifying liquidity sweep patterns at key structural levels. The script tracks price action to detect when institutional liquidity is being targeted through systematic structure breaks.
Core Methodology:
The indicator employs a dual-pivot system (20/2 bars) to identify market structure points internally, then monitors for liquidity sweeps at these levels:
Trend Continuation Sweeps: When price breaks above Higher Highs (uptrend) or below Lower Lows (downtrend)
Trend Reversal Sweeps: When price breaks below Higher Lows (uptrend) or above Lower Highs (downtrend)
Market Structure Engine:
Automatically establishes initial trend direction from first two pivot points
Tracks structure progression internally without visual clutter
Requires 2-candle confirmation (bullish/bearish) before finalizing new structure levels
Maintains pending structure states until proper confirmation occurs
Liquidity Sweep Detection:
The indicator identifies four distinct liquidity sweep scenarios:
Bullish Continuation: HH break in established uptrend
Bearish Continuation: LL break in established downtrend
Bullish Reversal: LH break signaling potential uptrend resumption
Bearish Reversal: HL break signaling potential downtrend resumption
Key Features:
Simplified Interface: Single settings group for all liquidity sweep configurations
Flexible Label Positioning: Choose where sweep labels appear on lines
Consistent Visual Style: All sweeps use the same color/style for clarity
Minimal Chart Clutter: No market structure labels, only essential sweep markers
Unique Implementation:
Unlike traditional SMC indicators that display all structure points, this tool focuses exclusively on actionable liquidity sweeps. It maintains the mathematical rigor of structure tracking internally while presenting only the critical sweep levels where institutional activity is likely concentrated.
Usage:
Liquidity sweeps often precede significant moves as they represent areas where stop-losses accumulate. Traders can use these levels to:
- Identify potential reversal zones after sweep completion
- Spot continuation patterns when sweeps align with trend
- Time entries after liquidity has been collected
- Set stop-loss levels beyond recent sweep points
This indicator simplifies complex SMC concepts into actionable liquidity sweep signals, making it suitable for traders who want to focus on key institutional levels without overwhelming chart analysis.
ML-Enhanced Multi-Indicator Composite Signal🤖 ML-Enhanced Multi-Indicator Composite Signal
Revolutionary AI-Powered Trading Indicator with Adaptive Learning
Transform your trading with cutting-edge machine learning technology that automatically optimizes indicator weights based on real market performance!
🎯 What Makes This Indicator Special?
This isn't just another composite indicator. It's an intelligent trading system that learns from market data and continuously adapts to improve signal accuracy. Unlike static indicators with fixed weights, this AI-powered tool dynamically adjusts the importance of each technical indicator based on their actual prediction success rates.
⚡ Key Features
🤖 Adaptive Machine Learning Engine
Automatically tracks prediction accuracy for each indicator
Dynamically adjusts weights based on performance
Continuous learning and adaptation to market conditions
Configurable learning parameters for fine-tuning
📊 Multi-Indicator Fusion
SuperTrend: Trend direction and momentum
Moving Averages: Price trend confirmation (SMA/EMA/WMA/RMA)
VWAP: Volume-weighted price levels
Linear Regression: Mathematical trend analysis
🎯 Intelligent Signal Generation
Strong Buy/Buy/Sell/Strong Sell signals
Configurable threshold levels
Signal smoothing to reduce noise
Smart signal timing to avoid repetitive alerts
📈 Performance Analytics Dashboard
Real-time accuracy tracking for each indicator
Weight distribution visualization
ML vs. Equal weights comparison
Learning progress monitoring
🚀 How It Works
1. Data Collection Phase
The indicator continuously monitors the performance of each technical component, storing predictions and actual market outcomes.
2. Learning Phase
Using configurable learning periods (20-500 bars), the ML engine calculates accuracy rates for each indicator's predictions.
3. Weight Optimization
Based on performance data, the system automatically adjusts weights using a configurable learning rate, ensuring better-performing indicators have more influence.
4. Signal Generation
The optimized composite signal triggers buy/sell alerts when crossing predefined thresholds, with visual signals and background coloring.
⚙️ Customization Options
Machine Learning Parameters
Learning Period: 20-500 bars (default: 100)
Prediction Horizon: 1-20 bars (default: 5)
Learning Rate: 0.01-1.0 (default: 0.1)
Minimum Weight: Prevents any indicator from becoming irrelevant
Performance Smoothing: Reduces noise in accuracy calculations
Traditional Settings
SuperTrend: Period and multiplier adjustment
Moving Average: Type selection and length
VWAP: Source customization
Linear Regression: Length and source options
Signal Configuration
Threshold Levels: Customizable buy/sell trigger points
Signal Smoothing: Reduces false signals
Manual Override: Option to use fixed weights instead of ML
📱 Visual Features
Signal Line Display
Dynamic color coding based on signal strength
Threshold level lines for clear entry/exit points
Background coloring for quick market sentiment assessment
Performance Table
Real-time accuracy metrics for each indicator
Current weight distribution showing ML optimization
Performance comparison between ML and equal weights
Learning progress indicator
Signal Shapes
🚀 Strong Buy: Large green triangle with text
📈 Buy: Standard green triangle
📉 Sell: Standard red triangle
💥 Strong Sell: Large red triangle with text
🎓 Best Practices & Usage Tips
For Beginners
Start with default ML settings
Allow 100+ bars for proper learning
Focus on Strong Buy/Sell signals initially
Monitor the performance table to understand ML adaptation
For Advanced Traders
Adjust learning rate based on market volatility
Customize prediction horizon for your trading timeframe
Fine-tune threshold levels for your risk tolerance
Combine with additional confirmation indicators
Recommended Settings by Timeframe
Scalping (1m-5m): Learning Period: 50, Prediction Horizon: 3
Day Trading (15m-1h): Learning Period: 100, Prediction Horizon: 5
Swing Trading (4h-1D): Learning Period: 200, Prediction Horizon: 10
🔔 Alert System
Set up comprehensive alerts for:
Strong Buy/Sell signals with maximum consensus
Regular Buy/Sell signals for standard entries
Custom message templates with price and signal strength
Email, SMS, and webhook compatibility
⚠️ Important Notes
Learning Period: Allow sufficient data for ML optimization (minimum 50 bars recommended)
Market Conditions: Performance may vary during high volatility or trending vs. ranging markets
Backtesting: Test thoroughly on historical data before live trading
Risk Management: Always use proper position sizing and stop losses
🏆 Why Choose This Indicator?
✅ Adaptive Intelligence: Unlike static indicators, this tool evolves with market conditions
✅ Transparent Performance: See exactly how well each component is performing
✅ Comprehensive Analytics: Make informed decisions with detailed performance metrics
✅ Professional Grade: Developed by experienced traders for serious market participants
✅ Continuous Innovation: Regular updates and improvements based on user feedback
📊 Performance Tracking
The indicator provides unprecedented transparency into its decision-making process:
Individual indicator accuracy rates
Weight evolution over time
Improvement metrics vs. baseline
Learning curve visualization
Transform your trading with the power of adaptive machine learning. Let the market data guide your strategy optimization automatically!
Tags: Machine Learning, AI Trading, Composite Signal, Multi-Indicator, Adaptive Algorithm, Signal Generation, Trading Automation, Technical Analysis
Category: Trend Following, Oscillators, Signal Generators
Hide Out“Hide Out is a leading quant trading indicator that identifies the trending direction, calculates the base and target prices, and plots the Day Opening Range with labels for structured intraday analysis.
GME Cycle Predictor# 🚀 GME Cycle Predictor - Advanced Technical Analysis Tool
**Comprehensive GameStop (GME) cycle tracking indicator based on historical patterns and market mechanics.**
## 📊 **What This Indicator Does:**
- Tracks **147-day quarterly cycles** from the January 28, 2021 squeeze
- Monitors the **1704-day major cycle** (the theoretical "big one")
- Identifies **T+35 FTD settlement periods** for forced buying pressure
- Marks **quarterly OPEX** and **swap roll dates**
- Provides **real-time buy/sell recommendations** based on cycle timing
## 🎯 **Key Features:**
### **Visual Cycle Markers:**
- 🔴 **Red Circles**: 147-day quarterly cycles
- 🟡 **Yellow Diamonds**: 1704-day major cycle (CRITICAL)
- 🟢 **Green Squares**: T+35 FTD settlement dates
- 🟠 **Orange Triangles**: Quarterly OPEX periods
- 🟣 **Purple X's**: Swap roll periods
### **Smart Trading Signals:**
- **🚀 MAJOR BUY**: 10+ days before 1704-day cycle
- **📈 BUY ZONE**: 5-10 days before 147-day cycle
- **💚 FTD BUY**: 2-5 days before T+35 settlement
- **📉 SELL ZONE**: Day of cycle completion
- **⏳ WAIT**: No active signals
## 📈 **How to Use:**
### **For Swing Trading:**
1. **BUY** when cheat sheet shows active buy signals
2. **SELL** on cycle completion days
3. **HODL** through the 1704-day major cycle
### **For Long-term Investors:**
- Monitor the **1704-day countdown** (major cycle theory)
- Accumulate during **confluence periods** (multiple cycles aligning)
- Use **147-day cycles** for entry/exit timing
## 🔧 **Technical Foundation:**
- Based on **Fail-to-Deliver (FTD)** settlement mechanics
- **Quarterly swap theory** and institutional obligations
- **Options expiration (OPEX)** pressure points
- **Historical pattern recognition** from 2021 squeeze
## ⚡ **Real-Time Features:**
- **Live countdown timers** to next major cycles
- **Dynamic trading recommendations**
- **Confluence detection** when multiple cycles align
- **Volume confirmation** for signal validation
- **Clean visual design** with minimal chart clutter
## 🎯 **Perfect For:**
- GME traders following cycle theory
- Technical analysts studying market mechanics
- Swing traders using institutional obligation cycles
- Anyone tracking the theoretical "MOASS" timing
## ⚠️ **Important Notes:**
- This indicator is based on **theoretical cycle patterns**
- Past performance does not guarantee future results
- Always use proper risk management
- The 1704-day cycle is **unproven theory** - trade responsibly
- Best used in conjunction with other technical analysis
## 🚀 **Special Feature:**
The **1704-day major cycle** countdown tracks the theoretical "Mother of All Short Squeezes" (MOASS) timing, calculated from the January 28, 2021 squeeze peak. This is the cycle many GME theorists believe will trigger the ultimate price movement.
---
**Perfect for both beginners and advanced traders who want to incorporate GME cycle theory into their technical analysis toolkit.**
*Disclaimer: This is a theoretical analysis tool based on community research. Not financial advice. Trade at your own risk.*
AtlasTrend - Flat Squueze SignalsSummary
AtlasTrend — Clean Entries + Flat Signals is a compact, multi-filter indicator that detects (1) potential horizontal / “flat” market regimes and (2) discrete Long / Short entry signals outside those flat regimes. It is designed to be visually minimal (only rising-edge signals and a small fixed table) and to avoid repeated signals on consecutive bars. The indicator intentionally exposes only a few critical tuning parameters to the user to reduce overfitting and configuration mistakes.
Key outputs
Table (top-right) — shows current pair, current state (FLAT or TREND), current rising-edge signal (LONG, SHORT, or NONE), and the flatScore (0–1).
Long Signal — green upward triangle plotted only once on the bar where conditions switch from false→true (rising-edge).
Short Signal — red downward triangle plotted only on rising-edge.
Potential Flat Start — small orange dot above bar on rising-edge of a detected flat-start condition.
Potential Flat End — small blue dot above bar on rising-edge of a detected flat-end condition.
Background shading — light shading while indicator is in a detected inFlat state (optional and subtle).
What it measures (methodology, high level)
The indicator builds a single composite score called flatScore (0–1) that expresses how “flat / squeezed / indecisive” the market is at the moment. flatScore is an average of several independent components:
TRIX stability — an ultra-smoothed momentum change (user’s original TRIX-based logic). Low TRIX change increases flatScore.
Volatility / ATR ratio — normalized ATR(close) — low volatility increases flatScore.
Momentum neutrality — RSI and CCI being near neutral ranges increases flatScore.
Trend weakness — price close’s dispersion from a short SMA; small dispersion means weak trend → higher flatScore.
Kernel tightness — rolling standard deviation based tightness metric — small rolling stdev → higher flatScore.
These components are combined using fixed internal weights (deliberately not exposed) into flatScore.
Flat detection (potential flat start) requires flatScore >= flatThreshold for consecBarsToStart consecutive bars (rising-edge triggers). Flat ends when flatScore drops below ~90% of the threshold.
Entry signals (Long / Short) are generated only if:
Market is not in inFlat state, and
A compact trend/momentum filter passes (fast EMA vs slow EMA, price vs EMA, RSI threshold, and a minimum volatility filter), and
The condition appears as a rising edge (so a signal is emitted only once per entry occurrence).
This design intentionally avoids repeated signals on nearly every bar and reduces repaint risk by using rising-edge logic.
Inputs exposed to user
flatThreshold (float) — the composite score threshold above which the indicator considers the market “flat.” Default sensible value supplied.
Lower → more flats detected (sensitive).
Higher → fewer flats (conservative).
consecBarsToStart (int) — how many consecutive bars must meet threshold to produce a potential flat start. Increasing reduces false positives.
tradeAggressiveness (float) — scales the internal EMA lengths used for entry logic (0.5 conservative → 1.5 aggressive). Higher values produce shorter EMAs and more frequent signals.
All other internal weights and thresholds are fixed to keep the UX simple and reduce overfitting.
How to use (practical steps)
Recommended timeframe: daily (1D) for BTC; works on other timeframes but behavior changes. For intraday testing, treat thresholds/expectations accordingly.
Load indicator on the chart (BTCUSDT, 1D recommended) and leave defaults initially.
Observe the top-right table:
State = FLAT → avoid placing breakout entries; treat as consolidation.
Signal = LONG/SHORT → new entry opportunity (rising-edge).
flatScore gives a continuous measure of flatness.
Confirm signals with your own rules (volume, orderflow, structural support/resistance) — indicator is a decision tool, not an automatic executor.
Stop / risk management: use ATR-based stops (e.g., 1.5–3× ATR), position-sizing rules and max-drawdown limits. Never rely on a single indicator.
Backtest visually / manually: scroll historical data, inspect long/short signals and flat start/ends; mark false positives and tune tradeAggressiveness modestly if needed.
Example parameter guidance
Conservative (fewer trades, fewer false signals):
flatThreshold = 0.78, consecBarsToStart = 4, tradeAggressiveness = 0.8
Default / Balanced:
flatThreshold = 0.72, consecBarsToStart = 3, tradeAggressiveness = 1.0
Aggressive (more signals):
flatThreshold = 0.65, consecBarsToStart = 2, tradeAggressiveness = 1.3
Always retest after changing.
Alerts & automation
The indicator exposes alerts for Long, Short, Potential Flat Start, and Potential Flat End (rising-edge only).
When creating alerts in TradingView, choose “Once Per Bar Close” if you want confirmation by bar close, or “Once Per Bar” for earlier notification (bar close reduces repaint risk).
Use the alert message templates provided by the script for easy automation.
Repainting and signal stability
Signals are emitted only on rising-edges (condition from false → true) so a given entry is plotted once.
For automation, prefer bar-close confirmation (alert “Once Per Bar Close”) to avoid acting on conditions that might reverse intra-bar.
The flatScore itself is calculated with closed-bar indicators (EMA, ATR, RSI, etc.) and rolling stats — stable and deterministic.
The indicator intentionally keeps internal weights fixed to simplify reproducibility and avoid parameter bloat.
Limitations & honest warnings
No indicator can predict market moves with 100% accuracy. This tool reduces noise and false entries but does not guarantee profits.
Market regimes change — periodic retuning or revalidation on fresh data is necessary.
Do not use this indicator as the sole basis for high-frequency automated trading without robust money management and slippage modeling.
Suggested workflow for BTC 3-year analysis
Add indicator to BTCUSDT daily chart
Run through historical data and log:
Total Long signals, Total Short signals
Average run length after entry (bars)
False signal examples (manually tag 5–10)
Adjust tradeAggressiveness to reduce false signals if necessary (reduce to be more conservative).
If flat detections are too frequent, increase flatThreshold or consecBarsToStart.
Diamond-Triangle Strategy - Dynamic Trailing v3added more options of edits and lower high higher low exit logic, with .09 ema cloud rather then .1 sep for chop
EMA Regime (9/20/50/100/200) — Stacked with 200 FilterEMA Regime (9/20/50/100/200) — Stacked Long/Short Box
Plots the 9, 20, 50, 100, and 200 EMAs on the chart.
Checks if price is above or below each EMA and whether the EMAs are stacked in order.
LONG signal: price above all selected EMAs and EMAs stacked 9 > 20 > 50 > 100 >(> 200 if strict mode on).
SHORT signal: price below all selected EMAs and EMAs stacked 9 < 20 < 50 < 100 (< 200 if strict mode on).
Shows a two-row table (LONGS / SHORTS) so you can quickly see which EMAs are aligned.
Optionally colors candles green/red when a full long/short regime is active.
Can show labels when a new LONG or SHORT condition appears.
Has alerts you can use for automated notifications when the regime flips.
“Use 200 EMA in the stack” lets you choose ultra-strict mode (9>20>50>100>200) or lighter mode (9>20>50>100 but price & 9 above 200).
EMA Separation (LFZ Scalps) v6 — Early TriggerPlots the percentage distance between a fast and a slow EMA (default 9 & 21) to gauge trend strength and filter out choppy London Flow Zone breakouts.
• Gray – EMAs nearly flat (low momentum, avoid trades)
• Orange – early trend building
• Green/Red – strong directional momentum
Useful for day-traders: wait for the gap to widen beyond your chosen threshold (e.g., 0.25 %) before entering a breakout. Adjustable EMA lengths and alert when the separation exceeds your “strong trend” level.
Area of Interest (AOI)A simple Area of Interest detector that find strong areas of price that you can then take trades based on. Enjoy!
MYM Edge Booster MYM Long Trading Assistant - ATR-Based Edge Booster
Clean, simple indicator that tells you when MYM long setups meet high-probability criteria. No complicated charts - just clear numbers and signals.
• ATR Targets & Stops (whole numbers)
• Quality Score (0-3 stars)
• Green Circle when conditions perfect
• Warnings for choppy/high volatility
• ES/NQ sector confirmation
Eliminates guesswork. Trade when the green circle appears.
Inversion Fair Value Gap Signals [AlgoAlpha]🟠 OVERVIEW
This script is a custom signal tool called Inversion Fair Value Gap Signals (IFVG) , designed to detect, track, and visualize fair value gaps (FVGs) and their inversions directly on price charts. It identifies bullish and bearish imbalances, monitors when these zones are mitigated or rejected, and extends them until resolution or expiration. What makes this script original is the inclusion of inversion logic—when a gap is filled, the area flips into an opposite "inversion fair value gap," creating potential reversal or continuation zones that give traders additional context beyond classic FVG analysis.
🟠 CONCEPTS
The script builds on the Smart Money Concepts (SMC) principle of fair value gaps, where inefficiencies form when price moves too quickly in one direction. Detection requires a three-bar sequence: a strong up or down move that leaves untraded price between bar highs and lows. To refine reliability, the script adds an ATR-based size filter and prevents overlap between zones. Once created, gaps are tracked in arrays until mitigation (price closing back into the gap), expiration, or transformation into an inversion zone. Inversions act as polarity flips, where bullish gaps become bearish resistance and bearish gaps become bullish support. Lower-timeframe volume data is also displayed inside zones to highlight whether buying or selling pressure dominated during gap creation.
🟠 FEATURES
Automatic detection of bullish and bearish FVGs with ATR-based thresholding.
Inversion logic: mitigated gaps flip into opposite-colored IFVG zones.
Volume text overlay inside each zone showing up vs down volume.
Visual markers (△/▽ for FVG, ▲/▼ for IFVG) when price exits a zone without mitigation.
🟠 USAGE
Apply the indicator to any chart and enable/disable bullish or bearish FVG detection depending on your focus. Use the colored gap zones as areas of interest: bullish gaps suggest possible continuation to the upside until mitigated, while bearish gaps suggest continuation down. When a gap flips into an inversion zone, treat it as potential support/resistance—bullish IFVGs below price may act as demand, while bearish IFVGs above price may act as supply. Watch the embedded up/down volume data to gauge the strength of participants during gap formation. Use the △/▽ and ▲/▼ markers to spot when price rejects gaps or inversions without filling them, which can indicate strong trending momentum. For practical use, combine alerts with your trade plan to track when new gaps form, when old ones are resolved, or when key zones flip into inversions, helping you align entries, targets, or reversals with institutional order flow logic.
SPX trend breakdownThis indicator is not granted for buying and selling confirmation, it is only for analysis. Entering or existing buy or sell is your decision and under your responsibility.
Please note that currently this indicator works only on ( spx s&p 500 index cfd sp )
explanation:
1- The purple line (candle high) is estimating the trend movement for short term.
2- The blue line (candle average) is moving average based on the candle highest close.
3- The black line (variable) is the actual movement of the trend.
- If black line above blue line with green background color, the candle is green and moving up.
- If black line above blue line with red background color, the candle is red but still above blue line.
- If the black line below blue line with red background color, the candle is red and moving down.
- If the black line below the blue line with green background color, the candle is green but still below blue line.
4- The green arrow up symbol above candle indicates that the top of current candle is higher than previous candle.
5- The green arrow up symbol below candle indicates that the bottom of current candle is higher than previous candle.
6- The red arrow down symbol above candle indicates that the top of current candle is lower than previous candle.
7- The red arrow down symbol below candle indicates that the bottom of current candle is lower than previous candle.
AKB - Aggressive ParticipationAggressive Participation - This indicator is made to allow traders identify which side (Bulls or Bears) is controlling the market at a specific time.
Oversold & Overbought Signal with RSISimple RSI overbought/oversold signals. Signals overbought when RSI > 80 and oversold when RSI < 30.
ORB 15m + MAs (v4.1)Session ORB Live Pro — Pre-Market Boxes & MA Suite (v4.1)
What it is
A precision Opening Range Breakout (ORB) tool that anchors every session to one specific 15-minute candle—then projects that same high/low onto lower timeframes so your 1m/5m levels always match the source 15m bar. Perfect for scalpers who want session structure without drift.
What it draws
Asia, Pre-London, London, Pre-New York, New York session boxes.
On 15m: only the high/low of the first 15-minute bar of each window (optionally persists for extra bars).
On 5m: mirrors the same 15m range, visible up to 10 bars.
On 1m: mirrors the same 15m range, visible up to 15 bars.
Levels update live while the 15m candle is forming, then lock.
Fully editable windows (easy UX)
Change session times with TradingView’s native input.session fields using the familiar format HHMM-HHMM:1234567. You can tweak each window independently:
Asia
Pre-London
London
Pre-New York
New York
Multi-TF logic (no guesswork)
Designed to show only on 1m, 5m, 15m (by default).
15m = ground truth. Lower timeframes never “recalculate a different range”—they mirror the 15m bar for that session, exactly.
Alerts
Optional breakout alerts when price closes above/below the session range.
Clean visuals
Per-session color controls (box + lines). Boxes extend only for the configured number of bars per timeframe, keeping charts uncluttered.
Built-in MA suite
SMA 50 and RMA 200.
Three extra MAs (SMA/EMA/RMA/WMA/HMA) with selectable color, width, and style (line, stepline, circles).
Why traders like it
Consistency: Lower-TF ranges always match the 15m source bar.
Speed: You see structure immediately—no waiting for N bars.
Control: Edit session times directly; tune how long boxes stay on chart per TF.
Clarity: Minimal, purposeful plotting with alerts when it matters.
Quick start
Set your session times via the five input.session fields.
Choose how long boxes persist on 1m/5m/15m.
Enable alerts if you want instant breakout notifications.
(Optional) Configure the MA suite for trend/bias context.
Best for
Intraday traders and scalpers who rely on repeatable session behavior and demand exact cross-TF alignment of ORB levels.
KD The ScalperWe have to take the trade when all three EMAs are pointing in the same direction (no criss-cross, no up/down, sideways). All 3 EMAs should be cleanly separated from each other with strong spacing between them; they are not tangled, sideways, or messy. This is our first filter before entering the trade. Are the EMAs stacked neatly, and is the price outside of the 25 EMA? If price pulls back and closes near or below the 25 or 50 EMA and breaks the 100 EMA, we don't trade. Use the 100 EMA as a safety net and refrain from trading if the price touches or falls below the 100 EMA.
1. Confirm the trend- All 3 EMAs must align, and they must spread
2. Watch price pull back to the 25th or the 50 EMA
3. Wait for the price to bounce - And re-approach the 25 EMA
Why is this powerful?
Removes 80% of the low-probability Trades
It keeps you out of choppy markets
Avoids Reversal Traps
Anchors us to momentum
We take the entry when the price moves up again and touches the 25 EMA from below, and then when it breaks above the 25 EMA, or even better, when a lovely green bullish candle forms. A bullish candle indicates good momentum. When a bullish candle closes in green, it means the momentum has increased significantly. This is when we enter a long trade, with the stop-loss just below the 50 EMA and the profit target being 1.5 times the stop-loss.
The same rule applies to the bearish trade.
Session ORB 15m Synced + Pre-Sessions + MAs (final v3)Session ORB Live Pro — Pre-Market Boxes & MA Suite
Description (EN):
Session ORB Live Pro is a Pine v6 indicator built for intraday traders who rely on Opening Range Breakouts. It draws session boxes for London, New York, and Asia—plus configurable Pre-London and Pre-New York windows—live from the very first candle (no waiting for 10 bars). The high/low levels update in real time, and optional breakout alerts fire the moment price closes beyond the range. To keep charts clean and relevant for scalping, the boxes auto-hide on chart timeframes above 20 minutes.
Beyond ranges, the tool adds a compact moving-average suite: SMA-50 and RMA-200 out of the box, plus three fully customizable MAs (SMA/EMA/RMA/WMA/HMA) with selectable color, thickness, and style (line, stepline, circles). Each session and pre-session can be toggled on/off and tinted with its own color, so you can tailor the visual map of liquidity grabs and range breaks to your strategy.
Key features
Live ORB boxes for London, New York, Asia (no 10-bar delay).
Pre-sessions: Pre-London & Pre-New York with independent time windows and colors.
Auto visibility filter: boxes show only on ≤ 20m chart TF; hidden on higher TFs.
Breakout alerts when price closes above/below the session range (ready for alert() rules).
MA toolkit: SMA-50, RMA-200 + 3 user MAs (SMA/EMA/RMA/WMA/HMA) with color, style, and width.
Clean inputs using input.session; robust, low-friction UX.
How to use
Set your ORB calculation timeframe (e.g., 15m) and choose which sessions/pre-sessions to display.
Pick colors for each box and enable alerts if you want instant breakout notifications.
Configure the MA suite for trend bias and dynamic S/R (e.g., SMA-50 for momentum, RMA-200 for bias).
Trade the first clean break or the retest of the ORB extremes—your choice. The visual map updates tick by tick.
Synthesis DeFi - Fractals - Daily - v7.0This is a free trial version of SynthesisDeFi.com fractals.
A simplified fractal analysis indicator that identifies key market structure points on daily timeframes. This tool automatically detects trend reversals and plots fractal highs and lows with connecting lines, helping traders visualize major support and resistance levels
Why use Synthesis DeFi fractals?
Harmonic Patterns
Wycoff
Elliot Waves
Dow Theory
Created by Oliver Fujimori | SynthesisDeFi.com
Perfect for swing traders and position traders focused on daily market structure analysis
AMHA + 4 EMAs + EMA50/200 Counter + Avg10CrossesDescription:
This script combines two types of Heikin-Ashi visualization with multiple Exponential Moving Averages (EMAs) and a counting function for EMA50/200 crossovers. The goal is to make trends more visible, measure recurring market cycles, and provide statistical context without generating trading signals.
Logic in Detail:
Adaptive Median Heikin-Ashi (AMHA):
Instead of the classic Heikin-Ashi calculation, this method uses the median of Open, High, Low, and Close. The result smooths out price movements, emphasizes trend direction, and reduces market noise.
Standard Heikin-Ashi Overlay:
Classic HA candles are also drawn in the background for comparison and transparency. Both HA types can be shifted below the chart’s price action using a customizable Offset (Ticks) parameter.
EMA Structure:
Five exponential moving averages (21, 50, 100, 200, 500) are included to highlight different trend horizons. EMA50 and EMA200 are emphasized, as their crossovers are widely monitored as potential trend signals. EMA21 and EMA100 serve as additional structure layers, while EMA500 represents the long-term trend.
EMA50/200 Counter:
The script counts how many bars have passed since the last EMA50/200 crossover. This makes it easy to see the age of the current trend phase. A colored label above the chart displays the current counter.
Average of the Last 10 Crossovers (Avg10Crosses):
The script stores the last 10 completed count phases and calculates their average length. This provides historical context and allows traders to compare the current cycle against typical past behavior.
Benefits for Analysis:
Clearer trend visualization through adaptive Heikin-Ashi calculation.
Multi-EMA setup for quick structural assessment.
Objective measurement of trend phase duration.
Statistical insight from the average cycle length of past EMA50/200 crosses.
Flexible visualization through adjustable offset positioning below the price chart.
Usage:
Add the indicator to your chart.
For a clean look, you may switch your chart type to “Line” or hide standard candlesticks.
Interpret visual signals:
White candles = bullish phases
Orange candles = bearish phases
EMAs = structural trend filters (e.g., EMA200 as a long-term boundary)
The counter label shows the current number of bars since the last cross, while Avg10 represents the historical mean.
Special Feature:
This script is not a trading system. It does not provide buy/sell recommendations. Instead, it serves as a visual and statistical tool for market structure analysis. The unique combination of Adaptive Median Heikin-Ashi, multi-EMA framework, and EMA50/200 crossover statistics makes it especially useful for trend-followers and swing traders who want to add cycle-length analysis to their toolkit.
Moon Phases Prediction🌙 Moon Phases (with Next Event Projection)
Introduction
This indicator plots Moon Phases (New Moon and Full Moon) directly on your chart.
In addition to showing historical phases, it also calculates and projects the upcoming next moon phase using precise astronomical formulas.
Features
Marks New Moons with circles above bars.
Marks Full Moons with circles below bars.
Dynamically adjusts background color based on waxing/waning phase.
Calculates and displays the next upcoming moon event as a label positioned in the future.
Works on all timeframes (except Monthly).
How It Works
Uses astronomical approximations (Julian Day → UNIX time conversion).
Detects the last occurred New Moon or Full Moon.
Projects the next moon event by adding half a synodic month (~14.77 days).
Displays the next event label at its exact future date on the chart.
Customization
Waxing Moon color (default: Blue)
Waning Moon color (default: White)
Use Cases
Astro-finance: lunar cycles and market psychology.
Trading strategies: aligning entries/exits with cyclical behavior.
Visualization: adding an extra dimension of timing to chart analysis.
Notes
- The future moon event is displayed as a circle label on the correct date.
- If you cannot see the label, increase your chart’s right margin (Chart Settings → Scales → Right Margin).
- Calculations are approximate but astronomically accurate enough for trading or visual use.
Conclusion
This indicator is a simple yet powerful tool for traders interested in the influence of lunar cycles.
By combining historical phases with a projected next event, you can always be aware of where the market stands in the moon cycle timeline.