PROTECTED SOURCE SCRIPT

ZLEMA/DEMA MA Cross Screener with Performance Tracking

61
ZLEMA/DEMA MA Cross Screener with Performance Tracking

📊 Overview
This advanced Pine Script indicator is a comprehensive moving average crossover system designed specifically for TradingView, featuring 9 ZLEMA / 50 DEMA as the default configuration. It combines traditional MA cross signals with sophisticated performance tracking and visual analytics. The indicator performs optimally on the weekly timeframe, where longer-term trend changes are more reliable and produce fewer false signals.

🎯 Core Functionality
Pre-Configured 9 ZLEMA / 50 DEMA System
The indicator comes pre-loaded with a 9-period Zero Lag Exponential Moving Average (ZLEMA) as the fast MA and a 50-period Double Exponential Moving Average (DEMA) as the slow MA. This specific combination provides:

Fast Response: The 9 ZLEMA reduces lag compared to traditional EMAs

Smooth Signals: The 50 DEMA filters out noise while maintaining responsiveness

Balanced Sensitivity: Optimized for capturing medium-term trend changes without excessive whipsaws

Key Signal Logic:

Buy Signal: Triggered when the 9 ZLEMA crosses above the 50 DEMA (with anti-whipsaw protection)

Sell Signal: Triggered when the 9 ZLEMA crosses below the 50 DEMA (with anti-whipsaw protection)

Counting System: Prevents multiple consecutive signals from the same trend direction

🔧 Comprehensive Feature Set
1. Multi-Type Moving Average Support
While defaulting to 9 ZLEMA / 50 DEMA, the indicator supports 9 different moving average types:

SMA (Simple Moving Average)

EMA (Exponential Moving Average)

DEMA (Double Exponential Moving Average) - Default Slow MA

TEMA (Triple Exponential Moving Average)

WMA (Weighted Moving Average)

VWMA (Volume Weighted Moving Average)

RMA (Rolling Moving Average)

HMA (Hull Moving Average)

ZLEMA (Zero Lag Exponential Moving Average) - Default Fast MA

2. Advanced Performance Tracking System
The standout feature is the real-time performance analytics that tracks your 9 ZLEMA / 50 DEMA crossover performance:

Performance Metrics:

Success Rate: Percentage of 9/50 cross signals that hit the profit target

Average Bars to Target: How long it typically takes for 9/50 crosses to reach profit goals

Fastest/Slowest Targets: Performance range analysis for the ZLEMA/DEMA setup

Active Position Tracking: Currently monitored 9/50 cross signals

Total Signal Count: Historical frequency of the 9 ZLEMA / 50 DEMA crosses

Configurable Parameters:

Profit Target: Customizable percentage target (default 10%)

Entry Timing: Choose between "Next Bar Open" or "Current Bar Close"

Performance Lookback: Historical analysis period (up to 5,000 bars)

Max Bars Limit: Maximum time to track each 9/50 cross signal

3. Enhanced Visual Interface
Professional Performance Table:

Configuration Display: Shows "9 ZLEMA / 50 DEMA" prominently in the performance table

Dark/Light Theme Support: Optimized for both chart backgrounds

Customizable Position: 9 different table placement options

Real-time Updates: Live tracking of 9/50 cross performance metrics

Color-Coded Success Rates: Dynamic coloring based on ZLEMA/DEMA performance levels

Chart Visuals:

Dynamic MA Plotting: Displays 9 ZLEMA (thin line) and 50 DEMA (thick line)

Signal Shapes: Clear triangular buy/sell indicators for 9/50 crosses

Entry Labels: Detailed "9 ZLEMA/50 DEMA CROSS" labels with price levels

Color-Coded MAs: Green when 9 ZLEMA > 50 DEMA, red when reversed

4. Alert System
Complete alert functionality for the 9 ZLEMA / 50 DEMA crossover system:

ZLEMA/DEMA Bull Alert: 9 ZLEMA crosses above 50 DEMA

ZLEMA/DEMA Bear Alert: 9 ZLEMA crosses below 50 DEMA

Custom Message Format: Alerts specifically mention the 9/50 configuration

5. Pine Screener Compatibility
Hidden plots enable use with TradingView's Pine Screener for multi-symbol 9 ZLEMA / 50 DEMA monitoring:

9 ZLEMA values

50 DEMA values

9/50 cross bull/bear signal states

⚡ Why Weekly Timeframe is Optimal for 9 ZLEMA / 50 DEMA
The 9 ZLEMA / 50 DEMA configuration is specifically optimized for weekly timeframe analysis:

Reduced Noise: Weekly charts allow the 9/50 setup to filter out daily volatility

Medium-Term Trend Capture: The 9/50 period combination excels at weekly trend identification

Performance Tracking Accuracy: 1,260-bar lookback provides ~24 years of weekly 9/50 cross data

Institutional Alignment: Weekly 9 ZLEMA / 50 DEMA crosses align with institutional timeframes

Options Analysis Compatibility: Perfect for weekly options strategies and crossover event analysis

🛠️ Pre-Configured Settings
Default Moving Average Configuration
Fast MA: 9-period ZLEMA (Zero Lag Exponential Moving Average)

Slow MA: 50-period DEMA (Double Exponential Moving Average)

Source: Close price

Display Mode: Both MAs visible by default

Performance Settings (Optimized for 9/50 Setup)
Profit Target: 10% (ideal for medium-term 9/50 crosses)

Entry Timing: Next Bar Open (reduces slippage on weekly signals)

Lookback Period: 1,260 bars (comprehensive weekly analysis)

Max Bars to Target: 20 bars (reasonable for weekly timeframe)

📈 Specific Use Cases for 9 ZLEMA / 50 DEMA
Primary Applications:

Weekly Options Analysis: Perfect for weekly option strategies based on crossover events

Medium-Term Trend Following: The 9/50 setup captures intermediate trend changes

Performance-Driven Decisions: Real-time metrics specifically for 9 ZLEMA / 50 DEMA effectiveness

Multi-Asset Screening: Use Pine Screener to find 9/50 crosses across multiple symbols

Risk Assessment: Historical performance data for the specific 9/50 configuration

🎯 Key Advantages of the 9 ZLEMA / 50 DEMA Setup
Ready-to-Use Configuration: No setup required - optimized 9/50 parameters included

Reduced Lag: ZLEMA fast MA provides quicker signal generation than traditional EMAs

Smooth Confirmation: DEMA slow MA reduces false signals while maintaining responsiveness

Performance Validated: Built-in tracking shows exactly how well the 9/50 setup performs

Weekly Optimized: Specifically tuned for weekly timeframe effectiveness

Options-Friendly: Ideal timeframe and sensitivity for weekly options strategies

This indicator transforms the proven 9 ZLEMA / 50 DEMA crossover strategy into a comprehensive trading system with quantifiable performance metrics, making it an invaluable tool for traders focused on data-driven crossover analysis and weekly options strategies.

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.