Zero-Lag ATR Trend [BackQuant]Zero-Lag ATR Trend
Overview
Zero-Lag ATR Trend is a volatility-adaptive trend-following overlay designed to identify directional market regimes with minimal delay while preserving structural clarity. The indicator combines a zero-lag moving average framework with a zero-lag volatility model to produce a trailing trend line that reacts quickly to meaningful price changes without becoming unstable or overly sensitive.
Unlike conventional ATR-based trend tools that rely on lagging averages and delayed volatility estimates, this indicator applies zero-lag logic to both the trend centerline and the volatility calculation. The result is a trend structure that aligns more closely with real-time price action while still maintaining the discipline required for trend continuation trading.
Core design philosophy
The core idea behind Zero-Lag ATR Trend is simple:
Reduce signal delay without sacrificing trend integrity.
Adapt dynamically to changing volatility regimes.
Provide a single, clean structure that defines trend direction, continuation, and invalidation.
Instead of stacking multiple indicators, the script builds a complete trend framework from two tightly integrated components: a zero-lag trend spine and a zero-lag ATR trailing mechanism.
Zero-lag trend spine
The trend spine is constructed using a zero-lag moving average (ZLMA). This is achieved by applying a corrective step to a traditional moving average, effectively compensating for smoothing delay.
Conceptually, the process works as follows:
A base moving average is calculated from the selected price source.
That moving average is then passed through a zero-lag correction.
The correction pulls the line closer to current price without introducing noise.
This produces a trend line that reacts faster than standard EMA, SMA, or HMA signals, particularly during early trend acceleration phases. Multiple moving-average types can be used inside the zero-lag framework, allowing traders to fine-tune responsiveness based on asset behavior and timeframe.
Zero-lag volatility model
Volatility is measured using True Range, but instead of applying classic ATR smoothing, the indicator uses a zero-lag smoothing pass on the True Range itself.
This approach offers several advantages:
Volatility expands more quickly during impulse moves.
Volatility contracts faster during consolidations.
Band width adjusts in near real-time to changing conditions.
The smoothed zero-lag ATR is multiplied by a user-defined factor to create adaptive upper and lower boundaries around the trend spine. These boundaries define how much counter-movement price is allowed before the trend structure is invalidated.
Volatility-aware trailing structure
The trailing output is the defining feature of the indicator. It behaves as a one-directional trailing structure:
In bullish conditions, the trailing line can only move upward.
In bearish conditions, the trailing line can only move downward.
Minor pullbacks inside the volatility envelope do not flip the trend.
This logic prevents the indicator from reacting to shallow retracements and focuses instead on structural trend changes. Because the trailing behavior is volatility-scaled, the indicator remains stable during high volatility while still responding promptly during regime shifts.
Trend flips and regime transitions
Trend direction is determined by changes in the trailing structure itself rather than raw price crosses. A trend flip occurs only when price movement is strong enough, relative to current volatility, to force the trailing line to reverse direction.
This means:
Bullish flips represent genuine transitions into upward regimes.
Bearish flips represent genuine transitions into downward regimes.
Sideways noise is largely filtered out.
As a result, the indicator is well suited for identifying medium-to-long trend phases rather than short-term oscillations.
Visual structure and chart clarity
The visual design is intentionally minimal and functional:
The main trailing line is color-coded by trend direction.
An optional ribbon or cloud reinforces directional bias.
Optional candle coloring aligns price bars with the active trend.
These elements allow traders to assess trend state instantly without interpreting multiple signals or overlays.
How to use for trend following
Trend bias
Maintain a bullish bias while price holds above the trailing line.
Maintain a bearish bias while price holds below the trailing line.
Entries
Trend flips can be used as initial directional entries.
Pullbacks toward the trailing line often act as continuation opportunities.
Momentum confirmation can be layered on top for additional confluence.
Trend management
The trailing line naturally functions as a dynamic stop reference.
As long as price respects the trailing structure, the trend remains valid.
A flip in direction signals a full regime transition rather than a minor correction.
Why zero-lag matters for trend trading
Traditional trend indicators often react late, especially during fast expansions, resulting in delayed entries and early exits. By reducing lag in both the trend calculation and the volatility model, Zero-Lag ATR Trend aims to capture a larger portion of directional moves while maintaining consistency and discipline.
This makes it particularly effective for momentum-based trend following, breakout continuation strategies, and traders who prioritize staying aligned with dominant market structure rather than predicting reversals.
Summary
Zero-Lag ATR Trend is a complete trend-following framework built around responsiveness, adaptability, and clarity. Its zero-lag architecture allows it to respond earlier to meaningful price changes, while its volatility-aware trailing logic ensures that trends are only invalidated when structure truly breaks. The result is a clean, intuitive tool that supports disciplined trend participation across assets and timeframes.
Supertrend
QSS Confluence EngineQSS Confluence Engine - User Guide
1. System Overview
The QSS Confluence Engine is a sophisticated, multi-layered trading algorithm designed for TradingView (Pine Script v6). Unlike standard indicators that rely on a single data point (like RSI or MACD), QSS aggregates data from five distinct "Engines" to generate high-probability trade signals.
The core philosophy is Confluence: A trade signal is only valid when price structure, volume flow, statistical probability, and momentum cycles align.
2. The Five Core Engines
🔥 A. Signal Engine (The Backbone)
This is the primary trend detector. It determines the bias (Bullish/Bearish).
Modes:
OTT (Optimized Trend Tracker): Smoother, better for volatile assets (Crypto/Forex).
SuperTrend: Faster, better for trending stocks or scalping.
Function:
If this engine says "Bearish," the system ignores all Buy signals from other modules.
🏰 B. Liquidity Structure (Apex Logic)
Identifies "Structural" Support and Resistance based on market pivots.
Logic: Draws zones from significant Pivot Highs/Lows to the candle body (Wick-to-Body).
Usage: Acts as a filter. The system will block a Buy signal if price is currently smashing into a Supply (Red) Liquidity Zone.
🌊 C. Imbalance Engine (BigBeluga Logic)
Identifies "Momentum" Supply/Demand based on volume and candle sequences.
Logic: Detects aggressive institutional buying/selling (e.g., 3 consecutive green candles with rising volume).
Usage: Shows where "Smart Money" has previously entered. These zones are often more reactive than standard pivots.
📊 D. Statistical Engine (Zeiierman Logic)
Calculates the raw mathematical probability of price movement.
Logic: It tracks every single bar in history. If the last candle was Green, it calculates: "Historically, after a Green candle, how often did price move up another 0.5 ATR?"
Filter: If enabled, it blocks trades where the historical probability of success is < 50%.
🧠 E. Neural KDE (Kernel Density Estimation)
Estimates the probability of a market reversal using statistical density.
Logic: Uses Gaussian math to find "Overextended" states in the RSI.
Usage: Prints Arrow labels when a reversal is statistically likely.
3. Configuration Guide (Settings Menu)
Signal Engine
Strategy Engine: Choose OTT for most assets. Switch to SuperTrend if you want faster, tighter signals.
OTT %: Lower (e.g., 1.0) for scalping, Higher (e.g., 2.0) for swing trading.
Liquidity & Imbalance
Filter: Respect Liquidity Zones: Keep this ON. It prevents buying into resistance.
Show S/D Imbalances: Default is OFF to keep the chart clean. Turn ON to see exactly where institutional volume entered.
Statistical Probability
Show Probability Lines: Default is ON.
Green Line: The price target for a "Bullish" continuation.
Red Line: The price target for a "Bearish" reversal.
Label: Shows the exact % chance (e.g., Prob Up: 65%).
Quant Filters
Koncorde / Institutional Activity: Checks for volume patterns associated with large players.
ADX Filter: Ensures the market is actually trending (ADX > 20) before signaling.
Cycle Filter (STC): A momentum cycle oscillator. Keeps you out of trades when the cycle is exhausted.
4. How to Trade (The Strategy)
The Buy Signal (Long)
A BUY label appears only when ALL of the following occur simultaneously:
Trend: The Core Engine (OTT/SuperTrend) turns Green.
Structure: Price is NOT inside a Supply/Resistance zone.
Volume: Volume is above average (if Volume Filter is on).
Probability: Statistical probability of an Up move is > 50%.
Momentum: STC Cycle is moving up.
The Sell Signal (Short)
A SELL label appears when:
Trend: The Core Engine turns Red.
Structure: Price is NOT inside a Demand/Support zone.
Volume: Volume is below average (if Volume Filter is on).
Probability: Statistical probability of a Down move is > 50%.
Momentum: STC Cycle is moving down.
Risk Management (R:R)
The script automatically draws entry, stop-loss, and take-profit lines when a signal fires.
SL (Stop Loss): Placed at 2.0 x ATR (Average True Range).
TP 1/2/3: Placed at 2x, 4x, and 6x ATR.
Strategy: Close half your position at TP1 and move SL to Breakeven.
5. The Dashboard (HUD)
Located at the bottom right, the HUD gives you a comprehensive real-time health check of the asset.
Current Engine: Displays the active strategy mode (OTT or SuperTrend).
Current Session: Identifies the active market session (London, New York, Tokyo).
Trend Bias: The overall direction (Bullish/Bearish).
Zone Status: Tells you if you are currently blocked by a zone (e.g., LIQ SUPPLY means "Don't Buy, we are at resistance").
KDE Prob: Indicates if a market Top or Bottom is statistically likely based on neural density.
Math Probability: The raw % chance of the current move continuing based on historical analysis.
Inst. Activity: Shows if institutions are Accumulating (Buying) or Distributing (Selling).
Trend Strength: Uses ADX to classify the market as Ranging, Trending, or Parabolic.
Trend Pressure: Shows if momentum is Rising or Falling.
System Status: A vital debugger. It tells you exactly why a trade isn't firing (e.g., "Wait: Cycle", "Wait: Ribbon") or if it's "Scanning...".
Active Trade Data: When a trade is live, this section replaces "System Status" to show Entry Price, Stop Loss, and Take Profit levels
6. Troubleshooting
"No Signals Appearing": You likely have too many filters enabled. Try disabling the Koncorde or Liquidity Filter temporarily to see if signals appear. The stricter the confluence, the fewer (but higher quality) the signals.
"Chart is too messy": Go to settings and uncheck Show Liquidity Zones, Show Probability Lines, or Show KDE Arrows. The logic will still work in the background even if visuals are hidden.
Indicator: Sniper + 6 Stage + MACD + P/L (Trend Hold Mode)Indicator: Sniper Trend + 6 Market Stages Dashboard
This is a comprehensive Trend-Following System designed to help traders catch big moves while filtering out market noise. Unlike standard scalping indicators, this script operates in "Trend Hold Mode," meaning it aims to keep you in a position as long as the major trend remains valid, ignoring minor pullbacks or choppy price action.
It combines a "Sniper" entry logic (HMA + Supertrend) with a 6-Stage Market Analysis (EMA relationships) and a detailed Real-time Dashboard.
Key Features
1. Sniper Entry Engine:
- Uses Hull Moving Average (HMA) for speed and smoothness.
- Uses Supertrend to determine the directional bias.
- Confluence Signal: A trade is only triggered when HMA, Supertrend, and enabled filters all align.
2.Trend Hold Mechanism:
- No Premature Exits: The script does not exit when the HMA turns gray (choppy). It holds the position until the Supertrend actually flips direction.
- This allows you to ride the trend longer and maximize P/L per trade.
3. Triple Filter System (Optional):
- EMA 200 Trend Filter: Only Long above EMA 200, only Short below EMA 200.
- RSI Filter: Prevents buying at Overbought (>70) or selling at Oversold (<30) levels.
- Volume Filter: Requires volume to be higher than the 20-period average to confirm momentum.
4. 6-Stage Market Analysis:
- Analyzes the relationship between Price, Fast EMA (50), and Slow EMA (200).
- Identifies the market cycle: Recovery, Accumulation, Bull, Warning, Distribution, Bear.
5. Live Dashboard:
- Displays current P/L (Paper Trading Tracker).
- Current Market Stage & Duration.
- Supertrend Stop-Loss Level.
- MACD Status & Momentum.
🚀 How to Use (Trading Rules)
1. Entry Strategy
LONG (Buy):
- Wait for the Green Triangle below the bar.
- Condition: HMA rises, Supertrend is Bullish, Price > EMA 200, RSI < 70, and Volume is High.
- Background turns Green.
SHORT (Sell):
- Wait for the Red Triangle above the bar.
- Condition: HMA falls, Supertrend is Bearish, Price < EMA 200, RSI > 30, and Volume is High.
- Background turns Red.
2. Exit Strategy (Take Profit / Stop Loss)
- The Exit Rule: The indicator is designed to HOLD the trend.
- Close Position When: The Supertrend Line flips color (Green to Red for Longs, Red to Green for Shorts).
Note: Do not panic if the HMA turns Gray (Choppy). As long as the Supertrend line holds, the trade is active.
Hard Stop Loss: You can manually use the "Supertrend SL" price shown on the dashboard as your trailing stop.
⚙️ Settings & Customization
Sniper Settings:
- HMA Length: Adjust sensitivity of the trend line (Default: 50).
- ATR Multiplier: Controls the Supertrend width. Higher = Wider Stop Loss, stays in trend longer.
Filters (Toggle On/Off):
- Use EMA 200 Filter: Recommended ON for trend following. Turn OFF for counter-trend or ranging markets.
- Use RSI Filter: Prevents entering at bad prices.
- Use Volume Filter: Ensures there is enough participation in the move.
Visuals:
- You can move the Dashboard table to any corner of the chart or resize it.
⚠️ Best Practices & Warnings
- Best Assets: High volatility and trending assets (Crypto: BTC/ETH, Forex: Major Pairs, Tech Stocks).
- Worst Conditions: Sideways/Ranging markets. In a flat market, you may get whipsawed. Solution: Look at the "Market Stage" on the dashboard. If it flips rapidly between "Warning" and "Recovery," stay out.
- Timeframes: Recommended for 4H, D, W. Lower timeframes (1H, 15m) may produce too many false signals due to noise.
- Repainting: This script uses barstate.islast for the dashboard, which updates in real-time. The signals (Triangles) are confirmed once the candle closes. Always wait for Candle Close before entering.
MarcoVieira - PB+BB+SAR+Supertrend@marco1981
Instagram @marcovieira.oficial
- Supertrend:
Calculates the Supertrend indicator using ATR. It plots green lines when the trend is bullish and red lines when bearish. It also shows buy/sell labels when the trend changes, and can highlight the background according to the trend. Alerts are triggered on buy, sell, or direction change.
- Pivot Boss EMAs:
Plots several exponential moving averages (20, 50, 100, 200, 400) directly on the price chart. These help visualize short-, medium-, and long-term trends.
- Bollinger Bands:
Draws Bollinger Bands (upper, lower, and basis) around price, with dynamic coloring (green if price is above the basis, red if below). The fill between bands changes color accordingly.
- Parabolic SAR:
Plots the Parabolic SAR dots above or below price, configurable with start, step, and maximum values. Dots appear gray depending on whether price is above or below the SAR.
👉 In short: this indicator combines Supertrend signals, multiple EMAs, Bollinger Bands, and Parabolic SAR into one chart to give a multi-tool view of market trend, momentum, and potential entry/exit points.
MarcoVieira - PB+BB+SAR+SupertrendHere’s a concise explanation in English of what your script does:
- Supertrend:
Calculates the Supertrend indicator using ATR. It plots green lines when the trend is bullish and red lines when bearish. It also shows buy/sell labels when the trend changes, and can highlight the background according to the trend. Alerts are triggered on buy, sell, or direction change.
- Pivot Boss EMAs:
Plots several exponential moving averages (20, 50, 100, 200, 400) directly on the price chart. These help visualize short-, medium-, and long-term trends.
- Bollinger Bands:
Draws Bollinger Bands (upper, lower, and basis) around price, with dynamic coloring (green if price is above the basis, red if below). The fill between bands changes color accordingly.
- Parabolic SAR:
Plots the Parabolic SAR dots above or below price, configurable with start, step, and maximum values. Dots appear gray depending on whether price is above or below the SAR.
👉 In short: this indicator combines Supertrend signals, multiple EMAs, Bollinger Bands, and Parabolic SAR into one chart to give a multi-tool view of market trend, momentum, and potential entry/exit points.
MarcoVieira - Bollinger Band sobre RSI (Long & Short + Alerts) Strategy Summary
This Pine Script strategy combines RSI (Relative Strength Index) with Bollinger Bands applied directly on the RSI values. Instead of using Bollinger Bands on price, it uses them on RSI to detect stronger overbought/oversold signals.
⚙️ How It Works
1. RSI Calculation
• RSI is computed from price changes (default length 14).
• It measures momentum and oscillates between 0–100.
2. Bollinger Bands on RSI
• A moving average of RSI (basis).
• Upper and lower bands are created using standard deviation.
• These bands show when RSI is unusually high or low compared to its average.
3. Entry & Exit Conditions
• Long Entry (LE): RSI drops below the lower band and is very low (<40).
• Long Exit (LX): RSI rises back above the basis or goes above 65.
• Short Entry (SE): RSI rises above the upper band and is very high (>60).
• Short Exit (SX): RSI falls back below the basis or goes under 35.
4. Risk Management
• Dynamic take profit and stop loss levels are calculated as percentages of the entry price.
• This ensures trades are automatically managed.
5. Visual Signals
• Colored markers show entries/exits directly on the RSI chart:
• Green (dark) → Long Entry
• Red (dark) → Long Exit
• Red (light) → Short Entry
• Green (light) → Short Exit
• Blue/orange markers highlight RSI and BB Basis extremes.
6. Alerts
• Alerts trigger for entries, exits, and extreme RSI/BB Basis values.
• This allows automated monitoring without watching the chart constantly.
7. Extras
• Optional plots show cumulative profit/loss (PnL) and current position size.
In Short
This is a Bollinger Band on RSI trading system. It:
• Spots overbought/oversold conditions more dynamically than plain RSI.
• Provides clear entry/exit signals with color-coded markers.
• Automates risk management with TP/SL.
• Sends alerts so you can act quickly or automate trades.
• Helps visualize both momentum and trade performance in one chart.
STOC Trend Analysis for F&O
For Long Term trend Analysis.
I have added three STs for long term investments. This indicator absorbs the short term volatility.
//Follow me on Twitter @STOC_Master//
This indicator is provided for educational and informational purposes only.
It does not constitute financial advice, investment recommendations, or trade signals.
The creator and Systematic Traders Club are not responsible for any financial losses resulting from the use of this indicator.
Trading and investing involve risk. Always do your own analysis and use proper risk management.
QLT Supertrend FlagsQLT Supertrend Flags
Description of the "QLT Supertrend Flags" indicator
📊 Basic Concept
This is an expanded version of the classic Supertrend indicator with a system of confirmed signals. The indicator helps identify trend reversals with additional filtering of false signals through various confirmation methods.
Key Features
1. Improved Supertrend with an adaptive multiplier
- Basic trend calculation based on ATR (Average True Range)
- Dynamic ATR multiplier option to adapt to changing volatility
- Colored trend line (green = bullish, red = bearish)
2. Signal Confirmation System
4 methods for confirming trend reversals:
- Time - the signal is confirmed N bars after the reversal
- Price - the price must move away from the Supertrend line by a specified % of ATR
- Volume - confirmation by increased volume
- Indicator - confirmation by another indicator
3. Process Visualization
- Confirmation Zone - highlights the period between the reversal and confirmation
- Flags - clear buy (B) and sell (S) signals
- Distance - displays the distance from the price to the Supertrend line in ATR units
Indicator Settings
Supertrend Main Parameters:
1. Source - price for calculation (HL2 by default)
2. ATR Length - Volatility calculation period (14 recommended)
3. Base ATR Multiplier - Channel width (3.0 recommended)
Dynamic Multiplier:
- Enable adaptive multiplier that changes with volatility
- Volatility Estimation Period - Sensitivity setting
Confirmation Method:
1. Bars - N-bar delay (conservative approach)
2. Price - % price deviation from ATR (active approach)
3. Volume - Volume spike (confirmation of interest)
4. Indicator - Confirmation by another indicator (e.g., RSI, MACD)
Visual Settings:
- Flag size (Tiny, Small, Normal, Large)
- Colors for bullish/bearish signals
- Trendline thickness
- Display statistics and distance
How to use in trading
Buy signals:
1. Reversal of a bullish trend - the Supertrend line changes color from red to green
2. Confirmation** - according to the selected method (time delay, price deviation, etc.)
3. "B" flag - appears below the bar, signaling a buy signal
4. Take profit - at the next resistance level or the distance to the line
Sell signals:
1. Reversal to a bearish trend - the line changes color from green to red
2. Confirmation - similar to a bullish signal
3. "S" flag - appears above the bar, signaling a sell signal
4. Take profit - at the next support level
Risk management:
- Stop loss - behind the Supertrend line (stop level)
- Distance - the greater the distance from the price to the line, the greater the potential for movement
- Confirmation zone - avoid entry until full confirmation
Interpretation of elements
Supertrend line:
- Green - bullish trend, buy on pullbacks to the line
- Red - bearish trend, sell on Rebounds to the line
Flags:
- "B" (green) - confirmed buy signal
- "S" (red) - confirmed sell signal
Confirmation zone (blue fill):
- Period between the initial reversal and confirmation
- Avoid entries in this zone
Distance (histogram/fill):
- > +2 ATR - strong upward deviation (possible correction)
- +1 to +2 ATR - moderate bullish deviation
- -1 to +1 ATR - neutral zone
- -1 to -2 ATR - moderate bearish deviation
- < -2 ATR - strong downward deviation (possible rebound)
Trading strategies
Strategy 1: Conservative (temporary confirmation)
- Settings: confirmation after 2-3 bars
- Advantage: minimal number of false signals
- Disadvantage: lag Entry
Strategy 2: Active (price confirmation)
- Settings: Confirmation when the price moves 1-2% from the ATR
- Advantage: Early entry into a trend
- Disadvantage: More false signals
Strategy 3: Synthetic (volume + indicator)
- Settings: Volume and RSI/MACD confirmation
- Advantage: High accuracy
- Disadvantage: Complex setup
QSS v18.3 Institutional Quant EngineQSS v18.3 | Institutional Quant Engine
💎 The Ultimate Algorithmic Trading Suite
QSS (Quantitative Signal System) v18.3 is a complete institutional-grade trading engine designed to replace the noise of multiple indicators with a single, high-probability decision model.
This is not just a "Buy/Sell" indicator. It is a "Fortress" of filters, combining Trend, Momentum, Volume, Volatility, Market Cycles, and Support/Resistance into one unified system.
🚀 What is New in v18.3 ?
1. Dynamic Support & Resistance Engine: The system now automatically detects and draws Support (Green) and Resistance (Red) lines based on pivot points.
The "Fortress" Filter: QSS intelligently scans these lines. If a trade setup appears right below a resistance wall or right above a support floor, the system BLOCKS the signal to prevent buying the top or selling the bottom.
Breakout Logic: The system is smart enough to detect a true Breakout. If a candle closes through a resistance line, the filter is overridden, allowing you to catch the explosion.
2. Visual Clarity:
S/R Labels: Horizontal lines are now clearly labelled "RES" (Resistance) and "SUP" (Support).
Entry/Exit Dots: Stop Loss lines now use distinct dotted styling for better visibility.
⚔️ Core Features
1. Dual-Core Signal Engine
Choose the engine that fits your asset class:
Engine A: OTT (Optimized Trend Tracker): Default. A next-gen algorithm based on VIDYA (Variable Index Dynamic Average). It is volatility-adaptive and reacts faster than traditional tools. Perfect for Crypto & Scalping.
Engine B: SuperTrend (Classic): The industry standard for trend following. Slower, steadier, and reliable. Best for Stocks & Swing Trading.
2. Institutional Intelligence (Smart Money)
Koncorde Logic (The Sharks): Analyzing NVI (Negative Volume Index) vs. PVI (Positive Volume Index). Logic: It tracks "Sharks" (Institutions) vs. "Minnows" (Retail). Signals are BLOCKED if Sharks are selling into a pump.
Order Block Filter (SMC): Automatically detects Supply (Red Zones) and Demand (Green Zones). Logic: The system will refuse to Buy if price is hitting a Bearish Order Block (Resistance).
3. The "Cycle Hunter" Filter
Schaff Trend Cycle (STC): A cyclical momentum filter that replaces MACD/Stochastic. Logic: Signals are only valid if the market cycle is turning in your direction. This prevents getting trapped in "fake outs" where price moves slightly but the cycle is actually exhausted.
4. Advanced Noise Cancellation
ADX Trend Strength: Blocks trades during "dead" markets (Chopping/Sideways) where trend followers usually lose money.
Candle Stability Index: Ignores "wicky" candles and dojis. If the market is undecided, QSS waits for a solid candle before firing.
Trend Ribbon: A dual-SMA cloud (21/34) acting as a macro-trend governor.
5. Pro Dashboard & Risk Management
Dynamic Panel: Displays Trend Status, Smart Money Flow (Accumulation/Distribution), Cycle State, and Volatility %.
Live Trade Monitor: When a signal fires, the dashboard expands to show your exact Entry Price, Stop Loss, and TP1/TP2/TP3 targets.
Status Monitor: When waiting for a trade, the dashboard tells you exactly what it is waiting for (e.g., "Wait: Money Flow" or "Wait: S/R Wall").
🛠️ Settings Guide
🔥 SIGNAL ENGINE
Strategy Engine: Choose between OTT (Fast/Crypto) or SuperTrend (Safe/Stocks).
🏰 SUPPORT & RESISTANCE
Filter: S/R Proximity: Enables the "Fortress" logic. Blocks trades too close to walls unless they are breakouts.
Show S/R Lines: Toggles the visible horizontal lines.
🧱 ORDER BLOCK FILTER
Respect Order Blocks: Highly recommended. Prevents buying into institutional supply zones.
📊 QUANT FILTERS
Smart Money (Sharks): Essential for avoiding retail traps. Read more info below on how the filter protects you
ADX Threshold: Default 20. Increase to 25 for safer entries.
Candle Stability: Filters out high-volatility wicks.
🛡️ RISK MANAGEMENT
SL Multiplier: Distance of Stop Loss (Default 2.0x ATR).
TP Multipliers: Adjust your Risk:Reward ratios. (Default is 1:1, 1:2, and 1:3).
💡 How to Trade with QSS v18
The Signal:
Wait for a "BUY" or "SELL" label. Note if it says "OTT" or "ST".
The Confluence:
Check the Ribbon: Is it the right color?
Check the Dashboard: Is Smart Money "ACCUM" (for buys)? Is the Cycle "BULL"?
The Execution:
Enter at the Entry Price displayed on the chart/dashboard.
Set Stop Loss at the Red Dotted Line.
Take Profit at the Blue Dotted Lines.
Troubleshooting:
I see the trend change colour, but no Buy/Sell label?
Turn on "🔧 Debug Mode" in the settings. Grey labels will appear on the chart explaining exactly why the trade was rejected (e.g., "⛔ REJECTED: Hitting S/R Wall" or "⛔ REJECTED: Low ADX").
The Smart Money (Sharks) Filter Explained
The "Smart Money" filter in QSS v16.0 is based on the famous "Koncorde" indicator logic developed by Blai5. It is designed to reveal what "Institutional Investors (Sharks)" are doing, as opposed to "Retail Traders (Minnows)".
It solves the classic problem: "Why is the price going up, but the volume looks weak?"
---
1. How it Works (The Logic)
The filter uses volume analysis to separate money flow into two categories:
The Sharks (Institutions): Calculated using the NVI (Negative Volume Index). Theory: Institutions accumulate positions quietly on low volume days to avoid spiking the price and alerting the market.
The Minnows (Retail): Calculated using the PVI (Positive Volume Index). Theory: Retail traders tend to chase price on high volume days (FOMO/Panic).
The Calculation in QSS:
The system takes the NVI, smooths it with an EMA, and normalizes it into a specific range.
Blue Area (Sharks) > 0: Institutions are BUYING (Accumulation).
Blue Area (Sharks) < 0: Institutions are SELLING (Distribution).
---
2. How the Filter Protects You
When you enable **"Filter: Smart Money (Sharks)"** in the settings, the system enforces the following strict rules:
Buying Rule: QSS will BLOCK a Buy signal if the Sharks are selling (Value < 0). Scenario: Price is pumping due to retail FOMO, but institutions are selling into the pump. This is a "Bull Trap." QSS saves you from buying the top.
Selling Rule: QSS will BLOCK a Sell signal if the Sharks are buying (Value > 0). Scenario: Price is dropping due to retail panic, but institutions are scooping up cheap coins. This is a "Bear Trap." QSS saves you from selling the bottom.
---
3. How to Set It Up
This filter is Pre-Calibrated inside the code, so you do not need to adjust the math. You only need to toggle it.
In the Indicator Settings:
1. Scroll down to the **"Quant Filters"** section.
2. Look for the checkbox: **"Filter: Smart Money (Sharks)"**.
✅ Checked (Default): The safety guard is ON. You will receive fewer signals, but they will have institutional backing.
⬜ Unchecked: The safety guard is OFF. You will get more signals, catching raw price moves, but you risk getting trapped by fake-outs.
In the Dashboard:
Look at the row labelled "Smart Money".
ACCUM (Green): Sharks are buying. Safe to Long.
DIST (Red): Sharks are selling. Safe to Short.
Summary
Think of this filter as an "Institutional Background Check." Before the system lets you enter a trade, it asks: "Are the whales coming with us?" If the answer is No, the trade is rejected.
Disclaimer: Trading involves high risk. This indicator is a tool for analysis and confirmation, not financial advice. No algorithm is 100% accurate; always use stop losses.
Credits:
OTT Logic adapted from Anıl Özekşi.
Koncorde Logic adapted from Blai5.
STC Logic adapted from Doug Schaff.
SMC logic adapted from FluxCharts concepts.
[devtool] Dynamic MTF Supertrend This script provides a robust, non-repainting implementation of the classic Supertrend indicator, enhanced with Multi-Timeframe (MTF) capabilities and dynamic adjustment features. It is designed for traders who require stable trend signals and reliable support/resistance levels across various market conditions.
Concept and Inspiration
First and foremost, huge respect is due to Kivanc Ozbilgic, the pioneer who popularized the Supertrend concept and made it a staple in technical analysis. This script builds upon that foundational logic but adapts it for modern charting needs, specifically addressing the issue of repainting in higher timeframe data.
Key Features
Non-Repainting Logic: The core of this indicator is built to ensure that once a candle closes, the signal and the trend line remain fixed. This is crucial for backtesting accuracy and real-time execution.
Dynamic Multi-Timeframe (MTF): You can view higher timeframe Supertrend levels on your current chart without the lag or repainting issues often associated with standard request.security calls.
Returning Levels: As seen in the examples below, the indicator clearly delineates "returning levels." These steps in the Supertrend line often act as significant support or resistance zones where price action may retest.
How to Use
Trend Identification: The primary use is trend following. Green indicates a bullish trend, while red indicates a bearish trend.
Support & Resistance: The horizontal "steps" of the Supertrend line serve as trailing stop-loss levels or dynamic support/resistance.
Multi-Timeframe Analysis: Use the settings to overlay a higher timeframe trend on a lower timeframe chart (e.g., viewing a Daily Supertrend on a 1-hour chart) to align your entries with the dominant trend.
Visual Examples
Below are examples of the indicator applied to various assets and timeframes, demonstrating its stability and the relevance of the returning levels.
Bitcoin (Daily): Capturing the major trend shifts with clear trailing levels.
Dow Jones (Daily): Demonstrating long-term trend stability.
EUR/USD (1-Hour): Intraday application showing reaction to dynamic levels.
ETH/USDT (Daily): Handling high volatility crypto markets.
Gold (15-Minute): Scalping perspective with tight trend adherence.
For Developers and Backtesters
This script is published as "Protected" to ensure the integrity of the logic while allowing users to utilize it freely. Professional developers and algorithmic traders will appreciate the non-repainting nature of this script, as it allows for reliable backtesting results that match live performance. If you are building automated systems, ensuring your source data does not repaint is the first step toward a viable strategy.
Disclaimer
This tool is for informational purposes only. Past performance DOES NOT guarantee future results. Always manage your risk appropriately.
AlphaStrike: Zen ModeDescription:
1. The Philosophy: Reducing Cognitive Load Modern charts are often cluttered with dozens of noisy lines (Bollinger Bands, Moving Averages, Oscillators) that lead to "Analysis Paralysis." This script is designed with a "Zen" philosophy: P rocess the complexity in the background, but display only the decision.
This is not a simple indicator overlay. It is a Risk-Based Trading Engine that runs multiple validation checks (Momentum, Volatility, and Price Action) simultaneously but hides the underlying calculations to keep the chart clean. It focuses the trader's attention on the two things that matter most: Trend Direction and Position Sizing.
2. The "Invisible" Technical Engine The script operates on a Dual-State Logic system that adapts to market conditions. It uses standard indicators as filters, not just visuals.
A. Trend State (The Backbone) The script calculates a volatility-adjusted Trend Baseline (SuperTrend).
Green State: The market is in a markup phase. The script looks for continuation.
Red State: The market is in a markdown phase. The script looks for defense.
B. The "Confluence" Reversal Logic Instead of cluttering the screen with Bollinger Bands and RSI windows, the script performs these checks internally:
Condition 1 (Volatility): Is price extending beyond the 2.0 Standard Deviation (Bollinger Lower/Upper)?
Condition 2 (Momentum): Is RSI overextended (<35 or >65)?
Condition 3 (Price Action): Is there a specific Pin Bar candle pattern (Long wick rejection)?
Result: Only when all three conditions align does the script print a "Reversal Circle." This filters out weak signals that usually occur in strong trends.
3. The Risk Management Calculator (Key Feature) Most traders fail not because of bad entries, but because of inconsistent sizing. This script features a built-in Dynamic Position Sizing Dashboard located in the bottom right.
Adaptive Stop Loss:
In a Trend: The Stop Loss is automatically set to the Trend Line (SuperTrend).
In a Reversal: The script internally scans for the nearest Swing Low/High (using hidden Pivot calculations) and sets the Stop Loss there.
Position Sizing Math: The dashboard reads your Account Size and Risk % inputs. It instantly calculates the "Max Size" (contract/share amount) allowed for the current trade.
Formula: Position Size = (Account Value * Risk %) / Distance to Stop.
Benefit: This ensures you risk the exact same dollar amount on every trade, whether the stop loss is 1% away or 10% away.
4. How to Read the Signals
Triangles (Breakouts): These represent a shift in the dominant trend direction.
Green Triangle: Bullish Trend Start.
Red Triangle: Bearish Trend Start.
Circles (Mean Reversion): These are high-probability counter-trend plays.
Blue Circle: Buy Reversal (Oversold + Pinbar + Bollinger Support).
Orange Circle: Sell Reversal (Overbought + Pinbar + Bollinger Resistance).
5. Settings
Trend Settings: Adjust the ATR Period and Factor to change the sensitivity of the trend line.
Reversal Settings: Tweak the RSI and Bollinger thresholds to filter out more/less signals.
Risk Management: Input your total Account Size and desired Risk Per Trade (e.g., 1%) to calibrate the Dashboard.
Disclaimer This tool provides algorithmic analysis and risk calculations. It does not guarantee profits or provide financial advice. Always verify position sizes before executing.
Hybrid ST/EMA Cloud + Trend TableSimilar to the hybrid supertrend with trend table, this version adds some EMA preferences
QSS v15.0 [Omni-Engine]# **QSS v15.0 | Institutional Quant System**
### **💎 The Only Indicator You Will Ever Need**
**QSS (Quantitative Signal System) v15.0** is an all-in-one algorithmic trading engine designed to solve the biggest problem in trading: **fragmentation.** Instead of cluttering your chart with 10 different indicators (RSI, MACD, Bollinger Bands, Order Blocks, SuperTrend, etc.), QSS synthesizes them all into a single, high-probability decision engine.
This is not just a "Buy/Sell" indicator. It is a complete **Institutional Trading Suite** that combines "Smart Money Concepts" (SMC) with quantitative trend analysis and dynamic risk management.
---
### **🚀 Key Features**
#### **1. Dual-Core Signal Engine**
Choose your weapon based on the asset class and volatility:
* **Engine A: SuperTrend (Classic):** The industry standard for capturing major trends. Best for Swing Trading and Stocks.
* **Engine B: OTT (Optimized Trend Tracker):** A faster, volatility-adaptive engine derived from VIDYA (Variable Index Dynamic Average). Best for Crypto and Scalping.
#### **2. Institutional Intelligence (SMC)**
* **Volumized Order Blocks (SMC):** Automatically detects Supply (Red Box) and Demand (Green Box) zones based on pivot volume.
* *Smart Filter:* The system will **BLOCK** Buy signals if price is running straight into a Bearish Order Block (Resistance).
* **Koncorde (Smart Money Flow):** Analyzes PVI (Positive Volume Index) vs. NVI (Negative Volume Index) to track "Sharks" (Institutions) vs. "Minnows" (Retail).
* *Smart Filter:* Signals are only generated if Institutional Money Flow supports the direction.
#### **3. The "Power 3" Confirmation Suite**
Includes optional filters for the classic trinity of technical analysis:
* **MACD:** Ensures momentum alignment.
* **Stochastic:** Prevents buying at overbought peaks.
* **Bollinger Bands:** Ensures trades only occur during volatility expansion (Squeeze breakout).
#### **4. Advanced Noise Filtering**
* **ADX Trend Strength:** Blocks signals during "dead" or choppy markets (ADX < 20).
* **Candle Stability Index:** Ignores "wicky" candles and indecision dojis, preventing fake-outs.
* **Trend Ribbon:** A dual-SMA cloud (21/34) that ensures you are always on the right side of the macro trend.
#### **5. Dynamic Risk Management (R:R)**
* Automatically calculates **Stop Loss** and **Take Profit** targets based on market volatility (ATR).
* **TP1 (1:1):** Secure profit / Move stops to breakeven.
* **TP2 (1:2):** Standard target.
* **TP3 (1:3):** Trend runner.
* *Visuals:* Draws clear entry, stop, and target lines on the chart when a trade is active.
#### **6. Pro Dashboard**
A dynamic panel that monitors:
* **Trend Status:** (Bullish/Bearish)
* **Market State:** (Trending/Parabolic/Ranging)
* **Smart Money:** (Accumulating/Distributing)
* **Live Trade Data:** Real-time entry price and targets when a position is open.
---
### **🛠️ Settings Guide**
**🔥 SIGNAL ENGINE**
* **Strategy Engine:** Toggle between `SuperTrend` (Safe) or `OTT` (Fast).
**🧱 ORDER BLOCK FILTER**
* **Respect Order Blocks:** If checked, the system will not Buy into Resistance or Sell into Support.
* **Show OB Zones:** Toggles the visible Red/Green boxes on the chart.
**📊 QUANT FILTERS**
* **Smart Money (Sharks):** Requires Volume data. Filters out "Retail Traps."
* **ADX (Trend Strength):** Set to `20` for standard filtering. Set to `15` for aggressive scalping.
* **Candle Stability:** Filters out candles with long wicks. Essential for volatile Altcoins.
**📈 CLASSIC INDICATORS**
* **MACD / Stoch / BB:** Enable these if you want strict confluence. (Note: Enabling all will result in fewer, but higher precision signals).
**🛡️ RISK MANAGEMENT**
* **ATR Length:** Sensitivity of the volatility calculation.
* **SL Multiplier:** Distance of Stop Loss (Default 2.0x ATR for Crypto).
* **TP Multipliers:** Adjust your Risk:Reward ratios here.
---
### **💡 How to Trade with QSS v15**
1. **The Setup:**
* Wait for a **"BUY"** or **"SELL"** label to appear.
* Ensure the **Trend Ribbon** (Cloud) matches the signal color.
* Check the **Dashboard**: Ensure "Smart Money" is in your favor (Accumulation for Buys).
2. **The Execution:**
* Enter at the **Entry Price** shown on the chart.
* Place your Stop Loss at the **Red Line**.
* Take partial profits at the **Blue Dotted Lines** (TP1/TP2).
3. **Troubleshooting (Debug Mode):**
* If you see the SuperTrend/OTT flip colors but **NO signal** appears, turn on **"🔧 Debug Mode"** in the settings.
* Grey labels will appear on the chart explaining exactly *why* the trade was rejected (e.g., "⛔ REJECTED: Hitting OB Resistance" or "⛔ REJECTED: Low ADX").
---
**Disclaimer:**
*This indicator is a tool for analysis, not financial advice. It combines multiple quantitative metrics to provide high-probability setups, but no system is 100% accurate. Always use proper risk management.*
**Credits:**
* OTT Logic based on Anıl Özekşi.
* Koncorde Logic based on Blai5.
* SMC Order Block logic adapted from FluxCharts concepts.
* Synthesized and Optimized by rayu8.
TrendMaster [Scalping-Algo]═══════════════════════════════════════════════════════════════
📈 TrendMaster
═══════════════════════════════════════════════════════════════
🔹 WHAT IS IT?
A smarter Supertrend that filters out fake signals in choppy markets.
No more whipsaws. No more overtrading. Just clean entries.
🔹 HOW IT WORKS
🟢 GREEN line below price = BULLISH (look for longs)
🔴 RED line above price = BEARISH (look for shorts)
Signals only appear when:
✓ ADX > 20 (market is trending)
✓ Minimum 5 bars since last signal (no rapid flips)
🔹 SETTINGS
| Setting | Default | Range |
|-------------|---------|------------|
| ATR Period | 12 | 10-14 |
| Factor | 3.0 | 2.5-3.5 |
| Min ADX | 20 | 15-25 |
| Min Bars | 5 | 3-8 |
Lower ADX = more signals (noisier)
Higher ADX = fewer signals (cleaner)
═══════════════════════════════════════════════════════════════
🎯 SCALPING STRATEGY
═══════════════════════════════════════════════════════════════
▶ LONG SETUP
1. Wait for 🟢 ▲ signal
2. Enter next candle
3. SL: Below green line
4. TP: 1.5-2R
▶ SHORT SETUP
1. Wait for 🔴 ▼ signal
2. Enter next candle
3. SL: Above red line
4. TP: 1.5-2R
═══════════════════════════════════════════════════════════════
💡 PRO TIPS
═══════════════════════════════════════════════════════════════
✅ DO:
• Use on 5m, 15m, 1H
• Trade with the trend
• Combine with S/R levels
• Risk 1% per trade
• Wait for clean signal
❌ DON'T:
• Trade flat markets
• Chase after big moves
• Ignore HTF trend
• Overtrade
═══════════════════════════════════════════════════════════════
⚡ QUICK REFERENCE
═══════════════════════════════════════════════════════════════
GREEN LINE = BUY ZONE | RED LINE = SELL ZONE
▲ = Long entry | ▼ = Short entry
Line = Stop loss | Line = Stop loss
════════════════════════════════════════════
👍 Like if useful
💬 Comment your results
🔔 Follow for more
Kalman Exponential SuperTrendThe Kalman Exponential SuperTrend is a new, smoother & superior version of the famous "SuperTrend". Using Kalman smoothing, a concept from the EMA (Exponential Moving Average), this script leverages the best out of each and combines it into a single indicator.
How does it work?
First, we need to calculate the Kalman smoothed source. This is a kind of complex calculation, so you need to study it if you want to know how it works precisely. It smooths the source of the SuperTrend, which helps us smooth the SuperTrend.
Then, we calculate "a" where:
n = user defined ATR length
a = 2/(n+1)
Now we calculate the ATR over "n" period. Classical calculation, nothing changed here.
Now we calculate the SuperTrend using the Kalman smoothed source & ATR where:
kalman = kalman smoothed source
ATR = Average True Range
m = Factor chosen by user.
Upper Band = kalman + ATR * m
Lower Band = kalman - ATR * m
Now we just smooth it a bit further using the "a" and a concept from the EMA.
u1 = Upper Band a bar ago
l1 = Lower Band a bar ago
u = Upper Band
l = Lower Band
Upper = u1 * (1-a) + u * a
Lower = l1 * (1-a) + u * a
When the classical (not Kalman) source crosses above the Upper, it indicates an uptrend. When it crosses below the Lower, it indicates a downtrend.
Methodology & Concepts
When I took a look at the classical SuperTrend => It was just far too slow, and if I made it faster it was noisy as hell. So I decided I would try to make up for it.
I tried the gaussian, bilateral filter, but then I tried kalman and that worked the best, so I added it. Now it was still too noisy and unconsistent, so I revisited my knowledge of concepts and picked the one from the EMA, and it kinda solved it.
In the core of the indicator, all it does is combine them in a really simple way, but if you go more deeply you see how it fits the puzzlé really well.
It is not about trying out random things´=> but about seeking what it is missing and trying to lessen its bad side.
That is the entire point of this indicator => Offer a unique approach to the SuperTrend type, that lessen the bad sides of it.
I also added different plotting types, this is so everyone can find their favorite
Enjoy Gs!
Thanks @BackQuant for making a open source Kalman code <3
Adaptive MA SuperTrend 3.0The Adaptive MA SuperTrend 3.0 is a 3rd Generation of the SuperTrend indicator focused on improving accuracy while maintaining high speeds to capture ANY trend the market has to offer and allow investors/traders from beginner to advanced and beyond to gain a unique insight on what is happening with the markets.
How does it work?
The indicator uses a Moving Average as a base for the SuperTrend and adapts it to market environments.
It uses averages to find if short-term, medium-term or long-term have the highest avg. volume/ATR/Standard Deviation. Whichever period has the highest avg. is the length that will be used for the moving average.
Then it smooths it slightly to give a smoother result to finish the job.
That leaves us with high speed & accurate signals that adapt to any environment.
Enjoy!
Adaptive MA SuperTrend 2.0The Adaptive MA SuperTrend 2.0 is a new cutting edge SuperTrend that adapts to the environment and provides users with fast, smooth signals that can enhance the strategies of any user.
How does it work?
This indicator combines the classic ATR with Moving Average of users choice, and filters the data. It uses a condition, that flips the Moving Average between the past and current value, adapting and trying to enhance the accuracy of the indicator
Adaptive MA SuperTrendAdaptive MA SuperTrend is a new trend following tool designed for more responsive & smoother signal production from the classical SuperTrend indicator.
It works by picking two Moving Averages, that are swapped in their function between being used for the upper base or the lower base, based on the circumstances.
Then it applies either SD or ATR (based on the users preference) to the bases.
This provides smooth, fast trend signals that users can use to enhance their trading/investing strategies.
Enjoy!
Adaptive Bull Ratio Strategy█ Overview: Why This Strategy
Most option strategies fall into two traps:
They are too rigid: A "Call Ratio Spread" works great in slow markets but gets destroyed if the market rallies hard.
They are too simple: A simple "Buy Call" suffers from time decay (Theta) if the market chops sideways.
The Adaptive Bull Ratio Strategy solves both . It is a living strategy that "shifts gears" based on price action.
It is called "Adaptive" because it morphs its structure three times during a trade. It starts conservative to harvest Time Decay, but if the market explodes upwards, it "uncaps" itself to ride the trend aggressively.
█ The Entry Philosophy: Why Supertrend?
The default setting uses the Supertrend indicator as the trigger. This is intentional:
Volatility Awareness: Supertrend adapts to market noise using ATR. In high volatility, bands widen to prevent false entries.
Trend Confirmation: Since Phase 1 involves selling options, entering "too early" against a falling market is dangerous. Supertrend forces patience, waiting for a confirmed reversal (Close > Trend Line), ensuring the momentum is actually in your favor before you commit capital.
The "Drift" Benefit: This strategy excels in markets that "drift" upwards. Supertrend identifies these trends while filtering out short-term chop.
Flexibility with External Sources:
While Supertrend is the default, the strategy is designed to be flexible. You can enable the 'Enable External Source' option in the settings to plug in any custom indicator (e.g., Moving Averages, Parabolic SAR, or a proprietary trendline).
The Golden Rule for External Sources: The script interprets a Bullish Signal whenever your External Source line is below the Close price (Ext Source < Close).
Compatibility: As long as your custom indicator behaves like a support line in an uptrend (plotting below the candles), it will work seamlessly with this strategy's logic.
█ The "Long Only" Rationale: Avoiding the Volatility Trap
Why not trade this on the short side (Puts) during crashes?
The Volatility Trap (Vega Risk): In Bull markets, Implied Volatility (IV) usually drops, helping your sold options decay faster. In Bear markets, IV explodes (panic). Selling OTM Puts during a crash is dangerous as their value skyrockets, neutralizing gains.
Velocity Risk: Bear markets crash fast ("Elevator Down"). Prices can blow through adjustment levels faster than the strategy can safely roll down, causing slippage.
Structural Skew: OTM Puts are inherently more expensive. Buying expensive ITM Puts and selling expensive OTM Puts shifts the breakeven further away, making V-shape recoveries painful.
█ How It Works & Stands Out
This strategy actively transforms risk profiles based on market movement:
Phase 1: The "Safe" Start (Entry)
Setup: Initiates a Call Ratio Spread (Buy 2 ITM, Sell 4 OTM) + Protective Puts.
Logic: Profits from sideways drift or slow rallies via Time Decay (Theta). The sold options finance the trade.
Phase 2: The "Shift" (Adjustment Level 1)
Trigger: Market moves above Leg 2 (3 OTM Call).
Action: Rolls Up the position. Exits initial legs, enters new higher legs, and adds a Short Put to finance the roll.
Impact: Aggressive. You bet the trend is strong enough to support the added downside risk of the short put.
Phase 3: The "Uncap" (Adjustment Level 2)
Trigger: Market moves above Leg 3 (4 OTM Call).
Action: Exits all Sold Calls.
Impact: Uncaps profit potential. The trade becomes a Net Long position (Long Calls + Short Puts), allowing you to ride a massive rally without a ceiling.
Phase 4: The "Lock-In" (Optional Trail Adjustment)
Trigger: The market goes parabolic (price rises X levels above Leg 3, configurable in settings).
Action (If Enabled):
Call Adj: Exits the Phase 3 calls and buys fresh 1-OTM calls (Rolling Up to lock profits).
Put Adj: Exits all Put legs (Removing downside risk completely).
Impact: Maximum Safety. This phase is about "banking" the windfall from a massive rally and leaving a smaller, risk-free runner to capture any final extension.
█ How to Start: A Quick Setup Guide
Step 1: Map Expiry Dates
Manually input your trading expiry dates in Settings -> Expiry Management.
Format: YYYY-MM-DD (e.g., 2025-12-25). Strict adherence required for DhanHQ.
Step 2: Configure Symbol & Size
Exchange/Symbol: Enter NSE and NIFTY (or your ticker).
Lot Multiplier: Default is 1. Set to 2 to double all quantities (e.g., Buy 2 becomes Buy 4).
Step 3: Understand Visuals
Entry Window (Light Blue): Strategy is scanning for new trades.
Non-Entry Window (Dark Blue): Trading blocked (Day before Expiry & Expiry Day). Only management allowed.
Green Box: Valid Late Entry Zone.
Red Dashed Line: Invalidation Level (if price touches this, no late entry).
Fuchsia Line: Trigger level for Special Trail Adjustments (Phase 4).
IMPORTANT: Broker & Technology Heads-Up:
The alerts generated by this script ({"secret": "...", "alertType": "multi_leg_order"...}) are specifically formatted for the DhanHQ webhook structure.
Dhan Users: Plug-and-play.
Other Brokers: You need middleware (NextLevelBot, Quantiply) to parse the JSON.
█ Risk Disclaimer & Advice
Trading options involves substantial risk.
The Whipsaw Risk: In Phase 2, you are Long Calls and Short Puts. A sharp reversal causes losses on both sides.
Margin: Selling options requires significant margin. Keep a 15-20% cash buffer to handle adjustments instantly.
Testing: This strategy is optimized for NIFTY Weekly Options. Effectiveness on BankNifty or Stocks is untested and may require parameter tuning.
Advice:
Backtest: Use TradingView Replay.
Paper Trade: Run for at least one expiry cycle before live deployment.
Consult: Seek professional financial advice before trading.
Practical Tips for Smooth Execution
For a new trader deploying this system, these operational tips are vital:
Capital Buffer: Do not trade at your limit. Always keep 10-15% free cash in your broker account. Adjustments (specifically Phase 2, where you sell an extra Put) require additional margin instantly. If margin is short, the order fails, and your hedge breaks.
Liquidity Awareness : The script trades "Far Deep OTM" options (Leg 4) to reduce margin. On indices like Nifty/BankNifty, this is fine. On individual stocks, these deep strikes might be illiquid. Check the option chain volume before deploying on stocks.
Trust the Process (but Verify) : While the algo drives, you are the pilot.
Check your API connection every morning.
Ensure the "Entry Window" background color on the chart matches your real-world date.
Verify that your broker executed all legs of a multi-leg order (partial fills are rare but possible).
The "Human" Stop: If major news breaks (e.g., unexpected election results, war announcements), volatility can expand faster than any algo can react. It is acceptable—and smart—to pause the strategy during known "Black Swan" events or earnings releases.
█ Timeframe Selection: The 30-Minute Standard
Critical Requirement: This indicator must be applied to a 30-minute chart.
Why?
Noise Filtering: The Supertrend logic is tuned to capture multi-day trends. Lower timeframes (5m, 15m) are full of "noise"—random fluctuations that look like trend changes but aren't.
Execution Logic (The Hybrid Engine): The script has a built-in "Dual Timeframe" architecture.
Decision Layer (30m): Uses the chart timeframe to decide when to be Bullish or Bearish.
Execution Layer (5m): Internally fetches 5-minute data to manage the how (Adjustments, Late Entries, and precise invalidation).
The Risk of Lower Timeframes: If you run the main chart on 5-minutes, you destroy this hierarchy. You will get too many signals, pay too much brokerage, and the internal logic may behave erratically.
Recommendation: Always keep your TradingView chart interval at 30m. Do not switch to lower timeframes expecting "faster" signals; you will likely just get "false" signals.
█ Testing Scope, Feedback
⚠️ Important Note on Asset Classes:
This strategy logic and the associated strike step calculations have been rigorously tested ONLY on NIFTY Index Options with Weekly Expiry.
BankNifty / Sensex / FinNifty: The volatility characteristics (ATR) and strike intervals of these instruments differ significantly from NIFTY. The effectiveness of this strategy on these other scripts has not been verified and may require different parameter tuning (e.g., strike_step or ATR Length).
Stocks: Individual stock options often lack the liquidity required for the "Deep OTM" legs, leading to potential execution failures.
We encourage traders to backtest this logic on other indices and share their findings! If you find a robust parameter set for BankNifty or observe unique behaviors on other scripts, please let us know in the comments below so we can improve the algorithm for everyone. Your feedback is appriciated.
Hybrid Super Trend & Trend Tablea combination of 3 supertrends into 1 trend line, plus 2 ema lines and a timeframe trend table.
Apex Adaptive TrailApex Adaptive Trail: Adaptive Volatility Trend System
This custom trend-following indicator improves on standard SuperTrend implementations by addressing two key weaknesses: excessive whipsaws during high volatility and false signals in ranging markets.
Core Logic:
- Synthetic Heikin Ashi values are calculated internally (without changing chart candles) to provide smoother source data for trend detection.
- ATR-based trailing stop with adaptive multiplier: dynamically adjusts between 0.8x and 1.5x the base factor based on current volatility (ATR / 50-period SMA of ATR). Widens in volatile conditions, tightens in quiet markets.
- Weighted Confluence Score (0-100%): Combines four independent filters, each contributing 25%:
• Price position relative to 21-period EMA (trend alignment)
• ADX > 20 (momentum strength)
• Choppiness Index < 60 (trending vs ranging detection)
• Alignment with Daily EMA(50) trend direction
Signals are only generated when price crosses the adaptive trail AND the confluence score exceeds 75% (standard) or 90% (MAX 🔥 ultra-strong). This combination significantly reduces low-quality entries compared to traditional SuperTrend crossovers.
Key Features:
- Dynamic confidence cloud (opacity based on score)
- Real-time dashboard showing volatility state, active filters, trend bias, and estimated historical win rate
- Optional dynamic/fixed profit targets
- Fully customizable filters and adaptive behavior
Usage: Best on 15m to 4H timeframes for trend-following strategies (Crypto, Forex, Indices). Enter on APEX signals, use trail as stop-loss, TP lines for partial exits.
This script integrates established concepts into a unique adaptive framework with volatility-responsive risk management and multi-filter validation.
Disclaimer: For educational and analysis purposes only. Past performance is not indicative of future results. Always use proper risk management.
"This script combines established indicators (ATR trailing, ADX, Choppiness Index, EMA, MTF) into a unique adaptive system with dynamic volatility adjustment and weighted confluence scoring – features not found together in standard SuperTrend variations."
Supertrend BUY Only - Optimized for Gold M15 TimeframeOverview
The Supertrend BUY Only - Production Optimized is a high-performance trend-following indicator specifically tuned for XAUUSD (Gold) on the 15-minute timeframe. Unlike standard Supertrend scripts, this version focuses exclusively on bullish cycles to align with long-term upward bias and uses parameters discovered through deep data analysis of over 20,000 bars of historical market data.
Key Features
Data-Optimized Parameters: Defaults are set to ATR Period 7 and Multiplier 2.1, which backtesting has shown to provide a superior balance between sensitivity and noise reduction for Gold.
Production-Ready Alerts: Includes built-in alertcondition triggers for both BUY (Trend Flip) and STOP BUY (Trend Exit), complete with dynamic messages that include price and interval.
Trailing Support Band: Uses a trailing logic that locks in support levels during upward moves, preventing the band from dropping until the trend officially reverses.
Clean Visuals: Focuses on chart clarity by only plotting the support line during active uptrends and utilizing clean shape labels for entries and exits.
How to Use
Entry (BUY): When the Supertrend line flips from Red to Green and a "BUY" label appears. This indicates bullish momentum has overcome recent volatility.
Exit (STOP BUY): When the price closes below the Green support line. The indicator will plot a red "X" and clear the green background.
Setting Alerts: * Click the Alerts icon in TradingView.
Select this indicator under "Condition."
Choose "BUY Signal" for entries and "STOP BUY / EXIT" for managing your trade or taking profit.
Technical Details
The script allows users to toggle between the TradingView (RMA) ATR calculation and the Standard (SMA) method. For production and live trading, the RMA method is recommended as it provides a smoother response to volatility spikes common in the Gold market.
Triple Supertrend Strategy [Running]Triple Supertrend Trend Follower
Overview
The Triple Supertrend Trend Follower is a robust trend-following strategy designed to capture significant market upswings while filtering out noise and sideways choppy markets. By leveraging the confluence of three distinct Supertrend indicators with varying sensitivities , this strategy ensures that Long positions are only entered when the trend is confirmed across multiple volatility baselines.
Unlike simple moving average strategies, this script features an Advanced Money Management System. It dynamically calculates position sizing based on a fixed risk percentage per trade relative to your account equity, ensuring consistent risk control. Furthermore, it utilizes a unique Median Line trailing stop mechanism to prevent premature stop-outs caused by market whipsaws.
Unique Features
* Triple Confirmation Logic: Filters false signals by requiring alignment of three Supertrend indicators (Fast, Medium, Slow).
* Dynamic Median Trailing Stop: Instead of using the tightest stop-loss level, the strategy calculates the median value of the three Supertrends. This provides a breathing room buffer for the price, significantly reducing the chance of being stopped out by temporary wicks (whipsaws).
* Professional Money Management: Users can define a fixed Risk Percentage (e.g., 2%) per trade. The script automatically calculates the exact position size based on the distance to the stop-loss.
* Safety Mechanism (Max Leverage): Includes a Max Leverage Limit feature to prevent order rejections or excessive exposure when the stop-loss is extremely tight.
* Intra-bar Execution: Stops are executed immediately when the price touches the level, not waiting for the candle close.
Methodology
The strategy operates on a logical flow designed to maximize trend participation:
1. Trend Identification: The script calculates three Supertrend lines using the same ATR period (Default: 10) but different multipliers (Factors: 1, 2, and 3).
2. Entry Condition: A Long position is opened only when all three Supertrends are Green (Bullish). This indicates strong momentum across short, medium, and long-term volatility ranges.
3. Stop-Loss Placement: The Stop Loss is set at the Median value of the three Supertrend lines. This acts as a dynamic trailing stop that moves up with the price.
4. Position Sizing: Before entry, the script calculates the entry quantity based on Account Equity, Risk %, and the distance between Current Close and the Stop Level. If the calculated quantity exceeds the user-defined Max Leverage, it is capped to ensure safety.
5. Exit Logic: The position is held as long as the price remains above the median Supertrend line. If the price touches this line, the position is immediately liquidated.
Justification of Methodology
Why use three Supertrends? A single Supertrend often generates false signals in ranging markets. By requiring a Factor 1 (Fast), Factor 2 (Medium), and Factor 3 (Slow) alignment, the strategy filters out weak trends.
The Median Stop Loss Advantage:
In aggressive trends, the Factor 1 Supertrend hugs the price very tightly. Using this as a stop loss often results in exiting a massive trend too early due to a single volatility spike. By using the Median (Factor 2 equivalent in most cases) as the stop loss, the strategy allows for natural market retracements without losing the position, aiming to ride the trend until a structural break occurs.
Risk Management:
The most critical part of trading is capital preservation. This strategy does not use fixed lot sizes. Whether the stop loss is 1% away or 10% away, you will risk the same percentage of your account (e.g., 2%). This stabilizes the equity curve and allows for geometric compounding.
Strategy Settings
Users can fully customize the strategy via the inputs menu:
* Money Management: Risk % per Trade (Default: 2.0%) and Max Leverage (Default: 5x).
* Supertrend Settings: Adjust the ATR Period and Factor for all three Supertrends to fit different assets (Crypto, Forex, Stocks).
Disclaimer
This script is for educational purposes only. Past performance does not guarantee future results. The built-in money management and leverage settings should be tested in a simulated environment before being used with real capital. Always consider slippage and commission fees.
---------------------------------------------------------------------------------------------------------------------
트리플 슈퍼트렌드 & 자금 관리 전략 (Triple Supertrend Trend Follower)
개요 이 전략은 3개의 서로 다른 슈퍼트렌드 지표를 결합하여 신뢰도 높은 상승 추세를 포착하는 전략입니다. 횡보장에서 발생하는 잦은 손실을 줄이고, 강력한 추세가 발생했을 때 끝까지 수익을 가져가는 것을 목표로 합니다. 특히 전문 트레이더들이 사용하는 리크스 퍼센트 기반 자금 관리 시스템이 탑재되어 있어 안전한 자산 운용을 돕습니다.
주요 특징
3중 필터 시스템: 단기, 중기, 장기 성향의 슈퍼트렌드가 모두 상승을 가리킬 때만 매수하여 승률을 높입니다.
여유 있는 손절 라인(중간값): 가장 타이트한 손절선을 쓰지 않고, 3개의 선 중 중간값을 손절 기준으로 사용합니다. 덕분에 일시적인 가격 흔들림(휩소)에 쉽게 털리지 않고 추세를 길게 가져갈 수 있습니다.
자동 자금 관리: 손절 거리에 따라 매수 수량을 자동으로 계산합니다. 손절이 멀면 적게 사고, 가까우면 많이 사서 항상 내 시드의 일정 비율(기본 2%)만 리스크에 노출시킵니다.
레버리지 안전장치: 손절이 너무 가까워 레버리지가 과도하게 높아지는 것을 방지하기 위해 최대 레버리지 제한 기능이 포함되어 있습니다.
매매 방법
진입: 3개의 슈퍼트렌드가 모두 초록색(상승)일 때 롱 포지션에 진입합니다.
손절 및 청산: 가격이 실시간으로 슈퍼트렌드의 중간값 라인을 건드리면 즉시 청산합니다(종가 마감 대기 아님). 별도의 익절 목표가는 없으며 추세가 꺾일 때까지 포지션을 유지합니다.
설정 가이드 전략 설정 메뉴에서 다음 항목을 자유롭게 변경할 수 있습니다.
자금 관리: 1회 거래당 감수할 리스크 비율(Risk %), 최대 허용 레버리지(Max Leverage)
슈퍼트렌드: 각 3개 라인의 ATR 기간과 계수(Factor)
주의사항 이 스크립트는 교육 및 참고용입니다. 과거의 수익이 미래를 보장하지 않습니다. 실전 매매 전 반드시 모의 투자를 통해 충분히 검증하시기 바랍니다.






















