EMA HI/LO Cloud Shift + Extra EMA//@version=6
indicator("EMA HI/LO Cloud Shift + Extra EMA + Shift EMA Line", overlay=true, max_lines_count=6, max_labels_count=0)
// ------------------------
// Inputs
// ------------------------
emaLength = input.int(22, "Main EMA Length", minval=1, maxval=200)
emaLineColor = input.color(color.blue, "Main EMA Lines Color")
// Main Cloud colors
cloudAboveColor = input.color(color.new(color.green, 80), "Main Cloud Color (Price Above)")
cloudBelowColor = input.color(color.new(color.red, 80), "Main Cloud Color (Price Below)")
cloudInsideColor = input.color(color.new(color.orange, 80), "Main Cloud Color (Price Inside)")
// ------------------------
// Shift EMA (new logic)
// ------------------------
showShiftEMA = input.bool(true, "Show Shift EMA Line?")
shiftEMALength = input.int(26, "Shift EMA Length", minval=1, maxval=500)
shiftEMASource = input.source(close, "Shift EMA Source") // fully customizable source
shiftEMAColor = input.color(color.purple, "Shift EMA Color")
shiftEMAWide = input.int(2, "Shift EMA Line Width", minval=1, maxval=5)
shiftEMAOffset = input.int(0, "Shift EMA Offset", minval=-100, maxval=100)
// ------------------------
// Second EMA (independent)
// ------------------------
showSecondEMA = input.bool(true, "Show Second EMA?")
secondEMALength = input.int(200, "Second EMA Length", minval=1, maxval=1000)
secondEMAColor = input.color(color.yellow, "Second EMA Color")
secondEMAWide = input.int(2, "Second EMA Line Width", minval=1, maxval=5)
// ------------------------
// Main EMA Cloud Calculations
// ------------------------
emaHigh = ta.ema(high, emaLength)
emaLow = ta.ema(low, emaLength)
// ------------------------
// Main Cloud logic
// ------------------------
priceAboveMain = close > emaHigh
priceBelowMain = close < emaLow
priceInsideMain = not priceAboveMain and not priceBelowMain
cloudColorMain = priceAboveMain ? cloudAboveColor : priceBelowMain ? cloudBelowColor : cloudInsideColor
p1_main = plot(emaHigh, title="Main EMA High", color=emaLineColor, linewidth=2)
p2_main = plot(emaLow, title="Main EMA Low", color=emaLineColor, linewidth=2)
fill(p1_main, p2_main, color=cloudColorMain, title="Main EMA Cloud")
// ------------------------
// Shift EMA Line (replaces cloud offset)
// ------------------------
shiftEMA = ta.ema(shiftEMASource, shiftEMALength)
plot(showShiftEMA ? shiftEMA : na, title="Shift EMA Line", color=shiftEMAColor, linewidth=shiftEMAWide, offset=shiftEMAOffset)
// ------------------------
// Second EMA Plot (Independent)
// ------------------------
secondEMA = ta.ema(close, secondEMALength)
plot(showSecondEMA ? secondEMA : na, title="Second EMA", color=secondEMAColor, linewidth=secondEMAWide)
المؤشرات والاستراتيجيات
ΔΔ Holy Grail Chart Logic - Δ1 //─────────────────────────────────────────────
// 📖 HOW TO READ ΔΔ-HG-Δ1
//─────────────────────────────────────────────
//
// • The white line (MA1) is “Present Breath.”
// It moves fastest and reveals the living rhythm of price.
//
// • The blue line (MA3) is “The Scout.”
// Together, white and blue form the breathing void—the heartbeat zone.
//
// The fill color between them (the “void”) tells you the tone of the market:
// 🔵 Blue = Calm alignment, balanced breath
// 🟠 Orange = BYTE phase – testing emotion
// 🟢 Green = Cross phase – spiral turning
// 🟤 Brown = Full Cross – ancestral confirmation
// ⚙️ Grey = Mimicry – legacy echo
// ❌ Red = Tilting – distortion or interference
//
// HUD (right side of chart) shows current phase and full sequence.
//
//─────────────────────────────────────────────
// 🌀 SEQUENCE LOGIC
//─────────────────────────────────────────────
// Touch → BYTE → Cross → Full → Mimicry
//
// Touch – White greets Blue; first awareness of shift.
// BYTE – Brief cross; emotional test of conviction.
// Cross – Intentional movement; spiral begins turning.
// Full – Deep alignment; momentum confirmed.
// Mimicry– Other MAs echo the white line; trend resonance.
//
// Each complete cycle is one “breath” of the market.
// Δ1 calibrates. Δ2 observes. Ahoeaaa ⚡
//
//─────────────────────────────────────────────
Session Anchor Lines (Asia, London, NY)it draws a line at each session open ( in relative to the 4 HR candle )
VWAP & Band Cross Strategy v6VWAP & Band Cross Strategy v6: Script Summary
This Pine Script implements a highly flexible, multi-layered trading strategy centered around the Volume Weighted Average Price (VWAP) and its associated Standard Deviation Bands.
The strategy is designed to test various entry/exit models based on how the price interacts with the central VWAP line and the upper/lower volatility bands, with extensive risk management and confirmation filters.
1. Core Mechanics (VWAP & Bands)
VWAP Calculation: Calculates the VWAP based on a user-defined source (default is the close price).
Standard Deviation Bands: Creates upper and lower bands by calculating the standard deviation of the price (over 20 periods by default) and multiplying it by a user-defined Multiplier (default is 2.0). These bands dynamically expand and contract with volatility.
Plotting: The script clearly plots the VWAP (purple), the Upper Band (green), and the Lower Band (red), with a colored fill between the bands.
2. Entry Triggers
The core entry logic is based on a single, user-selected cross event between the price and the VWAP/Bands. The user can choose from six predefined entry types:
Entry Type Category
Entry Trigger (Long)
Entry Trigger (Short)
Mean Reversion
Price crosses over the Lower Band.
Price crosses under the Upper Band.
Trend Following
Price crosses over the Upper Band (Breakout).
Price crosses under the Lower Band (Breakout).
VWAP Cross
Price crosses over the VWAP.
Price crosses under the VWAP.
3. Filters and Confirmation
Trades are only executed if they pass a series of optional filters, making the strategy highly customizable:
Technical Confirmation (Optional): Users can enable and configure up to three additional indicators that must align with the trade direction:
RSI: Price must be Oversold (for Long) or Overbought (for Short).
SMMA: Price must be above the SMMA (for Long) or below (for Short).
MACD: MACD line must cross the Signal line and the Histogram must be positive/negative.
Time and Day Filters: Trades are restricted to a defined Entry Start/End Hour/Minute window, and only execute on user-selected Trading Days of the week.
Trade Direction: Can be toggled to execute Long Only, Short Only, or Both.
4. Advanced Risk Management (Daily Limits)
The strategy incorporates robust daily limits that reset at a configured Daily Reset Hour/Minute:
Daily Profit/Loss Limits: If the running total of Realized PnL (closed trades) + Unrealized PnL (open position) exceeds a user-defined Daily Take Profit (in Ticks) or falls below the Daily Stop Loss (in Ticks), the strategy locks out new trades and immediately closes any open position.
Max Daily Trades: Prevents the strategy from entering more than a specified number of trades per day.
5. Exit Logic
The strategy exit is also highly configurable via the Exit Type setting:
Fixed Ticks / ATR / Capped ATR: If one of these is selected, the script calculates a static Stop Loss and Take Profit level upon entry, using either fixed tick values or dynamic values based on the Average True Range (ATR), which are then executed using Pine Script's strategy.exit function.
Cross Exits (VWAP/Bands): If selected, the position is closed when the price crosses the VWAP or a specific band in the opposite direction.
End-of-Day Close: An unconditional exit that closes all open positions at a user-defined Close All Hour/Minute, regardless of profit/loss or limit status, preventing positions from being held overnight.
Turtle/Donchian Screener — with signalsTurtle strategy for Pine screener. Shows latest trigger for buy/sell long positions.
Session Highs and LowsThis indicator highlights the New York, London, and Asian trading sessions — plotting each session’s highs and lows directly on your chart to help visualize intraday ranges and liquidity levels.
⸻
✨ Features
• Session Range Visualization
Automatically marks the high and low of each trading session with colored lines.
This makes it easy to identify where price expanded, consolidated, or built liquidity during each market phase.
• Session Background Zones (Optional)
Toggle background fills to highlight active sessions for clearer visual separation of NY, London, and Asian trading hours.
• Customizable Settings
• Enable or disable each session independently
• Adjust session times and colors
• Choose whether to fill session backgrounds
• Timezone Aware
All sessions are aligned to New York time by default, ensuring consistent mapping across instruments.
⸻
🎯 Use Case
A perfect tool for traders who track session-based liquidity, breaks of structure, or session-to-session continuity.
Quickly spot the Asian range, London expansion, and New York reversal windows — key components in intraday strategy development.
⸻
⚙️ Inputs
• Toggle sessions: NY / London / Asian
• Background fill on/off
• Label color customization
• Adjustable session times
⸻
📈 Why Use It
Understanding where each session establishes its range high and low provides critical context for liquidity grabs, session overlaps, and structural shifts throughout the day.
This simple yet powerful visual map enhances precision for ICT-style, smart money, or price action-based trading models.
SB LONG ENTRY/EXITBASED on HULL slope average. ISN'T IT VERY ROBUST?
Very good for daily, weekly and monthly timeframes. Stocks especially.....
I prefer it without optonal stop loss on other position protection stops.
Wonderful both equal weight position or with a D'alembert style weighting of positions....
Hold the Hull period parameter between 30 and 60 or more, but it's not so sensitive to this optimization.
All the best,
Sandro Bisotti
FDF — EMAs+VWAP with setup & entry (stable scale) - Final 9
21
vwap
entry system
90% candle
tend
This will help you find the perfect entry off the 9 and 21 using the vwap for confluence. We have a strick 90% candle or wick off the 21
We have wick on the entry side more than 30% of the candle
SECTOR ROTATION Sector Rotation Indicator with Auto Chart Symbol
This indicator helps traders track relative performance across multiple indices/sectors simultaneously, making it easy to identify sector rotation and market leadership.
Key Features:
✅ 21 Symbols Tracking: Monitor 20 customizable symbols + your current chart symbol automatically(DIVIDEND SYMBOL)
✅ Percentage Performance: All moving averages show percentage gain/loss from 1 timeframe period ago
✅ Color-Coded Visualization: Heat map coloring (red to green) based on relative performance ranking
✅ Flexible Timeframes: Works on any timeframe from 1-minute to 12-month charts
✅ Performance Table: Quick-view table showing candle performance with inside/outside bar detection
✅ Indian Market Ready: Pre-configured with NSE indices (NIFTY, BANKNIFTY, and sectoral indices)
Default Symbols (Customizable):
NIFTY, CNXSMALLCAP, CNXMIDCAP, BANKNIFTY
Sector indices: IT, AUTO, PHARMA, METAL, ENERGY, FMCG, etc.
Plus your current chart symbol (automatically added)
How It Works:
Select your preferred timeframe (1D, 1W, 1M, etc.)
The indicator calculates percentage performance from given period ago
Moving averages show smoothed performance trends
Colors indicate relative strength: Green = outperformers, Red = underperformers
Perfect For:
Sector rotation analysis
Relative strength comparison
Market breadth assessment
Index/ETF traders
Swing and position traders
Settings:
Adjustable MA length (default: 20)
Customizable colors and table position
Show/hide percentage labels
Horizontal or vertical table layout
This is not any buy or sell signal or recommendation, consult with your advisor first.
NEURAL FLOW INDEX — Core Energy • Momentum Stream • Pulse SyncNeural Flow Index (NFI) — Advanced Triple-Layer Reversal Framework
The Neural Flow Index (NFI) is a next-generation market oscillator designed to reveal the hidden synchronization between trend energy, cyclical momentum, and internal pulse dynamics.
It merges three powerful analytical layers into a single, normalized view:
Core Energy Curve (based on RSO logic) — captures structural trend bias and volatility expansion.
Momentum Stream (WaveTrend algorithm) — visualizes cyclical motion of price waves.
Pulse Sync (Stochastic RSI adaptation) — measures short-term momentum rhythm and overextension.
Each layer feeds into a unified flow model that adapts to both trend-following and reversal conditions. The goal is not to chase every fluctuation, but to sense where momentum, direction, and volatility converge into true inflection points.
Conceptual Mechanics
The oscillator translates complex market behavior into an elegant, multi-phase signal system:
Core Energy Curve (RSO foundation):
A smoothed dynamic field representing the overall strength and direction of market pressure.
Green energy indicates expansion (bullish dominance); red energy reflects contraction (bearish decay).
Momentum Stream (WaveTrend):
The teal line functions like an electro-wave, oscillating through phases of expansion and exhaustion.
It provides the heartbeat of the market — smooth, rhythmic, and beautifully cyclic.
Pulse Sync (Stochastic RSI):
The purple line acts as the market’s nervous pulse, reacting to micro-momentum changes before the larger trend adjusts.
It identifies micro-tops and micro-bottoms that precede major trend shifts.
When these three forces align, they create high-probability reversal zones known as Neural Nodes — regions where energy, momentum, and rhythm converge.
Trading Logic
Potential Entry Zones:
When the purple Pulse Sync line crosses the green Momentum Stream near the lower or upper bounds of the oscillator, a potential turning point forms.
Yet, these crossovers are only validated when the Core Energy histogram (RSO) simultaneously supports the same direction — confirming that energy and rhythm are synchronized.
Histogram Confirmation:
The histogram is the “voice” of the oscillator.
Rising green volume within the histogram during a Pulse-Momentum crossover suggests a legitimate upward reversal.
Conversely, expanding red energy during an upper-band cross indicates momentum exhaustion and an early short-side opportunity.
Neutral Zones:
When all three layers flatten near the zero line, the market enters an equilibrium phase — no clear trend dominance, ideal for patience and re-entry planning.
| Layer | Representation | Color | Function |
| --------------------- | ------------------- | ----------------- | ------------------------------ |
| **Core Energy Curve** | Area / Histogram | Lime-Red gradient | Trend bias & volatility energy |
| **Momentum Stream** | WaveTrend line | Teal | Cyclical flow of price |
| **Pulse Sync** | Stochastic RSI line | Purple | Short-term momentum rhythm |
Interpretation Summary
Converging Waves: Trend, momentum, and pulse move together → strong continuation.
Diverging Waves: Pulse or Momentum decouple from Core Energy → early reversal warnings.
Histogram Expansion: Confirms direction and strength of the new wave.
Crossovers at Extremes: Potential entries, especially when confirmed by energy alignment.
🪶 Philosophy Behind NFI
The Neural Flow Index is not just a technical indicator — it’s a behavioral visualization system.
Instead of focusing on lagging confirmations, it captures the neural pattern of price motion:
how liquidity flows, contracts, and expands through time.
It bridges the gap between pure mathematics and market intuition — giving traders a cinematic, harmonic view of energy transition inside price structure.
Entry / exit zones (only long positions)Great and simple helping tool to find good entry/exit point for mid/long term trading on stocks especially but also indexes and other..... Good on daily timeframe, but better with weekly and monthly. Based on Hull average slope. Hold the average period value among 30 and 50 or more. I prefer the version WITHOUT stop loss and other exit rules (optional).
All the best and good trading!
SB
DAX Zonen Ergänzungen (Pro Signale + EMAs mit Filter RSI MACD)📊 DAX Zones Enhancements (Pro Signals + EMA with RSI & MACD Filter)
Description:
This indicator enhances DAX trading analysis by combining dynamic support/resistance zones with professional-level signal filters. It automatically detects potential buy and sell zones and confirms them using EMA trends, RSI conditions, and MACD momentum.
Key features:
🔹 Visual display of DAX high- and low-price zones
🔹 EMA-based trend confirmation
🔹 RSI and MACD filters to reduce false signals
🔹 Customizable alerts when price interacts with key zones
🔹 Works on multiple timeframes
Ideal for traders who want a clean, rule-based approach to identifying high-probability entries and exits on the DAX index.
NY, Asia & London Session Lines + NY First HourEUR/USD last session OHLC Asia + London and first hour NY. defaults to last session if market closed. publishing to save for my self, nothing groundbreaking
GARCH Range PredictorThis was inspired by deltatrendtrading's video on GARCH models to predict daily trading ranges and identify favorable trading conditions. Based on advanced volatility forecasting techniques, it predicts whether a trading day's true range will exceed a threshold, helping traders decide when to trade or skip a session.
Key Features
GARCH(1,1) Volatility Modeling: Uses log-transformed true ranges with exponential moving average centering
Forward-Looking Predictions: Makes predictions at session start before the day unfolds
Dynamic or Static Thresholds: Choose between fixed dollar thresholds or adaptive 20-day averages
Accuracy Tracking: Monitors prediction accuracy with overall and recent (20-day) hit rates
Visual Session Boxes: Colors trading sessions green (trade) or red (skip) based on predictions
Real-Time Statistics: Displays current predictions, thresholds, and performance metrics
How It Works
Data Transformation: Log-transforms daily true ranges and centers them using an EMA
Variance Modeling: Updates GARCH variance using: σ²ₜ = ω + α(residual²) + β(σ²ₜ₋₁)
Prediction Generation: Back-transforms log predictions to dollar values
Signal Generation: Compares predictions to threshold to generate trade/skip signals
Performance Tracking: Validates predictions against actual outcomes
Parameters
GARCH Parameters (ω, α, β): Control volatility persistence and mean reversion
EMA Period: Smoothing period for log range centering
Threshold Settings: Static dollar amount or dynamic multiplier of recent averages
Session Time: Define regular trading hours for analysis
Best Use Cases
Breakout and momentum strategies that perform better on high-range days
Risk management by avoiding low-volatility sessions
Futures day trading (optimized for MNQ/NQ detection)
Any strategy where daily range impacts profitability
Important Notes
Requires 5+ sessions for initialization and warm-up
Accuracy depends heavily on proper parameter tuning for your specific instrument
Default parameters may need adjustment for different markets
Monitor the hit rate to validate effectiveness on your timeframe
FCBI Brake PressureBrake Pressure (FCBI − USIRYY)
Concept
The Brake Pressure indicator quantifies whether the bond market is braking or releasing liquidity relative to real yields (USIRYY).
It is derived from the Financial-Conditions Brake Index (FCBI) and expresses the balance between long-term yield pressure and real-rate dynamics.
Formula
Brake Pressure = FCBI − USIRYY
where FCBI = (US10Y) − (USINTR) − (CPI YoY)
Purpose
While FCBI measures the intensity of financial-condition pressure, Brake Pressure shows when that brake is being applied or released.
It captures the turning point of liquidity transmission in the financial system.
How to Read
Brake Pressure < 0 (orange) → Brake engaged → financial conditions tighter than real-rate baseline; liquidity constrained.
Brake Pressure ≈ 0 → Neutral zone → transition phase between tightening and easing.
Brake Pressure > 0 (teal) → Brake released → financial conditions looser than real-rate baseline; liquidity flows freely → late-cycle setup before recession.
Zero-Cross Logic
Cross ↑ above 0 → FCBI > USIRYY → brake released → liquidity acceleration → typically 6–18 months before recession.
Cross ↓ below 0 → FCBI < USIRYY → brake re-engaged → tightening resumes.
Historical Behavior
Each major U.S. recession (2001, 2008, 2020) was preceded by a Brake Pressure cross above zero after a negative phase, signaling that long yields had stopped resisting Fed cuts and liquidity was expanding.
Practical Use
• Identify late-cycle turning points and liquidity inflection phases.
• Combine with FCBI for a complete macro transmission picture.
• Watch for sustained positive readings as early macro-recession warnings.
Current Example (Oct 2025)
FCBI ≈ −3.1, USIRYY ≈ +3.0 → Brake Pressure ≈ −6.1 → Brake still engaged. When this crosses above 0, it signals that liquidity is free flowing and the recession countdown has begun.
Summary
FCBI shows how tight the brake is. Brake Pressure shows when the brake releases.
When Brake Pressure > 0, the system has entered the liquidity-expansion phase that historically precedes a U.S. recession.
Financial-Conditions Brake Index (FCBI) — US10Y brake on USIRYYFinancial-Conditions Brake Index (FCBI) – US10Y Brake on USIRYY
Concept
The Financial-Conditions Brake Index (FCBI) measures how U.S. long-term yields (US10Y) interact with the Federal Funds Rate (USINTR) and inflation (CPI YoY) to shape real-rate conditions (USIRYY).
It visualizes whether the bond market is tightening or loosening overall financial conditions relative to the Federal Reserve’s policy stance.
Formula
FCBI = (US10Y) − (USINTR) − (CPI YoY)
How It Works
The FCBI expresses the difference between the long-term yield curve and short-term policy rates, adjusted for inflation. It shows whether the long end of the curve is amplifying or counteracting the Fed’s stance.
FCBI > +2 → Strong brake → Long yields remain elevated despite easing → tight conditions → recession delayed.
FCBI +1 to +2 → Mild brake → Financial transmission slower; lag ≈ 12–18 months.
FCBI 0 to +1 → Neutral → Typical early post-cut environment.
FCBI < 0 → Accelerator → Long yields and inflation expectations falling → liquidity flows freely → recession often follows within 6–14 months.
How to Read the Chart
Blue line (FCBI) shows the strength of the financial brake.
Red line (USIRYY) represents the real yield baseline.
Recession shading (gray) marks NBER recessions for comparison.
FCBI < USIRYY → Brake engaged → financial conditions tighter than real-rate baseline.
FCBI > USIRYY → Brake released → long end easing faster than policy → liquidity surge → late-cycle setup.
Historically, U.S. recessions begin on average about 14 months after the first Fed rate cut, and a decline of the FCBI below zero often precedes that window.
Practical Use
Use the FCBI to identify when policy transmission is blocked (brake engaged) or flowing (brake released).
Cross-check with yield-curve inversions, Fed policy shifts, and inflation expectations to estimate macro timing windows.
Current Example (Oct 2025)
FCBI ≈ −3.1, USIRYY ≈ +3.0 → Brake still engaged.
Once FCBI rises above USIRYY and crosses positive, it signals the “brake released” phase — historically the final liquidity surge before a U.S. recession.
Summary
FCBI shows how tight the brake is.
USIRYY shows how fast the car is moving.
When FCBI rises above USIRYY, the brake is released — liquidity accelerates and the historical recession countdown begins.
Zero Lag Trend Signals (MTF) [Quant Trading] V7Overview
The Zero Lag Trend Signals (MTF) V7 is a comprehensive trend-following strategy that combines Zero Lag Exponential Moving Average (ZLEMA) with volatility-based bands to identify high-probability trade entries and exits. This strategy is designed to reduce lag inherent in traditional moving averages while incorporating dynamic risk management through ATR-based stops and multiple exit mechanisms.
This is a longer term horizon strategy that takes limited trades. It is not a high frequency trading and therefore will also have limited data and not > 100 trades.
How It Works
Core Signal Generation:
The strategy uses a Zero Lag EMA (ZLEMA) calculated by applying an EMA to price data that has been adjusted for lag:
Calculate lag period: floor((length - 1) / 2)
Apply lag correction: src + (src - src )
Calculate ZLEMA: EMA of lag-corrected price
Volatility bands are created using the highest ATR over a lookback period multiplied by a band multiplier. These bands are added to and subtracted from the ZLEMA line to create upper and lower boundaries.
Trend Detection:
The strategy maintains a trend variable that switches between bullish (1) and bearish (-1):
Long Signal: Triggers when price crosses above ZLEMA + volatility band
Short Signal: Triggers when price crosses below ZLEMA - volatility band
Optional ZLEMA Trend Confirmation:
When enabled, this filter requires ZLEMA to show directional momentum before entry:
Bullish Confirmation: ZLEMA must increase for 4 consecutive bars
Bearish Confirmation: ZLEMA must decrease for 4 consecutive bars
This additional filter helps avoid false signals in choppy or ranging markets.
Risk Management Features:
The strategy includes multiple stop-loss and take-profit mechanisms:
Volatility-Based Stops: Default stop-loss is placed at ZLEMA ± volatility band
ATR-Based Stops: Dynamic stop-loss calculated as entry price ± (ATR × multiplier)
ATR Trailing Stop: Ratcheting stop-loss that follows price but never moves against position
Risk-Reward Profit Target: Take-profit level set as a multiple of stop distance
Break-Even Stop: Moves stop to entry price after reaching specified R:R ratio
Trend-Based Exit: Closes position when price crosses EMA in opposite direction
Performance Tracking:
The strategy includes optional features for monitoring and analyzing trades:
Floating Statistics Table: Displays key metrics including win rate, GOA (Gain on Account), net P&L, and max drawdown
Trade Log Labels: Shows entry/exit prices, P&L, bars held, and exit reason for each closed trade
CSV Export Fields: Outputs trade data for external analysis
Default Strategy Settings
Commission & Slippage:
Commission: 0.1% per trade
Slippage: 3 ticks
Initial Capital: $1,000
Position Size: 100% of equity per trade
Main Calculation Parameters:
Length: 70 (range: 70-7000) - Controls ZLEMA calculation period
Band Multiplier: 1.2 - Adjusts width of volatility bands
Entry Conditions (All Disabled by Default):
Use ZLEMA Trend Confirmation: OFF - Requires ZLEMA directional momentum
Re-Enter on Long Trend: OFF - Allows multiple entries during sustained trends
Short Trades:
Allow Short Trades: OFF - Strategy is long-only by default
Performance Settings (All Disabled by Default):
Use Profit Target: OFF
Profit Target Risk-Reward Ratio: 2.0 (when enabled)
Dynamic TP/SL (All Disabled by Default):
Use ATR-Based Stop-Loss & Take-Profit: OFF
ATR Length: 14
Stop-Loss ATR Multiplier: 1.5
Profit Target ATR Multiplier: 2.5
Use ATR Trailing Stop: OFF
Trailing Stop ATR Multiplier: 1.5
Use Break-Even Stop-Loss: OFF
Move SL to Break-Even After RR: 1.5
Use Trend-Based Take Profit: OFF
EMA Exit Length: 9
Trade Data Display (All Disabled by Default):
Show Floating Stats Table: OFF
Show Trade Log Labels: OFF
Enable CSV Export: OFF
Trade Label Vertical Offset: 0.5
Backtesting Date Range:
Start Date: January 1, 2018
End Date: December 31, 2069
Important Usage Notes
Default Configuration: The strategy operates in its most basic form with default settings - using only ZLEMA crossovers with volatility bands and volatility-based stop-losses. All advanced features must be manually enabled.
Stop-Loss Priority: If multiple stop-loss methods are enabled simultaneously, the strategy will use whichever condition is hit first. ATR-based stops override volatility-based stops when enabled.
Long-Only by Default: Short trading is disabled by default. Enable "Allow Short Trades" to trade both directions.
Performance Monitoring: Enable the floating stats table and trade log labels to visualize strategy performance during backtesting.
Exit Mechanisms: The strategy can exit trades through multiple methods: stop-loss hit, take-profit reached, trend reversal, or trailing stop activation. The trade log identifies which exit method was used.
Re-Entry Logic: When "Re-Enter on Long Trend" is enabled with ZLEMA trend confirmation, the strategy can take multiple long positions during extended uptrends as long as all entry conditions remain valid.
Capital Efficiency: Default setting uses 100% of equity per trade. Adjust "default_qty_value" to manage position sizing based on risk tolerance.
Realistic Backtesting: Strategy includes commission (0.1%) and slippage (3 ticks) to provide realistic performance expectations. These values should be adjusted based on your broker and market conditions.
Recommended Use Cases
Trending Markets: Best suited for markets with clear directional moves where trend-following strategies excel
Medium to Long-Term Trading: The default length of 70 makes this strategy more appropriate for swing trading rather than scalping
Risk-Conscious Traders: Multiple stop-loss options allow traders to customize risk management to their comfort level
Backtesting & Optimization: Comprehensive performance tracking features make this strategy ideal for testing different parameter combinations
Limitations & Considerations
Like all trend-following strategies, performance may suffer in choppy or ranging markets
Default 100% position sizing means full capital exposure per trade - consider reducing for conservative risk management
Higher length values (70+) reduce signal frequency but may improve signal quality
Multiple simultaneous risk management features may create conflicting exit signals
Past performance shown in backtests does not guarantee future results
Customization Tips
For more aggressive trading:
Reduce length parameter (minimum 70)
Decrease band multiplier for tighter bands
Enable short trades
Use lower profit target R:R ratios
For more conservative trading:
Increase length parameter
Enable ZLEMA trend confirmation
Use wider ATR stop-loss multipliers
Enable break-even stop-loss
Reduce position size from 100% default
For optimal choppy market performance:
Enable ZLEMA trend confirmation
Increase band multiplier
Use tighter profit targets
Avoid re-entry on trend continuation
Visual Elements
The strategy plots several elements on the chart:
ZLEMA line (color-coded by trend direction)
Upper and lower volatility bands
Long entry markers (green triangles)
Short entry markers (red triangles, when enabled)
Stop-loss levels (when positions are open)
Take-profit levels (when enabled and positions are open)
Trailing stop lines (when enabled and positions are open)
Optional ZLEMA trend markers (triangles at highs/lows)
Optional trade log labels showing complete trade information
Exit Reason Codes (for CSV Export)
When CSV export is enabled, exit reasons are coded as:
0 = Manual/Other
1 = Trailing Stop-Loss
2 = Profit Target
3 = ATR Stop-Loss
4 = Trend Change
Conclusion
Zero Lag Trend Signals V7 provides a robust framework for trend-following with extensive customization options. The strategy balances simplicity in its core logic with sophisticated risk management features, making it suitable for both beginner and advanced traders. By reducing moving average lag while incorporating volatility-based signals, it aims to capture trends earlier while managing risk through multiple configurable exit mechanisms.
The modular design allows traders to start with basic trend-following and progressively add complexity through ZLEMA confirmation, multiple stop-loss methods, and advanced exit strategies. Comprehensive performance tracking and export capabilities make this strategy an excellent tool for systematic testing and optimization.
Note: This strategy is provided for educational and backtesting purposes. All trading involves risk. Past performance does not guarantee future results. Always test thoroughly with paper trading before risking real capital, and adjust position sizing and risk parameters according to your risk tolerance and account size.
================================================================================
TAGS:
================================================================================
trend following, ZLEMA, zero lag, volatility bands, ATR stops, risk management, swing trading, momentum, trend confirmation, backtesting
================================================================================
CATEGORY:
================================================================================
Strategies
================================================================================
CHART SETUP RECOMMENDATIONS:
================================================================================
For optimal visualization when publishing:
Use a clean chart with no other indicators overlaid
Select a timeframe that shows multiple trade signals (4H or Daily recommended)
Choose a trending asset (crypto, forex major pairs, or trending stocks work well)
Show at least 6-12 months of data to demonstrate strategy across different market conditions
Enable the floating stats table to display key performance metrics
Ensure all indicator lines (ZLEMA, bands, stops) are clearly visible
Use the default chart type (candlesticks) - avoid Heikin Ashi, Renko, etc.
Make sure symbol information and timeframe are clearly visible
================================================================================
COMPLIANCE NOTES:
================================================================================
✅ Open-source publication with complete code visibility
✅ English-only title and description
✅ Detailed explanation of methodology and calculations
✅ Realistic commission (0.1%) and slippage (3 ticks) included
✅ All default parameters clearly documented
✅ Performance limitations and risks disclosed
✅ No unrealistic claims about performance
✅ No guaranteed results promised
✅ Appropriate for public library (original trend-following implementation with ZLEMA)
✅ Educational disclaimers included
✅ All features explained in detail
================================================================================
Turtle Donchian Screener — with signalsTurtle strategy for Pine screener. Signals for buy and sell long positions.
Liquidity Sweeps & Swings (SMC/ICT)Liquidity Sweeps & Swings (SMC/ICT) — TradingATH
Precision. Clarity. Structure.
This refined indicator automatically detects and displays Liquidity Sweeps and Liquidity Swings , highlighting the precise points where liquidity is taken and where structure shifts occur within price action.
Designed for traders applying Smart Money Concepts (SMC/ICT) , it offers a clear, data-driven visualization of market dynamics — providing structural context with professional accuracy and visual balance.
What You’ll See
Liquidity Sweeps represented as compact shaded zones, green for bullish sweeps and red for bearish ones, fading automatically once mitigated.
Liquidity Swings precisely labeled “ Swing High ” and “ Swing Low ” at major pivot points, cleanly positioned within structure.
Controlled-length zones that extend for a defined number of bars or dynamically until mitigation.
Optional real-time alerts when a new sweep forms or price re-enters an active zone.
Features
Sweep Detection Logic : Identifies liquidity grabs using Wick, Close, or Wick + Close validation for flexible precision across different market conditions.
Smart Mitigation : Zones dynamically fade or are removed once price mitigates the area, keeping your chart clean and relevant.
Swing Mapping : Highlights key pivot points to outline market structure shifts with precise and minimal labeling.
ATR Filtering : Optional volatility-based filter removes minor or insignificant sweeps to maintain clarity.
Elegant Design : Subtle colors, refined typography, and balanced spacing ensure a professional, unobtrusive presentation.
Alerts and Updates : Automated alerts for new sweep formations and live interaction with active zones.
Professional Architecture : Efficient execution, size-safe arrays, and optimized plotting for smooth performance on any timeframe.
ICT/SMC Ready : Fully compatible with advanced institutional concepts such as Fair Value Gaps, Order Blocks, and Market Structure Shifts.
Perfect For
Traders applying ICT or Smart Money Concepts methodologies to identify liquidity grabs and structural intent.
Intraday Traders seeking precise, uncluttered sweep and swing identification on volatile charts.
Swing Traders filtering high-probability setups based on liquidity structure and mitigation behavior.
Analysts requiring clarity, reliability, and technical precision in their liquidity mapping tools.
Recommended Settings
Pivot Lookback : 14 (balanced structural sensitivity).
Sweep Validation : Wick + Close (adaptive precision).
Zone Length : 150 bars (controlled visual reach).
ATR Filter : Minimum 0.25×, Maximum 3× (clean sweep selection).
Swing Labels : Enabled (for structural clarity).
In Short
Clean logic. Institutional precision. Professional clarity.
Liquidity Sweeps & Swings (SMC/ICT) delivers a disciplined and refined visualization of liquidity flow and structural shifts — crafted for traders who demand both analytical accuracy and visual sophistication.
Created by: TradingATH
10 EMA10 ema + color change
35
70
140
420
840
1400
2100
2940
3150
4725
I created this script for use in different chart layouts. I modified it to use the colors and EMA numbers I'm currently using.





















