PROTECTED SOURCE SCRIPT
ที่อัปเดต: Harmonic Pattern Sniper PRO- Crypto Lidya

🎯 Harmonic Pattern Sniper PRO (HPS PRO) — Crypto Lidya Edition
Professional Harmonic Pattern Detector, Alert & Backtest Engine
🔍 Overview
HPS PRO is a fully automated Harmonic Pattern Detection and Backtest System built for TradingView.
It detects 11 harmonic formations within seconds, draws PRZ (Potential Reversal Zone) boxes, calculates TP/SL levels, and displays performance statistics for each pattern.
📈 “HPS PRO doesn’t just detect patterns — it analyzes them statistically.”

🧩 Supported Patterns
1. Bat
2. Gartley
3. Cypher
4. Crab
5. Deep Crab
6. Butterfly
7. Shark
8. Anti-Shark
9. 5-0 Pattern
10. Nen Star
11. Navarro 200
Each pattern is detected for both bullish and bearish directions with user-defined deviation tolerances.
⚙️ Real-Time & Non-Redrawing
- Detects patterns before candle close (instant detection)
- Intrabar Hard-Lock prevents multiple detections on the same bar
- Snapshot Engine freezes entry levels — patterns never repaint in history
Real-time pattern detection before bar close with “lock” symbol
📸 Instant Detection Proof — Before & After Comparison
To demonstrate the real-time, non-repainting nature of HPS PRO, the following two screenshots show the pattern formation before and immediately after the D-bar closes.
The pattern appears live (before candle close), and the same formation remains visible after the bar closes — confirming zero repainting.
Before Candle Close (Instant Detection Preview):

After Candle Close (Confirmed Pattern, Same Structure):

💡 This comparison clearly proves that HPS PRO draws harmonic structures instantly at the D-bar without any delay or redraw.
🎯 Automated TP / SL Projection
Five Take Profit (TP1–TP5) levels and one Stop-Loss (SL) level are auto-calculated.
Two calculation engines available:
- Fibonacci Classic
- Fibonacci Custom (Crypto Lidya)
Each level has its own label, price display, and color transparency.
PRZ box and ENTRY label visually mark the potential reversal zone.

📊 Backtest Performance Panel
A fully integrated table summarizing each pattern’s success:
- Total formations detected
- SL count
- TP1–TP5 success rates
- Automatic Grand Total row
“Analyze each pattern’s win rate directly from your chart.”

🔔 Smart Alert System
- Edge-based trigger (alerts only once at the first detection)
- 3 alert categories:
1.) All Patterns (Any)
2.) Direction-Based (Bullish / Bearish)
3.) Per-Pattern alerts (e.g., Bullish Deep Crab)
Alert messages are bilingual by default:
EN: Bullish Bat detected.
TR: Boğa Bat formasyonu oluştu.
🧠 Intelligent Architecture
- Hash Pool: guarantees pattern uniqueness (no redraws)
- Snapshot Engine: locks ENTRY/BASE prices at first detection
- Garbage Collector: automatically manages drawing limits
- “Show Last Pattern” mode: displays only the latest formation
💡 Volume Intelligence
- Highlights bars with volume ≥ 2×, 3×, or 4× above average
- Paints candles by volume multiples
“Whale Alert” mode plots colored triangles for ultra-high volume bars

💼 Ideal For
✅ Technical analysts
✅ Harmonic pattern traders
✅ Algorithmic strategy developers
✅ Traders who value statistical validation
“HPS PRO ends the manual search era — every pattern, instantly and accurately.”
🔗 Developed by Crypto Lidya
📩 “For support, please contact the developer on TradingView.”
🧠 “Don’t hunt patterns — let HPS PRO find them.”
📊 “Your backtest table reveals your strategy’s structure.”
🚀 “HPS PRO — The next evolution of harmonic trading.”
🌐 Coming Soon: HPS DEMO (Free Version)
EN: A free demo version (“Harmonic Pattern Sniper DEMO – Crypto Lidya”) will soon be available for public testing on selected pairs.
TR: “Harmonic Pattern Sniper DEMO – Crypto Lidya” isimli ücretsiz demo sürümü yakında seçili grafiklerde denemeye açılacaktır.
Professional Harmonic Pattern Detector, Alert & Backtest Engine
🔍 Overview
HPS PRO is a fully automated Harmonic Pattern Detection and Backtest System built for TradingView.
It detects 11 harmonic formations within seconds, draws PRZ (Potential Reversal Zone) boxes, calculates TP/SL levels, and displays performance statistics for each pattern.
📈 “HPS PRO doesn’t just detect patterns — it analyzes them statistically.”
🧩 Supported Patterns
1. Bat
2. Gartley
3. Cypher
4. Crab
5. Deep Crab
6. Butterfly
7. Shark
8. Anti-Shark
9. 5-0 Pattern
10. Nen Star
11. Navarro 200
Each pattern is detected for both bullish and bearish directions with user-defined deviation tolerances.
⚙️ Real-Time & Non-Redrawing
- Detects patterns before candle close (instant detection)
- Intrabar Hard-Lock prevents multiple detections on the same bar
- Snapshot Engine freezes entry levels — patterns never repaint in history
Real-time pattern detection before bar close with “lock” symbol
📸 Instant Detection Proof — Before & After Comparison
To demonstrate the real-time, non-repainting nature of HPS PRO, the following two screenshots show the pattern formation before and immediately after the D-bar closes.
The pattern appears live (before candle close), and the same formation remains visible after the bar closes — confirming zero repainting.
Before Candle Close (Instant Detection Preview):
After Candle Close (Confirmed Pattern, Same Structure):
💡 This comparison clearly proves that HPS PRO draws harmonic structures instantly at the D-bar without any delay or redraw.
🎯 Automated TP / SL Projection
Five Take Profit (TP1–TP5) levels and one Stop-Loss (SL) level are auto-calculated.
Two calculation engines available:
- Fibonacci Classic
- Fibonacci Custom (Crypto Lidya)
Each level has its own label, price display, and color transparency.
PRZ box and ENTRY label visually mark the potential reversal zone.
📊 Backtest Performance Panel
A fully integrated table summarizing each pattern’s success:
- Total formations detected
- SL count
- TP1–TP5 success rates
- Automatic Grand Total row
“Analyze each pattern’s win rate directly from your chart.”
🔔 Smart Alert System
- Edge-based trigger (alerts only once at the first detection)
- 3 alert categories:
1.) All Patterns (Any)
2.) Direction-Based (Bullish / Bearish)
3.) Per-Pattern alerts (e.g., Bullish Deep Crab)
Alert messages are bilingual by default:
EN: Bullish Bat detected.
TR: Boğa Bat formasyonu oluştu.
🧠 Intelligent Architecture
- Hash Pool: guarantees pattern uniqueness (no redraws)
- Snapshot Engine: locks ENTRY/BASE prices at first detection
- Garbage Collector: automatically manages drawing limits
- “Show Last Pattern” mode: displays only the latest formation
💡 Volume Intelligence
- Highlights bars with volume ≥ 2×, 3×, or 4× above average
- Paints candles by volume multiples
“Whale Alert” mode plots colored triangles for ultra-high volume bars
💼 Ideal For
✅ Technical analysts
✅ Harmonic pattern traders
✅ Algorithmic strategy developers
✅ Traders who value statistical validation
“HPS PRO ends the manual search era — every pattern, instantly and accurately.”
🔗 Developed by Crypto Lidya
📩 “For support, please contact the developer on TradingView.”
🧠 “Don’t hunt patterns — let HPS PRO find them.”
📊 “Your backtest table reveals your strategy’s structure.”
🚀 “HPS PRO — The next evolution of harmonic trading.”
🌐 Coming Soon: HPS DEMO (Free Version)
EN: A free demo version (“Harmonic Pattern Sniper DEMO – Crypto Lidya”) will soon be available for public testing on selected pairs.
TR: “Harmonic Pattern Sniper DEMO – Crypto Lidya” isimli ücretsiz demo sürümü yakında seçili grafiklerde denemeye açılacaktır.
เอกสารเผยแพร่
EN — Release Notes1) Simplified alert options
Previously, separate alerts could be created for each harmonic pattern in both bullish and bearish directions. This update streamlines the alert system into three clear, bilingual options:
“A harmonic pattern has formed.”
“A Bullish harmonic pattern has formed.”
“A Bearish harmonic pattern has formed.”
2) Backtest Performance table fix
A minor issue in the success-rate calculations has been corrected. The table now displays accurate TP/SL performance ratios.
3) New harmonic pattern: Lidya Pattern
A new pattern named Lidya has been added.
(Note: This is not a globally recognized formation. It is a developer-defined harmonic pattern based on personal observations of price behavior.)
- Appears in the pattern list as “Lidya 34.”
4) “Confirm at Close” feature added (Draw & Alert on Bar Close)
Previously, drawings and alerts were generated dynamically during the D-bar’s formation.
In that mode, when price movements violated the PRZ before the D-bar closed, drawings could disappear — this was not a bug but a natural side effect of real-time detection.
With the new Confirm at Close option, once a pattern is drawn, it will remain visible permanently even if the price later exceeds the PRZ range.
https://www.tradingview.com/x/no45MlzT/
This significantly improves chart stability and reliability for backtesting.
สคริปต์ที่ได้รับการป้องกัน
สคริปต์นี้ถูกเผยแพร่เป็นแบบ closed-source อย่างไรก็ตาม คุณสามารถใช้ได้อย่างอิสระและไม่มีข้อจำกัดใดๆ – เรียนรู้เพิ่มเติมได้ที่นี่
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ ข้อกำหนดการใช้งาน
สคริปต์ที่ได้รับการป้องกัน
สคริปต์นี้ถูกเผยแพร่เป็นแบบ closed-source อย่างไรก็ตาม คุณสามารถใช้ได้อย่างอิสระและไม่มีข้อจำกัดใดๆ – เรียนรู้เพิ่มเติมได้ที่นี่
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ ข้อกำหนดการใช้งาน