OPEN-SOURCE SCRIPT
Chandelier Exit + Zero Lag SMA

Chandelier Exit + Zero Lag SMA No Consecutive Signals
Overview
This Pine Script indicator combines the Chandelier Exit (based on ATR) with the Zero Lag SMA to generate reliable buy and sell signals for scalping on BTC/USDT, optimized for the 5-minute timeframe. Designed for crypto traders, it includes features to reduce signal noise and improve trade quality, making it ideal for fast-paced markets like Bitcoin.
Key Features
Chandelier Exit: Uses ATR (period=1, multiplier=2.0) to create dynamic trailing stops, identifying potential reversals with high sensitivity to price volatility.
Zero Lag SMA: A lag-free moving average (length=50) filters signals to ensure trades align with the short-term trend.
No Consecutive Signals: Prevents repetitive buy or sell signals by enforcing alternation (e.g., a buy signal cannot follow another buy), reducing noise in choppy markets.
Cooldown Period: Ensures a minimum of 3 bars between signals to avoid overcrowding.
Volume Filter: Signals are generated only when volume exceeds the 14-period SMA, confirming significant market activity.
Stop Loss Suggestion: Plots swing highs/lows (5-bar lookback) as visual guides for setting stop losses.
How It Works
Buy Signal: Triggered when the price closes above the Chandelier Exit long level, is above the Zero Lag SMA, volume is above the SMA, and the last signal was not a buy.
Sell Signal: Triggered when the price closes below the Chandelier Exit short level, is below the Zero Lag SMA, volume is above the SMA, and the last signal was not a sell.
Visualization:
Green triangles below bars for buy signals.
Red triangles above bars for sell signals.
White line for Zero Lag SMA.
Gray circles for swing low (buy SL) and swing high (sell SL).
Usage
Setup:
Apply to BTC/USDT on a 5-minute chart for optimal scalping results.
Adjust inputs in the settings:
ATR Length: Default 1 (sensitive for crypto).
ATR Multiplier: Default 2.0 (adjust for signal frequency).
Zero Lag SMA Length: Default 50 (trend filter).
Cooldown Bars: Default 3 (space between signals).
Volume MA Length: Default 14 (volume filter sensitivity).
Trading:
Enter long on green triangles, short on red triangles.
Set stop loss at swing low (buy) or swing high (sell), shown as gray circles.
Exit on Zero Lag SMA crossover or use a fixed risk-reward ratio (e.g., 1:2).
Use low leverage (1-5x) and test on a demo account first.
Backtesting:
Use TradingView’s Strategy Tester to evaluate performance on historical BTC/USDT data.
Best in volatile sessions (e.g., Asian/European overlaps).
Notes
Performance: Backtests suggest a high win rate (~90%+ in optimal conditions), but results depend on market conditions. Always validate with paper trading.
Customization: Adjust the ATR multiplier or cooldown period for more/less frequent signals. Add RSI or other filters for enhanced precision (reach out for help!).
Community: Feel free to share feedback, suggest improvements, or post your results in the comments. Let’s refine this together!
Disclaimer
This indicator is for educational purposes only and not financial advice. Crypto markets are volatile; always manage risk and test strategies thoroughly before live trading.
Happy scalping, and thanks for trying this indicator!
Overview
This Pine Script indicator combines the Chandelier Exit (based on ATR) with the Zero Lag SMA to generate reliable buy and sell signals for scalping on BTC/USDT, optimized for the 5-minute timeframe. Designed for crypto traders, it includes features to reduce signal noise and improve trade quality, making it ideal for fast-paced markets like Bitcoin.
Key Features
Chandelier Exit: Uses ATR (period=1, multiplier=2.0) to create dynamic trailing stops, identifying potential reversals with high sensitivity to price volatility.
Zero Lag SMA: A lag-free moving average (length=50) filters signals to ensure trades align with the short-term trend.
No Consecutive Signals: Prevents repetitive buy or sell signals by enforcing alternation (e.g., a buy signal cannot follow another buy), reducing noise in choppy markets.
Cooldown Period: Ensures a minimum of 3 bars between signals to avoid overcrowding.
Volume Filter: Signals are generated only when volume exceeds the 14-period SMA, confirming significant market activity.
Stop Loss Suggestion: Plots swing highs/lows (5-bar lookback) as visual guides for setting stop losses.
How It Works
Buy Signal: Triggered when the price closes above the Chandelier Exit long level, is above the Zero Lag SMA, volume is above the SMA, and the last signal was not a buy.
Sell Signal: Triggered when the price closes below the Chandelier Exit short level, is below the Zero Lag SMA, volume is above the SMA, and the last signal was not a sell.
Visualization:
Green triangles below bars for buy signals.
Red triangles above bars for sell signals.
White line for Zero Lag SMA.
Gray circles for swing low (buy SL) and swing high (sell SL).
Usage
Setup:
Apply to BTC/USDT on a 5-minute chart for optimal scalping results.
Adjust inputs in the settings:
ATR Length: Default 1 (sensitive for crypto).
ATR Multiplier: Default 2.0 (adjust for signal frequency).
Zero Lag SMA Length: Default 50 (trend filter).
Cooldown Bars: Default 3 (space between signals).
Volume MA Length: Default 14 (volume filter sensitivity).
Trading:
Enter long on green triangles, short on red triangles.
Set stop loss at swing low (buy) or swing high (sell), shown as gray circles.
Exit on Zero Lag SMA crossover or use a fixed risk-reward ratio (e.g., 1:2).
Use low leverage (1-5x) and test on a demo account first.
Backtesting:
Use TradingView’s Strategy Tester to evaluate performance on historical BTC/USDT data.
Best in volatile sessions (e.g., Asian/European overlaps).
Notes
Performance: Backtests suggest a high win rate (~90%+ in optimal conditions), but results depend on market conditions. Always validate with paper trading.
Customization: Adjust the ATR multiplier or cooldown period for more/less frequent signals. Add RSI or other filters for enhanced precision (reach out for help!).
Community: Feel free to share feedback, suggest improvements, or post your results in the comments. Let’s refine this together!
Disclaimer
This indicator is for educational purposes only and not financial advice. Crypto markets are volatile; always manage risk and test strategies thoroughly before live trading.
Happy scalping, and thanks for trying this indicator!
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้มันเป็นโอเพ่นซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันการทำงานของสคริปต์ได้ ขอแสดงความชื่นชมผู้เขียน! แม้ว่าคุณจะสามารถใช้งานได้ฟรี แต่อย่าลืมว่าการเผยแพร่โค้ดซ้ำนั้นจะต้องเป็นไปตามกฎระเบียบการใช้งานของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้มันเป็นโอเพ่นซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันการทำงานของสคริปต์ได้ ขอแสดงความชื่นชมผู้เขียน! แม้ว่าคุณจะสามารถใช้งานได้ฟรี แต่อย่าลืมว่าการเผยแพร่โค้ดซ้ำนั้นจะต้องเป็นไปตามกฎระเบียบการใช้งานของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ ข้อกำหนดการใช้งาน