BK AK-Warfare Formations👑 BK AK-Warfare Formations — Geometric Structure, Tactical Readability 👑
Built for traders who want validated structure (channels / wedges / triangles) without chart clutter — with compact tags, hover briefings, filtered alerts, and forward-projected battle lines.
🎖️ Full Credit — Foundation Engine (Trendoscope)
Original foundation (Trendoscope Auto Chart Patterns):
The entire pattern engine — multi-zigzag scanning, pivot logic, trendline-pair validation, geometric classification, overlap handling, pattern caps, and the base drawing framework — is by Trendoscope (one of the strongest Pine engineers on TradingView and the creator of the underlying detection architecture).
This script keeps that engine intact. My work is a tactical layer on top: readability + interaction + alerts + forward structure projection.
🧠 What This Script Does (User-Facing Output)
This indicator automatically detects and draws these geometric formations on price:
Channels
AC — Ascending Channel
DC — Descending Channel
RC — Ranging Channel
Wedges
RWE / FWE — Rising/Falling Wedge (Expanding)
RWC / FWC — Rising/Falling Wedge (Contracting)
Triangles
ATC / DTC — Ascending/Descending Triangle (Contracting)
ATE / DTE — Ascending/Descending Triangle (Expanding)
CT — Converging Triangle
DT — Diverging Triangle
You can display either the full pattern name or short tactical tags so structure stays visible without burying price.
🔍 How It Detects (So You Know It’s Not Random)
Trendoscope’s engine follows a strict geometric workflow:
1) Multi-Zigzag Sweep (micro → macro)
Runs up to 4 zigzag configurations, letting it detect structure at different swing sensitivities.
2) Pivot Structure Validation (5 or 6 pivots)
A formation is only eligible when the swing sequence provides a valid pivot set.
3) Trendline-Pair Validation + Geometry Classification
Two boundary trendlines are built and validated:
Upper boundary anchored to pivot highs
Lower boundary anchored to pivot lows
Then geometry determines classification:
Parallel → Channel
Converging/Diverging (same direction) → Wedge
Converging/Diverging (opposing direction) → Triangle
4) Quality Controls (optional but recommended)
Error threshold (line fit tolerance)
Flat threshold (what counts as “flat”)
Bar ratio verification (swing proportionality)
Avoid overlap + repaint behavior
Max patterns displayed
Net effect: validated geometry — not doodles.
🧩 BK Enhancements — Why This Publication Exists
This publication is not “two indicators glued together.” It’s a single detection engine plus an execution-oriented interface layer built to solve real pain points:
A) Tactical Labels (Clarity Under Pressure)
Short-form tags (AC/DC/RWE/CT…) to keep charts readable
Independent transparency controls (label text + background)
Optional hover tooltips showing full name + bias (Bullish/Bearish/Neutral)
B) Alert System Upgrades (Signal Routing, Not Spam)
Alerts are filtered by:
Bias: Bullish / Bearish / Neutral
Category: Channel / Wedge / Triangle
So you can route only what you actually trade.
C) Pattern Border Extension (Forward Battlefield Edges)
Optionally extend the true pattern boundaries forward by N bars so you can plan:
where reactions happen
where breaks/retests become obvious
where entries/invalidations belong
This extension logic is selective — it targets the best-matching border pair, not random lines.
⚙️ Core Controls (What You Actually Tune)
Scanning / Quality
Zigzag lengths & depths (swing sensitivity)
Pivots used (5 vs 6)
Error tolerance + flat threshold
Bar ratio verification
Overlap avoidance + repaint behavior
Max patterns displayed
Display / Readability
Theme colors or custom palette
Transparency for pattern lines/labels
Short labels ON/OFF
Tooltips ON/OFF
Border extension ON/OFF + extend bars
Alerts
Enable alerts overall
Filter by bias
Filter by category (Channel/Wedge/Triangle)
🗺️ How To Use It (Practical, Not Fantasy)
Channels: trade the lane — entries near the boundary, invalidation outside structure
Wedges: watch compression/expansion and breaks + retests (distribution/accumulation often shows here)
Triangles: plan edges, not the middle — compression → expansion is the point
This script gives structure. You still decide execution rules (entry trigger, invalidation, targets).
👑 King Solomon Lens (Short + Relevant)
This is market warfare, so we move by discernment:
“The simple believes every word, but the prudent gives thought to his steps.” — Proverbs 14:15
How that maps to this indicator:
Don’t believe the move because it’s loud — believe structure that’s validated.
Let the pattern define edges + invalidation (thoughtful steps).
Use filtered alerts / MTF / strength / traps as “prudence,” not hype.
🧑🏫 BK / AK
AK is honor — my mentor’s standard: patience, clean execution, no gambling.
BK AK-Warfare Formations — where formation meets judgment, and judgment meets execution. 🙏
Pine Script® インジケーター






















