OPEN-SOURCE SCRIPT

BK AK-Warfare Formations

52
👑 BK AK-Warfare Formations — Form the pride. Take the high ground. Strike with wisdom. 👑
Built for traders who think like commanders: see the formation, plan the maneuver, execute the strike.

🎖️ Full Credit (Engine + Logic — Trendoscope)

Original foundation (Trendoscope Auto Chart Patterns):
Auto Chart Patterns [Trendoscope®]


The entire pattern engine (multi-zigzag scanning, pivot logic, trendline-pair validation, geometric classification, drawing framework, overlap handling, and pattern caps) is by Trendoscope—one of the best coders on TradingView and the creator of this indicator’s core.

I’m not rewriting his war machine. I’m upgrading the interface and tactical readability so you can see structure faster and act cleaner.

🧩 BK Enhancements (on top of Trendoscope)

Built for clarity under pressure:

Short-form formation tags so your chart stays readable (AC/DC/RC/RWE/FWE/CT/DT/etc.)

Label transparency controls (text + background), including separate controls for short labels

Hover tooltips (toggle): hover a label to see the full pattern name + bias (Bullish/Bearish/Neutral)

Alerts upgraded with bias + category filtering (Channel / Wedge / Triangle)

Pattern border extension (optional): extends the two boundary lines forward by N bars so the battlefield edges stay visible (not extending random zigzag legs)

Everything else remains Trendoscope’s architecture and detection logic.

🧠 What It Does

Auto-detects and labels:

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 — Asc/Desc Triangle (Contracting)

ATE / DTE — Asc/Desc Triangle (Expanding)

CT — Converging Triangle

DT — Diverging Triangle

You get clean battlefield tags (short codes) and optional hover briefings (full name + bias) without clutter.

🧭 How It Detects (So You Know It’s Not Random)

Trendoscope’s engine does this in a disciplined sequence:

Multi-Zigzag Sweep
Multiple zigzag levels scan the same market from different swing sensitivities.

Pivot Structure Validation (5 or 6 pivots)
A formation is only valid when pivot sequencing produces a legit trendline pair.

Trendline-Pair Rules

Upper boundary anchors to pivot highs

Lower boundary anchors to pivot lows

Geometry is measured (parallel / converging / diverging) to classify channel vs wedge vs triangle

Optional quality filters reduce warped/low-quality shapes (bar ratio checks, overlap avoidance, max pattern caps)

You’re not getting “art.” You’re getting validated geometry.

⚙️ Core Controls (What You Actually Tune)

Zigzag length/depth per level: swing sensitivity (faster vs cleaner)

Pivots used (5 or 6): tighter vs broader structures

Error/Flat thresholds: tolerance + what qualifies as “flat”

Avoid overlap: prevents stacking junk on top of junk

Max patterns: keeps the chart from becoming noise

Label system: short codes, transparency, tooltips, bias visibility

Border extension: projects the structure edges forward for planning

🗺️ Read the Battlefield (Tactical Translation)

AC (Ascending Channel): trend carry; buy pullbacks to the lower wall, manage risk outside structure

DC (Descending Channel): late down-leg; watch for momentum shift + reclaim = tactical reversal zone

RWE (Rising Wedge): distribution bias; break + failed retest is where weakness shows

CT / DT (Triangles): compression → expansion; plan edges, not the middle

Structure is the map. Bias is the compass. Your risk plan is the sword.

🧑‍🏫 Mentor A.K. (Respect Where It’s Due)

A.K. is the discipline behind this project.
Patience. Clean execution. No gambling. No chasing.
His standard is in every choice: reduce noise, sharpen structure, force clarity.
This is why the labels are tight, the tooltips are direct, and the features serve execution—not ego.

🤝 Give Forward (The Code of the Camp)

If this indicator sharpens your edge:

Teach one trader how to read structure with discipline (not hype)

Share process, not just screenshots (entries, invalidation, management)

If you build on open work, credit loudly and improve responsibly
A king builds men. A lion builds courage. A camp survives because knowledge moves forward.

👑 King Solomon’s Standard

This is warfare—market warfare—so we move by wisdom, not emotion:

“By wise counsel you will wage your own war, and in a multitude of counselors there is safety.” — Proverbs 24:6

BK AK-Warfare Formations — where formation meets judgment, and judgment meets execution.
Gd bless. 🙏

Exención de responsabilidad

La información y las publicaciones no constituyen, ni deben considerarse como asesoramiento o recomendaciones financieras, de inversión, de trading o de otro tipo proporcionadas o respaldadas por TradingView. Más información en Condiciones de uso.