Auto TP & SL Manager | GainzAlgo📊 OVERVIEW:
================
Auto TP & SL Manager is a professional-grade, data-driven market classification and regime detection system engineered to identify high-probability directional opportunities through machine learning, statistical validation, and adaptive risk management.
This indicator applies advanced pattern recognition techniques to classify market regimes by analyzing historical price behavior, multi-feature technical data, and volatility-adjusted distance metrics. Rather than relying on static rules or fixed thresholds, Auto TP & SL Manager continuously adapts to evolving market conditions using a machine-learning-based framework.
Unlike traditional indicators that react to price, this system contextualizes price, combining classification confidence, kernel regression trend validation, and automated ATR-based trade management into a unified execution framework.
⭐ WHY THIS SYSTEM IS UNIQUE AND WORTHY OF PUBLICATION:
=====================================================
This is not a fixed-parameter indicator or a simple ML experiment.
Auto TP & SL Manager represents a structured, production-ready machine learning methodology where:
- Market regimes are classified using similarity-based pattern recognition
- Predictions are statistically filtered using kernel regression
- Risk management adapts automatically to volatility
- Signals remain non-repainting and fully backtestable
- Performance metrics are transparently tracked in real time
Every component is designed to reinforce the others, forming a coherent decision-making system rather than isolated tools stacked together.
🔗 SYNERGISTIC SYSTEM ARCHITECTURE:
=================================
🧠 1. MACHINE LEARNING REGIME CLASSIFICATION ENGINE
At the core of Auto TP & SL Manager is a K-Nearest Neighbors (KNN) classification model using an advanced distance metric optimized for financial time series:
Distance = Σ log(1 + |current_feature − historical_feature|)
This formulation is intentionally chosen to:
- Reduce sensitivity to outliers
- Capture non-linear relationships
- Maintain robustness across changing volatility regimes
How the engine operates:
1. Computes up to 5 engineered technical features per bar
2. Scans up to 2000 historical bars
3. Identifies the K most similar historical patterns
4. Aggregates their outcomes to classify the current market regime
5. Generates directional signals only when confidence thresholds are met
This allows the system to recognize what the market looks like, not just where price is.
📐 2. MULTI-FEATURE ENGINEERING FRAMEWORK
The classification engine operates on a configurable feature set derived from:
- RSI
- WaveTrend (WT)
- CCI
- ADX
Each feature includes:
- Primary calculation period
- Secondary smoothing or modifier parameter
This flexibility allows traders to balance signal stability vs responsiveness, while maintaining a consistent ML backbone.
📊 3. KERNEL REGRESSION TREND VALIDATION
To prevent overfitting and reduce false positives, all ML predictions are validated through a dual-kernel regression framework:
- Rational Quadratic Kernel → Primary statistical trend direction
- Gaussian Kernel → Smoothed confirmation and noise reduction
Signals are only permitted when:
- ML classification aligns with kernel trend direction
- Optional Gaussian crossover confirmation is satisfied
This creates independent statistical verification, a critical safeguard in ML-based trading systems.
🛡️ 4. AUTOMATED ATR-BASED RISK MANAGEMENT
Auto TP & SL Manager integrates fully automated trade management:
- ATR-based Take Profit
- ATR-based Stop Loss
- Volatility-adjusted distances
- Optional dynamic exits via kernel reversal
This ensures:
- Risk adapts to market conditions
- No manual calculations are required
- Trades follow professional, volatility-aware risk principles
🧮 CORE SYSTEM LOGIC:
====================
📏 DISTANCE-BASED SIMILARITY MEASURE
- Log-scaled feature distance aggregation
- Robust to extreme values
- Optimized for non-linear financial data
📊 KERNEL REGRESSION
- Lookback-controlled statistical smoothing
- Relative weighting prioritizes recent price action
- Optional lag-based enhancement for stability
📦 CLASSIFICATION CONFIDENCE
- Prediction values range from -8 to +8
- Strength directly visualized via bar coloring and labels
🛡️ MULTI-LAYER FILTERING SYSTEM:
================================
Up to six independent filters can be enabled to refine signal quality:
1. Volatility Filter – avoids low-volatility consolidation
2. Regime Filter – enforces directional persistence
3. ADX Filter – requires minimum trend strength
4. EMA Filter – price alignment with long-term trend
5. SMA Filter – additional trend confirmation
6. Kernel Alignment – statistical trend validation
Each filter operates independently, allowing precise control over signal frequency and accuracy.
🎨 VISUAL & PERFORMANCE FRAMEWORK:
================================
📊 VISUAL SIGNAL SYSTEM
- Clean BUY / SELL markers
- Automatic TP & SL levels
- Non-repainting, bar-close confirmation
🎨 BAR COLORING
- Gradient-based on ML confidence
- Green → bullish classification
- Red → bearish classification
📈 PERFORMANCE TRANSPARENCY
- Real-time backtest statistics
- Win rate, trade count, and early flip metrics
- Optional conservative “worst-case” estimation
⚙️ CORE FEATURES:
================
1. Machine Learning Regime Classification
2. Advanced Distance Metrics (Non-Linear)
3. Multi-Feature Pattern Recognition
4. Dual Kernel Regression Confirmation
5. Automated ATR-Based TP & SL
6. Six-Layer Signal Filtering
7. Non-Repainting Signal Logic
8. Real-Time Performance Statistics
9. Flexible Feature Engineering
10. Broad Instrument & Timeframe Compatibility
📘 WHO AUTO TP & SL MANAGER IS FOR:
=================================
- Scalpers → Fast regime classification with minimal filtering
- Day Traders → Balanced ML + kernel confirmation
- Swing Traders → Higher stability via increased neighbors and filters
- System Traders → Transparent logic and backtestable behavior
⚠️ IMPORTANT DISCLAIMER:
========================
This indicator is provided for educational and informational purposes only and does not constitute financial advice.
Trading involves substantial risk, and losses are an inherent part of trading.
Machine learning models are based on historical pattern analysis and cannot predict unprecedented events, news releases, or structural market changes.
Past performance, whether live or backtested, does not guarantee future results.
All trading decisions, risk management, and outcomes remain the sole responsibility of the user.
Always apply proper position sizing, use stop losses, and never trade capital you cannot afford to lose.
Indicateurs et stratégies
Mean Deviation Loop | Lyro RSThe MAD Bollinger Bands + Loops is a sophisticated technical analysis tool designed to identify and quantify market trends by combining dynamic moving averages with robust statistical dispersion measures. This indicator employs a multi-model approach, integrating Bollinger-style MAD bands, for-loop momentum scoring, and a hybrid signal system to provide traders with adaptive insights across varying market conditions.
Indicator Modes
Bollinger-Style MAD Bands
This mode calculates dynamic volatility bands around price using Mean Absolute Deviation (MAD) instead of standard deviation or RMSE. MAD offers a smoother and more outlier-resistant measure of price dispersion.
Upper Band = Dynamic Moving Average + (MAD × Multiplier)
Lower Band = Dynamic Moving Average − (MAD × Multiplier)
These bands expand and contract with market volatility, helping to identify potential breakout and breakdown zones with reduced sensitivity to extreme price spikes.
For-Loop Momentum Scoring
Momentum is evaluated by analyzing recent price behavior through a loop-based comparison system applied to a MAD-weighted price series.
A rising momentum score indicates strengthening bullish pressure
A declining momentum score signals increasing bearish dominance
This method emphasizes directional consistency rather than short-term noise.
Hybrid Combined Signal
This mode combines the outputs of the MAD Bands and For-Loop Momentum Scoring into a unified directional signal.
+1 indicates bullish conditions (green)
−1 indicates bearish conditions (red)
An average of these scores is calculated to generate a combined signal, providing a clearer and more reliable indication of overall market trend.
Practical Application
Signal Interpretation
A buy signal is generated when both the MAD Bands and For-Loop Momentum align bullishly.
A sell signal is generated when both components align bearishly.
Trend Confirmation
The Hybrid Combined Signal serves as a confirmation layer, helping traders validate trend direction and reduce the likelihood of false signals during choppy or low-volatility conditions.
⚠️ Disclaimer
This indicator is a technical analysis tool and does not guarantee results. It should be used in conjunction with additional analysis methods and proper risk management strategies. The creators of this indicator are not responsible for any financial decisions made based on its signals.
Open Interest [OI] & Liquidation Flow█ THE DUAL-ENGINE ARCHITECTURE: A FUSION OF TWO CRITICAL FORCES
The power of this suite comes from its dual-engine design. It isolates and analyzes the two opposing forces that truly drive modern markets: the informed positioning of institutions and the often-misguided sentiment of the retail crowd. A high-probability trade signal is only generated at the precise moment these two forces come into critical conflict.
ENGINE 1: The Open Interest (OI) & Position Flow Engine
This is your lens into the institutional world. Its primary function is to track the flow of money into and out of the market, revealing the true intent of large players.
Live OI Integration: In a groundbreaking feature for TradingView, this engine includes a Smart Symbol Detector that automatically seeks and integrates LIVE Open Interest data for supported markets (CME, Binance, Bybit, etc.). When available, you are seeing a direct feed of net new positions entering the market.
12-Factor Synthetic OI Model: When live OI data is not available, the engine synthesizes a high-fidelity proxy by analyzing 12 distinct factors, including Cumulative Volume Delta (CVD), Absorption, Effort vs. Result, and Institutional Bias.
Curvature Analysis: We don't just look at the flow; we analyze its Velocity and
Acceleration . A sharp acceleration in bullish OI Flow is a powerful sign that institutions are aggressively building long positions.
INTERPRETATION: This engine tells you what the "smart money" is doing. A divergence—where price is falling but OI Flow is rising—is a classic sign that institutions are quietly absorbing retail panic, often preceding a violent reversal upwards.
ENGINE 2: The Liquidation Flow & Crowd Engine
This engine operates on a powerful contrarian philosophy: the market is designed to inflict maximum pain on the largest number of participants. It identifies when the retail "herd" is over-leveraged and positioned for a fall.
Crowd Positioning Model: It analyzes factors like extreme RSI levels, deviation from Fair Value (VWAP), and "chase behavior" (e.g., many consecutive bullish candles) to determine when the retail crowd is dangerously over-exposed.
Risk Analysis: It synthesizes multiple risk factors—crowding, momentum divergence, exhaustion—into a single, easy-to-read Liquidation Risk percentage .
Fear & Greed Skew: It measures the volatility skew in the options market to provide a direct gauge of market-wide fear and greed, adding a final layer of sentimental context.
HOW TO USE IT: This is your liquidation radar. When Liquidation Risk is HIGH and the Crowd is positioned heavily LONG, the market is primed for a long squeeze (a liquidation cascade downwards). Conversely, when the Crowd is heavily SHORT, a short squeeze is highly probable.
█ THE SECRET SAUCE: UNIVERSAL ADAPTABILITY
The genius of this engine lies in its ability to work on any asset, in any timeframe, without manual recalibration. This is achieved through Z-Score Normalization . Every piece of data is converted from a raw value into a statistical score representing its deviation from the "norm." A +2.0 sigma event represents an extreme outlier, whether it's on a 1-minute chart of a crypto asset or a daily chart of a stock. This makes the signals universally comparable and allows the engine to automatically adapt to the unique volatility and character of any market.
█ THE ARSENAL: MASTERING THE VISUALS & ON-CHART TOOLS
Every visual element is a data-rich component designed for rapid, intuitive interpretation.
The Lower Pane Visualizer
This is your primary intelligence dashboard, with four distinct modes to view the underlying market forces:
Classic Flow (Default): A multi-column view perfect for spotting divergences between price and the underlying flow of money and sentiment.
Heatmap Matrix: A color-density grid designed to identify "cluster" events where multiple engines light up simultaneously, signaling institutional consensus.
Oscillator Pro: A zero-centered line visualization for traders who prefer crossover and momentum-style analysis.
Delta Waterfall: A unique cascading visualization that shows the cumulative "weight" of the market, stacking the pressure from each engine to reveal the dominant force.
Main Chart Overlays
BUY/SELL Signals: These are the primary, high-conviction reversal signals. They are not simple crossovers; they are the result of a rigorous confirmation process where institutional OI Flow directly conflicts with a vulnerable retail Liquidation Flow.
Minor Triangles (▲▼): Secondary momentum signals that are excellent for scalping, confirming a trend, or adding to a winning position.
Supply/Demand Zones: When a strong, institutionally-backed signal fires, the script automatically plots a defended zone (Red for Supply, Green for Demand), highlighting future high-probability reversal areas.
Key Levels: Automatically extends lines from significant highs and lows where a major flow reversal occurred, highlighting critical support and resistance.
High Risk Diamonds (💎): A critical risk management tool. These markers appear when conditions are ripe for a liquidation cascade. This is an explicit warning to take profits or stand aside.
The Dashboard (HUD)
Your at-a-glance command center, displaying real-time, mission-critical data:
Z-Scores for OI Flow Velocity & Acceleration: See the raw, normalized momentum of the institutional flow.
Crowd Sentiment Status: Instantly know if the market is dangerously "CROWDED" or balanced.
Liquidation Risk %: A numerical gauge from 0-100% showing the probability of a violent flush.
Live Data Status: Confirms whether the engine is using LIVE OI data or the PRO synthetic model.
Optimizer Readout: When enabled, shows the backtest results of your current settings.
█ THE COMMAND CENTER: MASTERING THE INPUTS
This suite offers deep customization for the professional trader.
Analysis Length: The "memory" of the flow engine. Use shorter lengths (10-14) for scalping and longer lengths (21+) for swing trading.
Signal Sensitivity: A master control to switch between Conservative (fewer, higher-quality signals), Normal (balanced), and Aggressive (more frequent signals for scalping) modes.
Display Toggles: Individually enable or disable any of the core components in the lower pane to create your perfect analytical view.
Overlay Controls: Individually toggle all on-chart visuals and control the maximum number of Zones and Key Levels to maintain a clean workspace.
█ THE OPTIMIZER ENGINE: VALIDATE BEFORE YOU TRADE
Confidence comes from data. The built-in Optimizer Engine is a powerful backtester that runs on your chart's visible data. It allows you to rapidly test different ATR-based Take Profit and Stop Loss parameters, providing key metrics like Win Rate, Profit Factor, and a proprietary Stability Rating ( ROBUST, STABLE, FRAGILE, OVERFIT ) to help you find the most statistically sound settings for your specific asset and timeframe before risking capital.
█ DEVELOPMENT PHILOSOPHY
This indicator was born from a single, guiding principle: to win in modern markets, you must stop listening to the noise of price and start analyzing the signal of flow. Price is where amateurs look; flow is where professionals find their edge. This tool is our attempt to level the playing field, translating the opaque world of derivatives and institutional positioning into a clear, intuitive, and actionable intelligence system.
This tool is for the serious student of the market—the trader who seeks to understand the "why" behind the move, not just the "what."
█ DISCLAIMER AND BEST PRACTICES
THIS IS AN ADVANCED ANALYTICAL TOOL: This indicator provides intelligence, not financial advice. It should be used as a core component of a comprehensive trading strategy that includes your own analysis of market structure and risk management.
RISK MANAGEMENT IS PARAMOUNT: All trading involves substantial risk. Never risk more capital than you are prepared to lose. This indicator does not guarantee profits.
SIGNAL HIERARCHY IS KEY: Treat the main BUY/SELL labels as your primary signals. Use the minor triangles to add to positions or for scalping. Use the High Risk diamonds as a signal to reduce exposure and take profits.
MULTI-TIMEFRAME ANALYSIS: For the highest probability setups, use the indicator on a higher timeframe (e.g., 1H) to establish an institutional bias, then take signals on a lower timeframe (e.g., 5m) that align with that bias.
"The game of speculation is the most uniformly fascinating game in the world. But it is not a game for the stupid, the mentally lazy, the person of inferior emotional balance, or the get-rich-quick adventurer. They will die poor."
— Jesse Livermore
Taking you to school. - Dskyz, Trade with Open Interest. Trade with Liquidity. Trade with Open Interest & Liquidation Flow
cephxs + fadi / HTF PSPHTF PSP - PRECISION SWING POINTS
Detect divergence-based Precision Swing Points (PSPs) across multiple higher timeframes with automatic correlated asset detection.
WHAT'S NEW (vs Original HTF Candles)
This indicator builds on @fadizeidan's excellent ICT HTF Candles foundation with significant new functionality, depending on who you ask of course:
✨ PSP Divergence Detection: Automatically identifies Precision Swing Points where price diverges from correlated assets—the original has no divergence analysis
✨ Auto Asset Correlation: Uses AssetCorrelationUtils library to detect and pair correlated assets (ES↔NQ↔DXY, BTC↔ETH, Gold↔Silver, etc.)—no manual setup required
✨ Multi-Asset Comparison: Tracks up to 3 correlated assets simultaneously with divergence relationships between all pairs
✨ Dynamic Asset Reordering: When you switch charts, the indicator automatically reorders assets so your chart is always primary
✨ Inverse Correlation Support: Properly handles inversely correlated assets like DXY (bullish DXY = bearish signal for risk assets)
✨ HTF Sweep Detection: New sweep line feature highlights when HTF candles take out previous highs/lows and close back inside. One of my followers asked me for this, there you go anon.
🔧 Streamlined to 3 HTFs: Focused design with 3 HTF slots (vs 6) for cleaner charts and better performance
The original remains excellent for pure HTF candle visualization. This version adds institutional flow analysis through divergence detection.
WHAT IT DOES
This indicator displays Higher Timeframe (HTF) candles to the right of your chart and highlights Precision Swing Points—pivots where price diverges from correlated assets. When ES makes a new high but NQ doesn't follow, or gold pushes higher while DXY fails to confirm, you're looking at institutional repositioning.
PSPs mark these moments on your HTF candles, giving you a clean visual signal for potential reversals.
HOW IT WORKS
Divergence Detection
The indicator compares price action between your chart and up to two correlated assets. A divergence occurs when one asset makes a directional move (bullish/bearish candle) while a correlated asset moves the opposite direction.
Three divergence relationships are tracked:
Primary vs Secondary (e.g., ES vs NQ)
Primary vs Tertiary (e.g., ES vs DXY)
Secondary vs Tertiary (e.g., NQ vs DXY)
PSP Confirmation
A candle is marked as a PSP when:
A divergence exists between correlated assets
A swing pivot forms (high > previous high AND high > next high, or vice versa for lows)
This dual confirmation filters noise and highlights only meaningful institutional activity.
Automatic Asset Detection
In Auto mode, the indicator uses the AssetCorrelationUtils library to detect your chart's asset class and automatically select the most relevant correlated pairs:
Indices: ES ↔ NQ ↔ DXY, YM ↔ ES ↔ NQ
Forex: EURUSD ↔ DXY ↔ GBPUSD, USDJPY ↔ DXY ↔ US10Y
Crypto: BTC ↔ ETH ↔ DXY
Metals: Gold ↔ Silver ↔ DXY
Energy: CL (Oil) ↔ NG ↔ DXY
HTF Sweep Detection
Sweeps are detected when an HTF candle (C2) takes out the high or low of the previous candle (C1) and then closes back inside. This marks liquidity grabs on the higher timeframe.
HOW TO USE
Enable HTF timeframes: Select 1-3 higher timeframes relevant to your trading style (e.g., 30m, 90m, 4H for intraday traders)
Watch for PSP candles: When a candle body color changes to the divergence color, a PSP has formed
Note the direction: Bullish divergence (your asset bullish while correlated asset bearish) suggests upside; bearish divergence suggests downside
Combine with LTF structure: Use PSPs as bias, then look for entry on lower timeframes (CHoCH, FVG, etc.)
Sweeps confirm liquidity: A sweep followed by a PSP is a strong reversal signal
INPUTS
HTF Selection
HTF 1/2/3: Enable/disable each HTF slot with timeframe and candle count
Custom Daily Open: Use Midnight, 8:30, or 9:30 ET as daily candle open
Styling
Body/Border/Wick Colors: Customize bullish and bearish candle appearance
Padding/Buffer/HTF Buffer: Control spacing between candles and timeframe groups
Labels
HTF Label: Show timeframe name above/below candles
Remaining Time: Countdown to candle close
Label Position: Top, Bottom, or Both
Label Alignment: Align across timeframes or follow individual candles
Interval Value: Show interval details on candles
Imbalance
Fair Value Gap: Highlight FVGs on HTF candles
Volume Imbalance: Highlight VIs on HTF candles
HTF Sweeps: Show sweep lines when C2 takes out C1's high/low
Trace
Trace Lines: Draw lines from HTF candle OHLC levels back to chart price
Anchor: Anchor to first or last timeframe
PSP Divergence Detection
Precise Mode: Only highlight pivots on current asset (stricter confirmation)
Divergence Body Colors: Custom colors for bullish/bearish divergence candles
Asset Selection
Correlation Preset: Auto (library-detected) or Manual
Manual Assets 1/2/3: Specify custom correlated assets
Invert Asset 3: Flip the bullish/bearish interpretation for inverse correlations (e.g., DXY)
KEY FEATURES
Multi-HTF Display: Up to 3 higher timeframes displayed simultaneously
Auto Asset Detection: Automatically finds relevant correlated assets for your chart
Dynamic Reordering: When you switch charts, assets reorder so the chart is always primary
Inverse Correlation Support: Properly handles DXY and other inversely correlated assets
HTF Sweep Detection: Highlights liquidity grabs on higher timeframes
FVG/VI Detection: Fair Value Gaps and Volume Imbalances on HTF candles
Remaining Time Counter: Know exactly when the next HTF candle closes
BEST PRACTICES
Use PSPs as directional bias, not direct entries—wait for LTF confirmation
A PSP at a key level (previous day high, weekly open) carries more weight
Multiple PSPs across different HTFs pointing the same direction = stronger signal
Sweeps that fail to hold (sweep + PSP) often mark significant reversals
In Auto mode, trust the library's asset selection—it's been tuned for common correlations
DISCLAIMER
This indicator is for educational purposes only and does not constitute financial advice. Divergences and PSPs do not guarantee reversals—always use proper risk management and confirm signals with your own analysis. Past performance does not guarantee future results.
CREDITS
Original HTF candle plotting concept by @fadizeidan. PSP divergence detection and asset correlation logic by cephxs & fstarcapital. Uses the AssetCorrelationUtils library by fstarcapital.
Open Sourced For all.
Enjoy.
Made with ❤️ by cephxs + fadi
Asian Liquidity Sweep + NY Reversal [NY Only]Asian Liquidity Sweep + NY Reversal
Concept
Asia builds a tight range → liquidity pool
London / early NY raids that liquidity (stop hunt)
New York delivers the real move in the opposite direction
Sessions utc+3
Asia range: 04:00 – 10:00
Liquidity sweep: London open → pre-NY (≈10:00–14:00)
Execution window: NY Kill Zone 15:00 – 18:00
Step-by-Step Model
Define Asia Range
Mark:
Asia High
Asia Low
Liquidity Sweep (Stop Hunt)
Price must do ONE of the following:
Sweep above Asia High → bullish liquidity taken
Sweep below Asia Low → bearish liquidity taken
NY Reversal Confirmation (Key Part)
Wait for NY Kill Zone and look for:
Strong rejection candle
Displacement / impulsive move back inside range
Optional: small internal structure break on lower TF
Entry Rules (High Probability)
🔻 If Asia High is swept:
Bias: SELL
Entry:
After NY rejection
On pullback to:
Discount zone / FVG
OR Asia High retest
SL: Above sweep high
TP:
Asia Low (TP1)
NY session low / next HTF liquidity (TP2)
If Asia Low is swept:
Bias: BUY
Entry:
NY rejection + displacement
Pullback to imbalance / Asia Low
SL: Below sweep low
TP:
Asia High
Daily high / premium liquidity
arrows/labels-will show when to buy or sell
signal-once per day
Use volume profile (max) for confirmation of entry point
Lets win together
Median TR SuperTrend | RakoQuantMedian TR SuperTrend | RakoQuant
A Robust Trend-Following Regime Indicator for Daily Crypto Markets
The Median TR SuperTrend is a modern trend-following indicator designed to help students and traders clearly identify the dominant market regime on higher timeframes (especially 1D crypto).
This tool is inspired by the classic SuperTrend framework, but enhanced with a more robust volatility engine, making it better suited for the extreme wick behavior and noise typical in cryptocurrency markets.
What This Indicator Does:
The Median TR SuperTrend answers one simple question:
Are we currently in a bullish trend regime or a bearish trend regime?
It is not meant for rapid scalping or frequent signals.
Instead, it is built to provide:
Clear directional context
Trend continuation bias
Regime-based positioning
Noise reduction on higher timeframes
This makes it ideal for students learning disciplined trend-following.
Core Concept: Trend Following, Not Prediction
This indicator does not attempt to predict tops or bottoms.
It follows trends by reacting only when price establishes a true breakout beyond a volatility-adjusted band.
That means:
Strong trends are captured early
Choppy markets are filtered
Signals are based on regime shifts, not candle-to-candle noise
What Makes It “Robust”?
Traditional SuperTrend systems use ATR (Average True Range) to define volatility.
Crypto markets, however, often produce outlier candles (wicks, liquidations, spikes) that distort ATR.
This version replaces ATR with:
Median True Range (MTR)
Median TR is more resistant to extreme one-off candles, providing:
Smoother volatility estimates
More stable trend bands
Less sensitivity to random spikes
This creates a more reliable trend structure in high-volatility environments.
How It Works (Simple Breakdown)
1. Median Baseline
The indicator begins by calculating a rolling median of price, forming a stable central trend reference.
2. Robust Volatility Bands
A volatility envelope is created using Median True Range:
Upper band = baseline + multiplier × MTR
Lower band = baseline − multiplier × MTR
3. SuperTrend Regime Logic
Only one band is active at a time:
Bull regime → trailing lower band
Bear regime → trailing upper band
Trend flips occur only when price breaks beyond the active band.
Visual Interpretation
Neon Aqua Band
Bullish regime
Trend-following long environment
Neon Magenta Band
Bearish regime
Defensive or short environment
Filled Trend Zone
Shows the active trend space clearly without clutter.
This indicator is designed for learning:
Market structure
Regime trading
Patience and higher timeframe discipline
Recommended workflow:
Use Median TR SuperTrend on 1D
Trade only in the direction of the active regime
Combine with a trigger tool if needed (RSI, momentum, breakout)
Ideal Markets
BTC, ETH, SOL
Daily swing trend environments
Portfolio regime filtering (RSPS / LTPI-style frameworks)
Disclaimer
This indicator is a regime and trend-following tool, not a complete trading system.
It should be used as part of a broader strategy with:
Risk management
Position sizing
Confirmation logic
Larry Williams Qualified Trend Break Signals [tradeviZion]Larry Williams Qualified Trend Break Signals - Description
📖 Introduction
Welcome to the Larry Williams Qualified Trend Break Signals indicator. This description explains how the indicator works, its settings, and how to use it.
This indicator demonstrates Larry Williams' Qualified Trend Line Break technique - his preferred method for timing precise entries on daily charts when you already have a confirmed market setup.
---
🎯 About This Script
This indicator implements the Qualified Trend Line Break system - an entry technique that qualifies trend line breaks for better timing.
Important: This is NOT a signal generator. It's an entry timing tool for traders who already have a market setup and confirmation. Use it only after establishing weekly bias and daily confirmation.
Why We Made This Indicator:
This indicator demonstrates Larry Williams' favorite entry technique for daily timeframe trading. It's designed to be used as part of his complete methodology:
How To Use It Properly:
First, establish your setup: Check weekly chart for overall market bias (bullish/bearish)
Then confirm on daily: Look for confirmation signals on daily timeframe
Finally, use trend breaks: Enter trades only when trend breaks align with your setup direction
Important Warning: This is NOT a standalone buy/sell signal indicator. Using trend breaks without proper setup and confirmation will likely produce poor results. It's a timing tool for entries, not a signal generator.
---
About The Qualification Rules
The system improves on qualification methodology with these key changes:
For BUY signals (breaking above downtrend lines):
Break is usually bad if previous bar closed higher
But can still be good if:
Previous bar was inside the prior bar AND that prior bar closed lower
Price gaps above trend line and moves up at least one tick
Previous bar closed below its own opening price
For SELL signals (breaking below uptrend lines):
Break is usually bad if previous bar closed lower
But can still be good if:
Previous bar was inside the prior bar AND that prior bar closed higher
Price gaps below trend line and moves down at least one tick
Previous bar closed above its own opening price
---
📐 How The Qualification System Works
The trend break system is based on qualification methodology as developed by Larry Williams . It solves the problem where trend line breaks often fail and price goes back.
Trend Line Setup:
For BUY signals: Connect the two most recent declining swing highs to make a downtrend line
For SELL signals: Connect the two most recent rising swing lows to make an uptrend line
Inside Bar Rule:
A key principle: Trend breaks that occur on inside bars are completely ignored. The system only evaluates breaks that occur on regular bars, making signals more reliable.
How It Works In The Code
The indicator follows these steps:
Finds swing points: Identifies highs and lows in the price action
Draws trend lines: Connects 2 recent swing points to make trend lines
Checks inside bars: Ignores breaks that happen on inside bars
Qualifies signals: Uses the rules to check if breaks are good or bad
Shows signals: Only displays qualified BUY/SELL signals
Optional feature: Can show disqualified signals
⚙️ Settings
The indicator has 3 groups of settings to customize how it works.
---
📊 Signal Settings
Show Signals
Default: ON
ON: Displays green/red labels when trend breaks qualify for entry
OFF: Hides entry labels (trend lines still show for analysis)
Remember: These are entry TIMING signals, not standalone buy/sell signals
Signal Selection
Default: Both | Options: Buy Only, Sell Only, Both
Buy Only: Shows only BUY signals
Sell Only: Shows only SELL signals
Both: Shows both BUY and SELL signals
Break Validation
Default: Close | Options: Break Level, Close
Break Level: Signal when price touches the trend line (more signals)
Close: Signal when bar closes beyond trend line (fewer signals)
Tip: Try "Close" first for better signals
Show Disqualified
Default: OFF | Options: ON/OFF
What it does: Shows bad breaks
ON: Shows gray ❌ labels with explanations
OFF: Hides bad signals
👁️ Display Settings
Show Trend Lines
Default: ON
What it does: Shows trend lines on the chart
Looks like: Dashed blue lines connecting swing points
Goes to: Extends into future bars
Why: Shows where breakouts are expected
Show Swing Points
Default: ON
What it does: Marks highs/lows used for trend lines
Looks like: Shape markers at swing locations
Shows: How trend lines are constructed
Marker Style
Default: Circle | Options: Circle, Triangle, Square, Diamond, Cross
What it does: Choose shape for swing markers
Options: Circle, Triangle, Square, Diamond, Cross
Best choice: Circle is clear without being busy
Marker Size
Default: 3 | Range: 1-10
What it does: Controls marker size
Range: 1 (tiny) to 10 (large)
Show Inside Bars
Default: ON
What it does: Highlights inside bars
Looks like: Light orange background on inside bars
Note: These bars are ignored for break qualification
Important: Inside bars are ignored for break qualification
🎨 Colors
Signal Colors
Buy Signal (Default: Green) - Color for good BUY signals
Sell Signal (Default: Red) - Color for good SELL signals
Disqualified (Default: Gray) - Color for bad signals
Display Colors
Trend Line (Default: Blue) - Color for trend lines and markers
Inside Bar (Default: Light Orange) - Background for inside bars
💡 How To Use It In Larry Williams Methodology
Step 1 - Weekly Setup: Identify market bias on weekly chart (clear bullish/bearish trend)
Step 2 - Daily Confirmation: Find confirmation signals on daily timeframe
Step 3 - Trend Break Entry: Use qualified trend breaks only in setup direction
Important: Never enter based on trend breaks alone - always require setup + confirmation first
⚠️ Important Notice
This indicator implements Larry Williams' trend break entry technique. It should NOT be used as standalone buy/sell signals. Only use trend breaks for entry timing after you have established a proper market setup and confirmation. Poor results will occur if using signals without the complete Larry Williams methodology.
Credits: Based on Larry Williams' trading approach and qualification methodology. Swing detection logic adapted from "Larry Williams: Market Structure" by Smollet.
Rainbow Rider Pro | ProjectSyndicate________________________________________
📖 Rainbow Rider Pro PS — The Definitive Guide
________________________________________
✅ Executive Summary — 10 Unique Advantages
🌈The Rainbow Rider Pro PS isn’t a basic trend indicator — it’s a visual trading system built to show market momentum + volatility clearly and intuitively.
eur cad
1. ⚙️ Hybrid Momentum Engine
Combines EMA + WMA + VWMA into one triple-smoothed composite wave → responsive + smooth.
2. 🌈 Full-Spectrum Gradient
A 7-layer rainbow maps momentum strength across colors → more nuance than simple 2-color tools.
3. 📏 Adaptive Volatility Zones
Zones are ATR-driven, expanding/contracting with volatility → dynamic support/resistance behavior.
4. 👁️ Visual Momentum Mapping
Momentum shifts become color shifts → less reliance on separate oscillators.
5. ✨ Glow + Transparency (Dark Mode Optimized)
Transparency + glow improves clarity and reduces eye strain during long sessions.
6. 📈 Acceleration Detection
Tracks momentum direction + acceleration → early warning for strengthening/weakening trends 🚦.
7. 🎯 Clutter-Free Signals
💎 reversals + ⚡️ volatility spikes → clean, minimal overlays .
8. 🟣 Dynamic Background Ambiance
Background hue follows dominant momentum → helps you “feel” market mood instantly .
9. 🧵 Zero-Lag Smoothing Style
Triple-EMA smoothing hugs price action → smooth trend line without heavy lag .
10. 🌍🔁 Universal Applicability
Asset-agnostic logic works across FX 💱 / Crypto 🪙 / Commodities 🪙⛏️ / Equities 🏛️ on all timeframes ⏱️.
ltc usd
________________________________________
⚙️ Anatomy of the Indicator
1) Momentum Wave (Core Baseline)
The wave is the primary trend + momentum reference.
Color Meaning
• Warm (Yellow / Orange / Pink) → strong bullish momentum 📈
• Cool (Cyan / Blue / Indigo / Violet) → strong bearish momentum 📉
• Green → neutral / transition (indecision)
Position Meaning
• Price above wave → generally uptrend
• Price below wave → generally downtrend
________________________________________
2) Rainbow Volatility Zones (7 Bands)
Bands expand/contract around the wave and act like adaptive volatility envelopes.
• Expansion → rising volatility
• Contraction → falling volatility (often precedes breakout)
• Outer band touch (Pink / Indigo / Violet extremes) → move may be overextended → pullback/consolidation risk
________________________________________
s&p e-mini
🎯 Signals & Markers
• Reversal Diamonds (💎)
Appear when price crosses the Momentum Wave with confirming conditions.
o 💎 below price → bullish reversal signal
o 💎 above price → bearish reversal signal
Best used as entry/exit warnings, not standalone trades.
• Volatility Lightning (⚡️)
Appears when ATR spikes → warns of unusually high volatility (erratic moves + wider spreads possible).
________________________________________
📈 Sample Trade Setups (Hypothetical)
1) GBP/USD — H4 Swing (Trend Following)
• Trend: downtrend, wave blue, price below wave
• Setup: pullback to wave (dynamic resistance), wave shifts to cyan but fails to turn green, rejection + bearish 💎 above candle
• Entry: short at signal candle close
• SL: above swing high + upper zones
• TP: lower indigo/violet band, then historical support
• Exit early if: wave turns green OR bullish 💎 appears
________________________________________
2) XAU/USD (Gold) — H1 Day Trade (Breakout)
• Trend: tight consolidation, zones contracting
• Setup: wave flat + green → indecision; breakout candle closes above bands; wave turns green → yellow → orange
• Entry: long at close or pullback to first upper band
• SL: below consolidation midpoint or below wave
• TP: ride upper bands; exit when price closes back inside bands OR wave cools (pink→orange etc.)
________________________________________
3) BTC/USD — Daily (Reversal Trading)
• Trend: prolonged bullish, wave pink, price extended
• Setup: new high but momentum wanes; price closes below wave + bearish 💎
• Entry: short (smaller size; counter-trend risk)
• SL: above recent ATH
• TP: first major support; take profits aggressively
• Exit cue: support at lower bands + wave shifts toward neutral (blue→cyan/green)
________________________________________
🛠️ Setting Templates (Ready-to-Use)
Template 1 — Scalper (M1 / M5)
• Goal: small, rapid moves
• Wave Length: 13
• Wave Source: HL2
• Volatility Multiplier: 1.8
• ATR Period: 34
• Logic: very responsive wave + tighter bands
Template 2 — Day Trader (M15 / H1) (Default-Style Balance)
• Wave Length: 34
• Wave Source: HLC3
• Volatility Multiplier: 2.5
• ATR Period: 50
Template 3 — Swing Trader (H4 / Daily)
• Wave Length: 55
• Wave Source: Close
• Volatility Multiplier: 3.0
• ATR Period: 100
• Logic: smoother trend focus + wider bands to avoid premature exits
Template 4 — Position Trader (Daily / Weekly)
• Wave Length: 89
• Wave Source: OHLC4
• Volatility Multiplier: 3.5
• ATR Period: 144
• Logic: filters noise → only major shifts trigger signals
________________________________________
📊 Advanced Interpretation Guide
Reading the Rainbow (Color Psychology)
• Bearish (Cool): Violet → Indigo → Blue → Cyan
o Violet = most extreme bearish
o Cyan = bearish weakening → transition risk
• Neutral (Green): equilibrium / indecision → often ranges & consolidations
• Bullish (Warm): Yellow → Orange → Pink
o Yellow = early bullish
o Orange = strong established bullish
o Pink = extreme bullish (can be overextended)
________________________________________
📊 Advanced Interpretation Guide
🌈 Reading the Rainbow: Color Psychology in Trading
The gradient is designed to be intuitive — each color is a “momentum temperature” cue:
• Bearish Spectrum (Cool Colors) 🟣🔵🧊
🟣 Violet → 🟦 Indigo → 🔵 Blue → 🩵 Cyan = declining momentum
o 🟣 Violet = most extreme bearish conditions
o 🩵 Cyan = bearish momentum weakening → transition risk
• Neutral Zone (Green) 🟢⚖️
🟢 Green = equilibrium / indecision
Common during consolidations or ranges → usually best to wait for clearer bias.
• Bullish Spectrum (Warm Colors) 🟡🟠🩷
🟡 Yellow → 🟠 Orange → 🩷 Pink = rising momentum
o 🟡 Yellow = early bullish shift
o 🟠 Orange = strong, established uptrend
o 🩷 Pink = extreme bullish conditions (often overextended)
________________________________________
Volatility Band Dynamics
• Wide bands: high volatility (news / breakouts / acceleration) → consider wider stops
• Narrow bands: volatility squeeze → breakout risk rising
• Outer band breakout: momentum surge → often followed by reversion to inner bands/wave
________________________________________
🎯 Trading Strategies (Combining Signals)
Strategy 1 — Trend Continuation (High Win Rate)
Entry
• Price above (long) / below (short) wave
• Wave color aligns (warm for longs / cool for shorts)
• Wait pullback to wave or first inner band → enter on bounce
Exit
• Close on opposite side of wave
• Wave turns green
• Opposite 💎 appears
Risk
• SL just beyond wave on the invalidation side
________________________________________
Strategy 2 — Reversal Trading (High R:R)
Entry
• Strong trend extreme (pink or violet)
• 💎 appears + price closes opposite side of wave
• Wave shifts toward neutral (pink→orange, violet→indigo)
Exit
• Target opposite outer bands
• Or wave fully transitions to opposite spectrum
• Or counter-💎 prints
Risk
• Smaller sizing; SL beyond swing high/low
________________________________________
Strategy 3 — Volatility Breakout (High Momentum)
Entry
• Bands contracting (squeeze)
• Wave flat + green
• Large candle closes beyond outer bands
• Wave shifts quickly from green to strong warm/cool
Exit
• Price returns inside main bands
• Wave cools
• 💎 appears
Risk
• SL at consolidation midpoint; consider trailing stop on big winners
________________________________________
🧠 Best Practices & Pro Tips
• Timeframe Alignment: confirm higher TF trend before entries
• Avoid Neutral Zones: wave green + chop around wave = low probability
• Combine with Key Levels: horizontals / fibs / pivots improve confluence
• Respect ⚡️: volatility spike = spreads/slippage risk; tighten risk or wait
• Use Background Mood: warm = bullish bias, cool = bearish bias (avoid counter-trend)
• Adjust Gradient Intensity: reduce if distracting; increase if you want stronger visual pop
• Backtest First: learn behavior per asset/timeframe before going live
________________________________________
⚙️ Parameter Reference
| Parameter | Default | Range | Description
|----------------------|---------|--------------------------|----------------------------------------------|
| Wave Length | 34 | 8 - 200 | Wave responsiveness (lower = more sensitive) |
| Wave Source | HLC3 | Close/HLC3/OHLC4/HL2 | Price input used for wave |
| Volatility Multiplier| 2.5 | 0.5 - 10.0 | Band width (higher = wider) |
| ATR Period | 50 | 10 - 200 | ATR lookback (higher = smoother volatility) |
| Gradient Intensity | 75 | 0 - 100 | Band fill opacity (higher = more opaque) |
| Show Momentum Wave | True | True / False | Toggle main wave line |
| Show Rainbow Zones | True | True / False | Toggle volatility bands |
| Show Trend Signals | True | True / False | Toggle 💎 + ⚡️ markers |
| Dynamic Background | True | True / False | Toggle background hue shift |
| Rainbow Colors | Custom | Any Color | Customize each rainbow color |
________________________________________
🔔 Alert Configuration (TradingView Steps)
1) Click the indicator "More" (⋯) on the chart
2) Select "Add Alert on Rainbow Rider Pro PS"
3) Choose the condition in the dropdown
4) Set notifications (app/email/SMS/etc.)
5) Click "Create"
Available Alert Conditions
• Bullish Reversal → bullish 💎 appears
• Bearish Reversal → bearish 💎 appears
• High Volatility → ATR spike (⚡️)
• Extreme Bullish → momentum strength > 90
• Extreme Bearish → momentum strength < 10
Trend Pulse Oscillator█ OVERVIEW
Trend Pulse Oscillator is a momentum oscillator that combines short-term trend strength analysis (price deviation from a dynamic trend line) with optional reference to a higher timeframe trend context. It visualizes market pulse through smoothed oscillator waves, fixed overbought/oversold levels, and zero-line cross signals indicating momentum shifts.
The indicator assists in identifying potential entry points after strong moves, early signs of exhaustion or direction change, and supports decision-making by providing longer-period trend awareness
█ CONCEPT
Built upon the SwiftTrend logic. The core idea is to measure how far price deviates from the adaptive trend line (margin line). Greater deviation in the direction of the trend indicates stronger momentum. When price returns toward the trend line — especially from overbought or oversold zones — it often signals a correction or potential reversal.
- The oscillator displays the deviation of price from the trend line and applies user-selected smoothing (EMA, SMA, RMA, WMA).
- The longer-period trend controls candle coloring (SwiftTrend candles) and can be used discretionarily as a directional bias/filter for signals.
- The color of the oscillator itself depends solely on whether the smoothed value is above or below zero (green above, red below).
Fixed OB/OS levels and the zero line help visually evaluate the strength of the deviation. Areas significantly above the OB level or below the OS level indicate extreme price stretch away from the trend line and increased probability of mean reversion.
█ FEATURES
Calculations
- Average candle body size — calculated separately for oscillator and longer-period trend
- Dynamic trend line (adaptive margin line) + fixed OB / OS threshold levels
- Multiple oscillator smoothing options
- Momentum expressed as oscillating waves
- Detection of OB/OS crossovers and zero-line breaks
Visualization
- Oscillator waves colored according to sign (green above zero, red below zero)
- Fixed OS level (oversold) — gray, dashed line
- OB level (overbought) — color reflects the current longer-period trend direction (green when price is above the longer-period trend line, red when below)
- OB and OS levels frequently displayed with light gradient fill for readability (OB gradient inherits HTF trend color; OS gradient remains neutral/gray)
- Optional SwiftTrend candle coloring — candles colored according to longer-term trend direction and strength (gradient intensity)
- Transparent, layered fill under oscillator waves (stronger near the wave, fading toward zero)
Signals
- Long / Short — triggered on crossover/crossunder of OB/OS levels (with anti-duplication logic per wave)
- Zero Line Long / Zero Line Short — zero-line break confirmed by candle color direction
- Longer-period trend change — visual and alert when longer-term trend flips
- Important: There is no automatic filtering of OB/OS or zero-line signals by the longer-period trend — traders should apply longer-period trend bias manually
Alerts
- Long Signal
- Short Signal
- Zero Line Long
- Zero Line Short
- Longer-Period Trend Change
█ HOW TO USE
Add the indicator via Pine Editor (paste the code) or search for “Trend Pulse Oscillator” in the TradingView public library.
Main settings
- Osc Average Body Periods – averaging period for oscillator body size
- Osc Band Multiplier / Tolerance Multiplier – controls width and sensitivity of oscillator bands
- Smoothing Type / Length – smoothing method and period for the oscillator wave
- Trend Average Body Periods / Band / Tolerance – parameters for the longer-period trend line
- Overbought Level / Oversold Level – fixed threshold values
- Enable Candle Coloring – turns on SwiftTrend-style candle coloring based on the longer-period trend
- Gradient & fill options – control visibility and transparency of gradients and wave fills
Trend & candle coloring logic
- Price above trend line → bullish (green tones)
- Price below trend line → bearish (red tones)
█ APPLICATION
Momentum trading
- Direction and slope of oscillator waves indicate current impulse strength
- Return toward zero or zero-line cross can serve as an early warning of correction or reversal
Trend following
- The longer-period trend acts as a discretionary directional filter
- Highest-probability approach: take signals primarily in the direction of the longer-period trend
Overbought / Oversold
- Fixed OB/OS levels mark zones of extreme deviation from the trend line
- Large extensions away from the trend line increase the likelihood of pullback or reversal
█ NOTES
- This is a supporting tool — never use it as a standalone trading system
- Best results are achieved when combined with key support/resistance levels, market structure analysis, and longer-period trend context
- OB/OS crosses and zero-line breaks are orientation points only — always validate them against the broader trend picture
[SUMIT] Trade line strategy 05:00pm to 11:00pmSUMIT INGOLE
This indicator is created by Sumit Ingole, a trader from Maharashtra, India, based on real-time market experience.
It helps identify market direction and clean entry zones with a simple structure.
Best used with proper risk management.
Breaker Blocks Signals [AlgoAlpha]🟠 OVERVIEW
This script automates the detection of Breaker Blocks, a popular smart money concept used to identify high-probability reversal zones. It monitors price action for aggressive impulses—measured through a normalized Z-Score—to identify Orderblocks. When these blocks are "broken" or invalidated by price moving through them, they transform into Breaker Blocks. These zones act as "flipped" support or resistance, offering traders specific areas to look for retests and trend continuations. By handling the complex management of zone life-cycles and mitigation, this script provides a clean, real-time map of institutional supply and demand shifts.
🟠 CONCEPTS
The indicator relies on the relationship between price momentum and structural invalidation. It first identifies "impulsive" candles by calculating a Z-Score of price distance covered over a specific window. A Z-Score above 4 marks an "Algorithmically Significant" move. When such a move occurs, the script identifies the last opposite-colored candle (the Orderblock) and draws a gray zone. The transformation happens when price closes entirely through one of these gray zones. This "mitigation" is what triggers the creation of a Breaker Block: an old bearish supply zone becomes a bullish demand zone, and vice versa. This transition reflects a shift in market regime where previous trapped participants are forced to exit, often leading to price rejections at these newly formed levels.
🟠 FEATURES
Automated Breaker Transformation : Instantly flips mitigated Orderblocks into colored Breaker Blocks (Bullish/Bearish).
Rejection Markers : Small arrow icons appear when price enters a Breaker Block and shows signs of respect/reversal.
Comprehensive Alerts : Notifications for both the formation of new breakers and real-time price rejections.
🟠 USAGE
Setup : Add the script to your chart. It is effective on most timeframes, but many traders prefer the 15m or 1h for intraday structure. Use the "Z-Score Window" to adjust sensitivity; 100 is standard, but lower values (e.g., 50) will find more frequent, smaller impulses.
Read the chart : Gray boxes are "Pending" blocks. If price closes above a gray bearish box, it turns into a Bullish Breaker (Green). If price closes below a gray bullish box, it turns into a Bearish Breaker (Red). Look for price to return to these colored zones; the "▲" and "▼" symbols indicate the script has detected a rejection from that level.
Settings that matter : Prevent Overlap is useful for avoiding "cluttered" zones in ranging markets. Max Box Age is critical; it ensures that very old, irrelevant zones are removed from your chart after a set number of bars, keeping your technical analysis current and focused on recent price action.
Key levels by Chav3zNY-Time Anchored Sessions
Visualizes the Asia, London, and New York sessions using customizable boxes or high/low lines. Unlike standard session indicators, this tool uses the America/New York time zone to ensure your session start and end times remain accurate throughout Daylight Savings changes.
2. Dynamic HTF Key Levels (PDH/PDL, PWH/PWL, PMH/PML)
Automatically plots the Previous Daily, Weekly, and Monthly Highs and Lows.
Clean Intraday Origin: To prevent "chart clutter," these lines do not drag across the entire historical data. They originate at the start of the current day (NY Midnight), providing a clean horizontal reference for the current trading session.
Lookback Control: Choose how many days of historical key levels you want to remain visible on your chart.
3. Custom Time-Anchored Levels
Includes two fully customizable "Price Anchors" (e.g., Midnight Open, 09:30 AM NY Open).
Origin Point Precision: Lines start exactly at the candle of the specified time (e.g., 09:30) and extend forward, rather than drawing through the pre-market.
Price Capture: Choose to anchor to the Open, High, or Low of that specific timestamp.
4. Full Aesthetic Customization
Every level (Daily, Weekly, Monthly, and Custom) can be individually styled:
Color & Visibility: Set each level to your preferred color (Defaulted to Black for a clean look).
Line Style: Toggle between Solid, Dashed, or Dotted lines.
Thickness: Adjust the line width (1px, 2px, etc.) for better visibility on high-resolution screens.
How to Use
Midnight Open: Set Level 1 to 0000 to track the Daily Open, a crucial level for determining daily bias.
NY Open: Set Level 2 to 0930 to mark the "Opening Range" anchor for the New York session.
Liquidity Targets: Use the PDH/PDL and PWH/PWL levels to identify draw-on-liquidity areas for intraday scalp or swing setups.
Strategy2.0 H4 Only + Volume Fightt.me
DESCRIPTION (EN)
Strategy2.0 H4 Only + Volume Fight is a trend-following indicator designed for H4 timeframe trading. It works consistently and correctly on any chart timeframe, while all calculations and signals remain strictly anchored to H4.
The indicator uses a three-layer entry filtering system. A trade is triggered only when all conditions are met simultaneously. The core idea is to enter the market only during confirmed trends and at the moment when real volume appears, avoiding flat markets and false moves.
The first condition is the trend direction defined by the main MACD (12, 26, 9) calculated on the H4 timeframe. Values above zero indicate a bullish trend, while values below zero indicate a bearish trend.
The second condition is momentum confirmation using a fast MACD (3, 7, 9), also calculated on H4. When the fast MACD moves against the main MACD, the market is considered to be in a preparation phase. Entry is allowed only when both MACDs are aligned in the same direction.
The third and key condition is the Volume Fight filter. This component analyzes the balance between bullish and bearish volume and highlights active and inactive market phases. Gray zones represent the absence of volume and market interest — trades are strictly forbidden in these areas. A signal appears only when the market exits a gray zone and volume confirms the movement.
Additionally, a liquidity filter based on 24-hour USD volume is used to exclude low-liquidity instruments. The volume is calculated strictly on the daily timeframe and does not depend on the current chart timeframe.
An optional correlation filter with a selected instrument (for example, BTC) is available to avoid excessive market dependency and duplicate exposure. Specific instruments can be excluded from correlation checks if needed.
All signals are strictly tied to the H4 timeframe. Switching to lower timeframes does not increase the number of signals. Repeated signals in the same direction are blocked until the main MACD changes its trend.
The indicator visually highlights market phases: green candles represent confirmed bullish trends, red candles represent confirmed bearish trends, and gray candles indicate the preparation phase. BUY and SELL signals appear on the next candle after confirmation, eliminating repainting.
This indicator is intended for swing and position trading and does not constitute financial advice.
Cup & Handle Finder [theUltimator5]Cup & Handle Finder automatically scans your chart for Cup and Cup & Handle patterns—both bullish and bearish—and draws the structure when it meets quality rules. By default, the pattern detection is extremely strict, so it is very likely that no patterns will plot. This is intentional to reduce noise.
This indicator uses a unique cup detection algorithm that creates an ideal "cup" pattern algorithmically then checks whether or not the chart pattern fits within the ideal pattern with a margin of error that is user defined.
Think of it as two curves - an upper bound and a lower bound. If the chart stays between the upper and lower bound curves (and some other extra checks), it gets identified as a cup.
Once a cup is detected, it starts looking for a handle, which uses a secondary set of criteria. If all the criteria for the handle are met, then the cup and handle is confirmed, and a green arrow plots at the entry point.
If a handle starts to form and then doesn't confirm, a label is plotted that shows it was a failed cup and handle pattern.
If the handle confirms, a label plots that shows it was a confirmed pattern, plus the green arrow.
By default, cup patterns don't plot. You can toggle on cup patterns (cups that didn't continue into a handle pattern)
Key inputs
Minimum / Maximum Lookback: Controls the cup sizes (in bars) the scanner searches.
Breakout Source (Close vs High/Low): Close = stricter; High/Low = more sensitive.
Contained Bar Rate %: Main quality filter. Higher = fewer, cleaner patterns.
Show toggles: Cups, Cup & Handles, Failed Handles, Confirmation Triangles.
Direction filters: Enable Bullish Cups / Enable Bearish Cups.
Colors: Separate styling for bullish/bearish cups, handles, and confirmed/rejected states.
Alerts
Bullish/Bearish Cup Found
Bullish/Bearish Cup & Handle Detected
Bullish/Bearish Cup & Handle Confirmed
Use as a structure/scan tool and pair with your own confirmation and risk management
Seruya MMXM & Reversals @2026- BetaTesting with the public.
Will give more details later.
Keep updating. under development
EMA Crossover Candle Color - 9/21A simple visual trend highlighter for intraday/day trading. This overlay indicator plots a fast 9-period EMA (orange) and a slower 21-period EMA (blue). Candles turn green on the exact bar where the 9 EMA crosses above the 21 EMA (bullish momentum shift), and red when the 9 EMA crosses below the 21 EMA (bearish shift). Otherwise, candles remain default. Great for spotting quick trend changes, momentum entries, or filtering chop on 5-min charts (or any timeframe). Pairs well with VWAP, volume, or price action for confluence.
Dynamic Flow Ribbon [Adaptive]The Dynamic Flow Ribbon is a next-generation trend-following tool designed to solve the two biggest problems traders face: Lag and Noise .
Unlike traditional Moving Averages (SMA/EMA) that are often too slow to catch reversals or too sensitive to chop, this indicator utilizes Rational Quadratic Kernel Smoothing . This advanced mathematical approach creates a "Flow Ribbon" that hugs price action tightly during trends while remaining silky smooth, filtering out the random noise that leads to false signals.
This is not just a crossover indicator; it is a complete Market Regime Detector . It automatically identifies when the market is trending and when it is ranging, helping you stay out of dangerous "chop" zones.
Why Use This?
Zero-Lag Smoothing: Experience the responsiveness of a fast EMA with the smoothness of a slow SMA.
Chop Filter: The ribbon automatically turns Gray when volatility (ADX) drops, signaling you to sit on your hands and preserve capital.
Visual Clarity: No messy lines. Just a clean, glowing ribbon that tells you the trend direction instantly.
How It Works
The indicator calculates two dynamic curves:
Fast Flow Line: Tracks immediate price action using a tight kernel window.
Base Flow Line: A slower, weighted baseline that acts as the trend anchor.
The Ribbon: The space between these lines forms the "Ribbon."
Green (Bullish): Fast Flow > Base Flow. The trend is Up.
Red (Bearish): Fast Flow < Base Flow. The trend is Down.
Gray (Flat): Volatility is too low (ADX < Threshold). The market is sideways.
How to Trade
This tool is best used for Trend Continuation and Reversal Catching .
The Entry: Wait for a Crossover Signal (Small Circle).
Buy when the Ribbon flips Green.
Sell when the Ribbon flips Red.
The Filter: If the Ribbon is Gray , ignore all signals. This prevents you from getting whipsawed in a ranging market.
The Exit: You can ride the trend until the Ribbon flips color, or use your own support/resistance targets.
Settings
Bandwidth (Smoothness): Adjusts the sensitivity of the kernel. Higher values = smoother ribbon (better for swing trading). Lower values = faster reaction (better for scalping).
Trend Filter: Toggle the ADX-based chop filter on/off.
Visuals: Fully customizable colors to match your chart aesthetic.
Pro Tip: Combine for Maximum Accuracy
While the Dynamic Flow Ribbon is excellent for Trend Direction, it does not plot Support & Resistance levels.
For the ultimate trading setup, I highly recommend pairing this with my AIO Pivot Master
or any other pivot indicator, which you can easily find on TradingView.
Use Dynamic Flow to determine the Direction .
Use AIO Pivot Master to find your Entry and Exit targets .
Disclaimer
For Educational and Informational Purposes Only
This indicator is provided for educational and informational purposes only and DOES NOT constitute financial, investment, or trading advice. It does not predict future market movements with certainty.
Risk Warning
Trading in financial markets (Stocks, Crypto, Futures, Forex, etc.) involves a high degree of risk and may not be suitable for all investors. You could lose some or all of your initial investment. Past performance of any trading system or methodology is not necessarily indicative of future results.
No Liability
The author of this script assumes no responsibility or liability for any errors or omissions in the content of this indicator, or for any trading losses or damages incurred as a result of using this tool. Users are solely responsible for their own trading decisions and should always use proper risk management. By using this script, you acknowledge and agree to these terms.
ICT Liquidity Sweeps (Asia Carryover / PDH-PDL / EQ Pools)high probability ICT Liquidity Sweeps (Gold-Tuned / Asia Carryover / PDH-PDL / EQ Pools)
cephxs + fadi / Previous Time Based Dealing RangesPREVIOUS TIME BASED DEALING RANGES
Visualize previous and current higher timeframe dealing ranges with dual-box OHLC representation, extending reference lines, and HTF candle displays.
Open Source Fork of @fadizeidan 's HTF Candles Indicator
OVERVIEW
This indicator displays time-based dealing ranges from higher timeframes directly on your chart. It shows the complete price action structure of previous (or current/forming) periods using a dual-box system: one box for the full High-Low range and another for the Open-Close body. Reference lines extend from key levels to help identify potential support, resistance, and mean reversion zones.
Perfect for traders who use ICT concepts, market structure analysis, or any methodology that relies on understanding where price has been relative to previous dealing ranges.
KEY FEATURES
Dual-Box Range Visualization: Each range displays two boxes - the full H-L range (outer) and the O-C body (inner) - giving immediate visual context of candle structure
Multiple Timeframes: Support for 90m, 4H, 6H, 1D, 1W, 1M, and 3M ranges
Previous/Current Mode: View completed ranges (Previous) or the forming range (Current) with real-time updates
Auto Mode: Automatically selects the appropriate range based on your chart timeframe
Reference Lines: Extending lines from High, Mid, Low (or Quadrants: H/75/M/25/L) with trade-into detection
HTF Candle Display: Visual HTF candles positioned to the right of price for context
6H Session Support: Session-aware ranges for Asia, London, NY AM, and NY PM with labeled names
Open Line: Vertical line marking the range's opening price/time
Imbalance Detection: Fair Value Gaps and Volume Imbalances highlighted on HTF candles
MODE OPTIONS
Previous/Current: Previous shows the last completed range. Current shows the forming range with dynamic H/L/C updates
Auto/Manual: Auto selects range by chart TF. Manual lets you choose specific ranges
Extend Box (Current): In Current mode, extends the box's right edge as price develops
AUTO MODE TIMEFRAME LOGIC
Auto mode now selects up to 3 ranges automatically based on chart timeframe, providing multi-timeframe context:
Chart ≤ 3m → 90m + 6H + 1D
Chart 4m-14m → 6H + 1D + 1W
Chart 15m-59m → 1D + 1W (+ 1M available)
Chart 1H-3H → 1D + 1W + 1M
Chart 4H-23H → 1W + 1M + 3M
Chart ≥ 1D → 1M + 3M
INPUTS
Mode
Mode: Previous/Current - Choose completed or forming range
Auto/Manual: Auto selects range by chart TF, Manual lets you choose
Extend Box (Current): Extends box right edge with price (Current mode only)
Show Range Boxes: Toggle box visibility (lines remain visible when off)
Filter Lines by Distance: When boxes are hidden, hide reference lines that are too far from current price (Really Close / Balanced / Slightly Far)
Previous Ranges
Range 1: Enable/disable, select timeframe (90m/4H/6H/1D/1W/1M/3M), max display count (1-2)
Range 2: Second range layer for multi-timeframe analysis
Range 3: Third range layer for additional context
Reference Lines
Line Mode: Levels (H/M/L) or Quadrants (H/75/M/25/L)
Line Style: Solid, dashed, or dotted
Line Thickness: 1-4 pixels
Show Labels: Toggle reference line labels
Label Offset: Distance of labels from current price (1-20 bars)
HTF Candle Levels: Show mini H/M/L lines on HTF candles
Open Line: Vertical line at range open with customizable style
Range Boxes & Colors
Per-Range Colors: Customize box and line colors for each timeframe (90m, 4H, 6H, 1D, 1W, 1M, 3M)
HTF Candle Styling
Show HTF Candles: Toggle HTF candle display
Body/Border/Wick Colors: Customize bull and bear candle appearance
Padding/Buffer/Width: Control candle spacing and size
Labels
HTF Label: Show timeframe label above/below candles
Remaining Time: Countdown timer to candle close
Label Position: Top, Bottom, or Both
Label Alignment: Align across timeframes or follow individual candles
Imbalance
Fair Value Gap: Highlight FVGs on HTF candles
Volume Imbalance: Highlight VIs on HTF candles
HOW TO USE
Add the indicator to your chart
Choose Previous or Current mode based on your analysis preference
Use Auto mode for intelligent range selection, or Manual to select specific timeframes
Reference lines extend from range levels - watch for price reactions at H/M/L
In Current mode, observe how the range develops with real-time updates
Use the HTF candles on the right for quick multi-timeframe context
REFERENCE LINE LABELS
Labels follow this format:
Previous mode: pD-H (previous Daily High), pW-M (previous Weekly Mid), p6H-London-L (previous 6H London Low)
Current mode: D-H (Daily High), W-M (Weekly Mid), 6H-Asia-L (6H Asia Low)
6H SESSION NAMES
Asia: 18:00-00:00 ET
London: 00:00-06:00 ET
NYAM: 06:00-12:00 ET
NYPM: 12:00-18:00 ET
RECOMMENDED TIMEFRAMES
Tick/Second charts: 90m ranges
1-5 minute charts: 6H or 1D ranges
15-60 minute charts: 1D or 1W ranges
4H charts: 1W or 1M ranges
Daily charts: 1M or 3M ranges
Or simply use Auto mode to let the indicator choose the optimal range.
TIPS
The Mid (M) level often acts as equilibrium - watch for mean reversion plays
High and Low levels are natural support/resistance zones
In Current mode, watch how price interacts with the forming range boundaries
Combine with your existing analysis for confluence
The Open Line helps identify the "true open" of each range for gap analysis
DISCLAIMER
This indicator is for educational and informational purposes only.
Past performance does not guarantee future results.
Always use proper risk management and never risk more than you can afford to lose.
Trading involves substantial risk of loss and is not suitable for all investors.
CREDITS
Original indicator by @fadizeidan.
Enhanced by cephxs/fstarcapital
CHANGELOG
Pro + v1.1: Reupload + Added 90m ranges for ultra-low timeframe analysis, distance-based line filtering (lines-only mode), third range slot.
Open sourced so users can add more slots.
Enjoy 🤙
Pro RSI Mean-Deviation Sigmoid Oscillator (Z-Score Normalized)# Pro RSI Mean-Deviation Sigmoid Oscillator (Z-Score Normalized)
## 🧮 Core Mathematical Concept
**The Key Formula**: This indicator subtracts RSI's own EMA from the RSI value, divides the result by its standard deviation to create a Z-score, then applies sigmoid normalization to map it into a 0-1 range (displayed as 0-100).
**In Simple Terms**:
```
Z-Score = (RSI - RSI_EMA) / Standard_Deviation
Sigmoid = 1 / (1 + e^(-k × Z-Score))
Final Output = Sigmoid × 100
```
This mathematical approach transforms raw RSI momentum into a statistically normalized oscillator that better identifies genuine trend changes while filtering out noise.
---
## 📊 What This Indicator Does
This advanced momentum oscillator combines RSI analysis with statistical normalization to identify overbought/oversold conditions and momentum shifts with greater precision than traditional RSI alone.
**Core Innovation**: Uses Z-score normalization and sigmoid transformation to convert RSI deviations into a smooth 0-100 scale, reducing noise while maintaining sensitivity to genuine market movements.
---
## 🔧 How It Works
### 1. **RSI Foundation**
- Calculates standard RSI over your chosen period (default: 14)
- Applies an EMA smoothing line to identify the RSI trend
### 2. **Statistical Normalization**
- Measures deviation between RSI and its EMA
- Calculates Z-score (standard deviations from mean)
- Normalizes extreme values while preserving relative strength
### 3. **Sigmoid Transformation**
- Maps Z-scores to a 0-100 scale using sigmoid function
- Creates smooth transitions between bullish/bearish zones
- Reduces false signals from RSI whipsaws
### 4. **RSI Bollinger Bands**
- Adds dynamic overbought/oversold bands around RSI
- Adapts to market volatility automatically
- Confirms extreme conditions when RSI breaches bands
### 5. **Momentum Histogram**
- Visualizes rate of change in normalized momentum
- Green bars = strengthening bullish momentum
- Red bars = strengthening bearish momentum
---
## 📈 How to Use
### **Primary Signals**
**Sigmoid Oscillator (Thick Line)**
- **Above 50** = Bullish momentum dominant
- **Below 50** = Bearish momentum dominant
- **Crossing 50** = Potential trend change
**Extreme Zones**
- **Above 70** = Overbought (green background) - Consider taking profits or preparing for reversal
- **Below 30** = Oversold (red background) - Watch for potential bounce or reversal
### **Confirmation Signals**
**RSI Bollinger Band Breaches** (Purple background)
- RSI above upper band = Extremely overbought
- RSI below lower band = Extremely oversold
- Strong confirmation when paired with sigmoid extremes
**RSI vs RSI EMA Crossovers**
- Purple line (RSI) crossing above orange line (EMA) = Early bullish signal
- Purple line crossing below orange line = Early bearish signal
**Momentum Histogram**
- Growing green bars = Accelerating bullish momentum
- Growing red bars = Accelerating bearish momentum
- Shrinking bars = Momentum weakening (potential reversal warning)
---
## ⚙️ Parameter Settings
### **RSI Period** (Default: 14)
- Lower (7-10) = More responsive, more signals
- Higher (20-30) = Smoother, fewer false signals
- Recommended: Keep at 14 for most timeframes
### **RSI EMA Period** (Default: 14)
- Controls smoothness of RSI trend line
- Match to RSI period for standard behavior
- Increase for longer-term trend identification
### **Standard Deviation Period** (Default: 20)
- Lookback window for Z-score calculation
- Lower = More sensitive to recent changes
- Higher = More stable, slower to react
### **Sigmoid Sensitivity (k)** (Default: 1.0)
- **0.5-0.8** = Smoother, less extreme readings
- **1.0-1.5** = Balanced sensitivity
- **2.0+** = More aggressive, reaches extremes faster
- Adjust based on asset volatility
### **Bollinger Band Multiplier** (Default: 2.0)
- Standard deviation multiplier for RSI bands
- **1.5** = Tighter bands, more frequent signals
- **2.5-3.0** = Wider bands, only extreme moves
---
## 💡 Trading Strategies
### **Strategy 1: Momentum Continuation**
1. Wait for sigmoid to break and hold above 70 (bullish) or below 30 (bearish)
2. Confirm with growing momentum histogram in same direction
3. Enter in direction of momentum when RSI breaks Bollinger bands
4. Ride the trend until sigmoid crosses back through 50 or momentum histogram shrinks
5. This indicator excels at catching strong, sustainable momentum moves
### **Strategy 2: Momentum Breakout**
1. Identify sigmoid consolidation near 50
2. Watch for strong break above 70 or below 30
3. Confirm with growing momentum histogram
4. Enter in direction of break, exit when momentum weakens
### **Strategy 3: Divergence Detection**
1. Compare price action to sigmoid oscillator
2. Bullish divergence: Price makes lower low, sigmoid makes higher low
3. Bearish divergence: Price makes higher high, sigmoid makes lower high
4. Enter when sigmoid confirms with 50-line cross
### **Strategy 4: Multi-Timeframe Confluence**
1. Use on higher timeframe (4H/Daily) for trend direction
2. Use on lower timeframe (15M/1H) for entry timing
3. Only take trades when both timeframes align
4. Increases win rate significantly
---
## ⚠️ What to Watch For
### **Best Conditions**
- ✅ Trending markets with clear momentum
- ✅ Assets with decent volatility (not too choppy)
- ✅ When multiple signals align (sigmoid + bands + histogram)
- ✅ Confirmed with price action or volume
### **Difficult Conditions**
- ❌ Sideways, choppy markets (generates false signals)
- ❌ Low volatility periods (sigmoid may not reach extremes)
- ❌ Major news events (can cause extreme whipsaws)
- ❌ Very low timeframes (<5min) - too much noise
### **Common Pitfalls**
- Don't trade sigmoid extremes blindly - wait for reversal confirmation
- Don't ignore the momentum histogram - it shows strength of moves
- Don't use in isolation - combine with support/resistance, volume, etc.
- Don't over-optimize parameters - default settings work well for most assets
---
## 📋 Risk Disclaimers
**IMPORTANT:** This indicator is for educational purposes only and is NOT financial advice. All trading involves substantial risk of loss. Past performance does not guarantee future results. Always use proper risk management, backtest thoroughly, and consult a licensed financial advisor before making trading decisions. The creator assumes no liability for your trading results. **Trade at your own risk.**
---
## 🔍 Additional Considerations
### **Combine With:**
- Support and resistance levels
- Volume analysis
- Trend indicators (moving averages)
- Price action patterns
- Market structure analysis
### **Timeframe Recommendations:**
- **Scalping (1-5min)**: Lower RSI period (7-10), higher sigmoid sensitivity
- **Day Trading (15min-1H)**: Default settings work well
- **Swing Trading (4H-Daily)**: Increase all periods by 50-100%
- **Position Trading (Weekly)**: Double all default periods
### **Asset-Specific Tips:**
- **Crypto**: Often more volatile - consider k=0.8 for smoother signals
- **Forex**: Works well on major pairs with default settings
- **Stocks**: May need slight adjustments per stock volatility
- **Indices**: Very effective with standard parameters
---
## 📝 Credits & Sharing
Feel free to share this indicator! If you make modifications or improvements, consider sharing back with the community.
**Version**: 5
**Created for**: TradingView Pine Script
**Category**: Oscillators / Momentum
---
*Happy Trading! Remember: The best indicator is the one between your ears. Always think critically and trade responsibly.* 📊✨
Forex Liner SCALPING (No Repaint)//@version=5
indicator("Forex Liner SCALPING (No Repaint)", overlay=true, max_labels_count=500)
// ===== إعدادات سريعة للسكالبينج =====
pivotLen = input.int(1, "Pivot Sensitivity (أدق=1)")
emaLen = input.int(9, "EMA Trend")
rsiLen = input.int(7, "RSI Filter")
rsiMid = input.int(50, "RSI Mid Level")
showLabels = input.bool(true, "Show Labels")
// ===== الحسابات =====
ema = ta.ema(close, emaLen)
rsi = ta.rsi(close, rsiLen)
ph = ta.pivothigh(high, pivotLen, pivotLen)
pl = ta.pivotlow(low, pivotLen, pivotLen)
// ===== حفظ آخر قاع وقمة =====
var float lastLowPrice = na
var int lastLowBar = na
var float lastHighPrice = na
var int lastHighBar = na
if not na(pl)
lastLowPrice := pl
lastLowBar := bar_index - pivotLen
if not na(ph)
lastHighPrice := ph
lastHighBar := bar_index - pivotLen
// ===== موجة =====
var int wave = 0 // 1 شراء | -1 بيع
// ===== بداية موجة شراء =====
startBuy = not na(lastHighPrice) and close > lastHighPrice and wave != 1 and rsi > rsiMid
if startBuy and not na(lastLowBar)
wave := 1
if showLabels
label.new(lastLowBar, lastLowPrice, "BUY LOW", style=label.style_label_up, color=color.lime, textcolor=color.black)
// ===== بداية موجة بيع =====
startSell = not na(lastLowPrice) and close < lastLowPrice and wave != -1 and rsi < rsiMid
if startSell and not na(lastHighBar)
wave := -1
if showLabels
label.new(lastHighBar, lastHighPrice, "SELL HIGH", style=label.style_label_down, color=color.red, textcolor=color.white)
// ===== نهاية الموجة =====
endBuy = wave == 1 and close < lastLowPrice
if endBuy
wave := 0
if showLabels
label.new(bar_index, high, "END BUY", color=color.orange, style=label.style_label_down)
endSell = wave == -1 and close > lastHighPrice
if endSell
wave := 0
if showLabels
label.new(bar_index, low, "END SELL", color=color.orange, style=label.style_label_up)
Mentor Michael | XAUUSD Short BiasMentor Michael | XAUUSD Market Structure & Short Bias
This indicator is a visual price-action framework designed for traders who analyze Gold (XAUUSD) using institutional concepts rather than lagging indicators.
The script highlights high-probability decision zones by mapping key areas where liquidity, supply, and demand are most likely to influence price behavior. It is intended for educational and discretionary trading, not automated execution.
Core Features
Higher-Timeframe Resistance Zone
Identifies premium pricing areas where selling pressure and profit-taking are statistically likely.
Range & Accumulation Mapping
Visually marks prior consolidation zones to provide context for current market positioning.
Demand Reaction Area
Highlights zones where buyers previously reacted, helping define structural invalidation.
Projected Downside Target
Displays logical price objectives based on range equilibrium and liquidity attraction.
Directional Bias Label
Keeps the trader aligned with the planned market narrative and risk framework.
Trading Philosophy
This indicator is built around:
Market structure
Liquidity behavior
Premium vs. discount pricing
Mean-reversion probability after expansion
It supports traders in identifying where to trade, not when to trade, encouraging patience, confirmation, and proper risk management.
Best Use Case
Top-down analysis (D1 → H4 → H1)
Confluence-based trade planning
Educational chart sharing
Manual execution with confirmation
Important Notice
This tool does not provide buy/sell signals, alerts, or automated trades.
All levels are reference zones, not guarantees. Always apply your own confirmation and risk management.
Sigmoid Allocation Indicator & DashboardTL;DR This sigmoid-based allocation indicator tells you percentage of your portfolio to invest based on how much the market has dropped.
Market at all-time high? → Stay defensive, invest less (e.g., 30%)
Market crashed hard? → Get aggressive, invest more (e.g., 100%)
The "sigmoid" part just means the transition between these two extremes follows a smooth S-shaped curve.
Description
This indicator is a sigmoid-based allocation system that dynamically adjusts a portfolio exposure based on market drawdown.
It compares multiple steepness curves (K values) to find your optimal risk profile for leveraged ETF strategies, but it can also be used to scale in-out from stocks, crypto and to understand whether to use leverage or not.
The Sigmoid Allocation Dashboard helps you to dynamically adjust a portfolio allocation based on how much a market has dropped from its all-time high.
I've implemented it using a sigmoid (S-curve) function, that dynamically calculates the optimal allocation percentages. Depending on the market conditions, the S curves transition between defensive and aggressive allocations.
The Math Behind It (if you are a geek like me)
This indicator uses the sigmoid function to create smooth S-curve transitions:
α(D) = α_min + (α_max - α_min) × σ(k × (D - D_mid))
Where:
σ(x) = 1 / (1 + e^(-x)) ← Standard sigmoid function
You can also check it here:
// Sigmoid function: σ(x) = 1 / (1 + e^(-x))
sigmoid(float x) =>
1.0 / (1.0 + math.exp(-x))
// Alpha calculation: α(D) = α_min + (α_max - α_min) × σ(k × (D - D_mid))
calcAlpha(float drawdown, float k, float a_min, float a_max, float d_midpoint) =>
sig_input = k * (drawdown - d_midpoint) / 100.0
a_min + (a_max - a_min) * sigmoid(sig_input)
User parameters (you can tweak this):
Allocation Min (%): Your baseline allocation when markets are at ATH (default: 30%)
Allocation Max (%): Your maximum allocation during deep drawdowns (default: 100%)
D_mid (%): The drawdown level where you want to be at the midpoint (default: 25%)
Why do I like sigmoid and not a linear line?
Unlike linear models, the sigmoid creates "floors" and "ceilings" for your allocation. It transitions smoothly, no sudden jumps, and you never exceed your defined min/max bounds.
Understand the K Values (Steepness)
The K parameter controls how quickly your allocation shifts from defensive to aggressive.
Lower K (for example K=5) will give you a gradual transition, but at 0% drawdown you are already at a 46% allocation.
A higher like (like K=40) will give you a sharp transition, but at 0% drawdown you are close to the minimum allocation. On the other hand, a higher K will give close to 100% allocation when the markets are at new lows.
The example below illustrates this well, then the S&P 500 reached new lows in October 2022:
Different K values will affect the sigmoid curves (and you allocations differently). The chart below illustrates well how K affects the sigmoid curves:
Read the Dashboard
The main dashboard shows:
Current drawdown from ATH
Allocation % for each K value
Suggested action (Defensive → MAX LONG)
Use the Reference Chart
The static reference panel shows what your allocation would be at various drawdown levels (0%, 10%, 20%, 30%, 40%, 50%), helping you plan ahead.
Identify Zones
The color-coded chart background shows:
- 🟢 Green Zone: Aggressive positioning - "Buy the Dip"
- 🟡 Yellow Zone: Transition zone - Scaling in/out
- 🔴 Red Zone: Defensive positioning - Protect ya gains
Use Cases
Use case 1: Leveraged ETF Portfolio Management (this is my main use case)
When holding leveraged ETFs like TQQQ or UPRO, volatility makes it important to:
- Reduce exposure near all-time highs (when crashes hurt most)
- Increase exposure during drawdowns (when recovery potential is highest)
Example Strategy:
- At ATH: Hold 30% TQQQ, 70% cash/bonds or other uncorrelated assets
- At 25% drawdown: Hold 65% TQQQ, 35% cash/bonds
- At 40%+ drawdown: Hold 100% TQQQ
Use case 2: Diversified Leveraged Portfolio
Compare different K values for different assets:
- Use K = 10 for broad market (QQQ/SPY exposure via TQQQ/UPRO)
- Use K = 25 for sector bets (TECL, SOXL, TMF) that you want to scale into faster
Use case 3: Systematic Rebalancing Signals
Use the alerts to trigger rebalancing:
- Alert when K3 allocation crosses above 90% (time to add)
- Alert when drawdown exceeds your D_mid threshold
- Alert when market returns to within 5% of ATH
Tips for Best Results
It works best in longer time frames
Adjust the ATR lookback window
Match your risk tolerance level
I use this for index investing and stocks and haven't tried with crypto
Thanks for using the indicator and let me know if you have any feedback :)
- Henrique Centieiro