PROTECTED SOURCE SCRIPT
מעודכן

TradeCraftly - 4 Flag Pattern

9
🚀 4 Flag
This indicator highlights **hidden market compression** by detecting a powerful **4-candle alternating pattern** where price remains tightly balanced between buyers and sellers.

It identifies sequences where candles **strictly alternate in direction** (Green-Red-Green-Red or Red-Green-Red-Green) while price stays **compressed within a shared Open-Close range**, filtering out noise and false consolidations using smart wick control.

The result is a **clean visual range box** that marks areas of **absorption, balance, and potential breakout energy**—often appearing just before strong directional moves.

---

### 💡 Ideal For

* Spotting **pre-breakout consolidation**
* Identifying **liquidity build-up zones**
* Timing **breakout or expansion trades**
* Enhancing entries with **VWAP, CPR, or session levels**

---

### ✅ Key Features

* Works on **any chart timeframe**
* **Non-repainting**
* Noise-filtered using **wick-to-body logic**
* Simple, clean, and **trader-focused**

הערות שחרור
🔄 Update Notes
  • Added body size similarity filter to ensure all four candles have nearly equal body sizes
  • Introduced Body Size Tolerance (%) input for fine control over pattern strictness
  • Improved pattern quality by filtering out uneven and noisy candle structures
  • Enhances detection of true compression and absorption zones
  • No repainting behavior changed

כתב ויתור

המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.