Skip to content

About

Pine Script v6 AI skill + knowledge base for institutional GxT/ICT indicator development. SMT, SSMT, PSP, FVG, Confluence Engine — Garrett (@GxTradez) aligned.

Resources

Stars

12 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧠 Pine Script v6 — GxT/ICT Indicator Development Toolkit

A complete, battle-tested knowledge base and AI skill for building institutional-grade TradingView indicators using Pine Script v6, aligned with Garrett's (@GxTradez) GxT methodology.

Pine Script v6 GxT/ICT License: MIT


🎯 What Is This?

A developer toolkit — not a trading indicator — for anyone building Smart Money / ICT / GxT indicators in Pine Script v6. It includes:

  1. AI Skill (SKILL.md) — 975-line instruction file that teaches AI coding assistants (Antigravity, Cursor, Copilot, etc.) how to write perfect Pine Script v6 for institutional indicators
  2. Knowledge Base — Deep-dive reference documents on every GxT concept (SMT, SSMT, PSP, FVG, etc.)
  3. Development Guide — Complete workflow for planning, building, and optimizing TradingView indicators

📁 Structure

pinescript-v6-gxt-toolkit/
├── README.md                          ← You are here
├── LICENSE
│
├── skill/
│   └── SKILL.md                       ← 🔥 The main AI skill (975 lines, 18 sections)
│
├── knowledge/
│   ├── smt/
│   │   └── smt_deep_analysis.md       ← SMT engine deep dive (3 detection engines)
│   ├── ssmt/
│   │   └── ssmt_reference.md          ← SSMT + Quarterly Theory reference
│   ├── psp/
│   │   └── psp_reference.md           ← Precision Swing Point reference
│   └── development-guide/
│       └── indicator_development_guide.md  ← 6-phase dev workflow
│
└── examples/
    └── (your example scripts go here)

🚀 Quick Start

For AI-Assisted Development (Antigravity / Cursor / Copilot)

  1. Copy skill/SKILL.md to your AI tool's skill/instruction directory
  2. Reference it when building Pine Script indicators
  3. The AI will now enforce:
    • Anti-repaint HTF data fetching
    • Array garbage collection on all drawings
    • Garrett-aligned GxT terminology
    • Professional UI patterns

For Manual Reference

Browse the knowledge/ folder for deep dives on each concept. Each file is self-contained and can be read independently.


📚 What's Inside

SKILL.md — 18 Sections

# Section What It Covers
1 Pre-Flight Checklist What to do before writing any code
2 Critical Syntax Rules Top-down compiler, anti-repaint, GC, lookahead matrix
3 SMT Detection Rules Swing vs SSMT, confirmation, inverse correlation
4 Multi-Asset Architecture Pair combinations, security call budget, 7H TF
5 FVG / OB Engine Extension logic, mitigation, auto-sweep cleanup
6 Visual Output Standards Line styles, label conventions, color schemes
7 Session / Killzone Markers Timezone-aware session detection
8 ATR / ADR / CDR Dashboard Range calculation and display
9 PDH / PDL Multi-asset "level taken" dashboard pattern
10 Alerts Named alert conditions with hierarchy
11 Code Structure Template 15-section script skeleton
12 Pre-Submit Checklist 22-item verification checklist
13 Communication Rules How the AI should interact with you
14 Confluence Memory Engine PSP + SMT alignment detection
15 Opening Gap Engine NWOG/NDOG with forex-safe session detection
16 GxT/ICT Concept Reference Garrett-verified definitions (CIC 3-tier model)
17 Development Workflow 10-step build sequence + performance rules
18 UI Design Guide Colors, dashboards, transparency, line styles

Knowledge Base — Key Concepts

Concept File Key Content
SMT knowledge/smt/ 3 detection engines, 7 identified bugs, swing pivot pipeline
SSMT knowledge/ssmt/ Quarterly Theory, HTF-to-LTF accumulator pattern
PSP knowledge/psp/ Candle-closure divergence, CIC1 mapping, OR-gate
Dev Guide knowledge/development-guide/ 6-phase workflow, UI patterns, performance optimization

🔑 Key Definitions (Garrett-Aligned)

Term Garrett's Definition
SMT Smart Money Technique — divergence between correlated assets at a swing H/L
CIC Crack in Correlation — 3-tier model: CIC1 (initial) → CIC2 (confirmation) → CIC3 (trigger)
PSP Precision Swing Point — candle CLOSURE divergence at a swing extreme
SSMT Sequential SMT — divergence between consecutive quarters (90m+), governed by Quarterly Theory
CE Consequent Encroachment — 50% midpoint of any FVG/OB/gap zone
D.M Devil's Mark — wickless candle target for future sweep

⚠️ SMT = Smart Money Technique, NOT "Tool." CIC is a 3-tier model, NOT just "same as SMT."


📊 Quarterly Theory Quick Reference

Timeframe Quarter = SSMT checks between...
Session (6H) 90 minutes Two consecutive 90m blocks
Daily 6 hours Two consecutive session quarters
Weekly 1 day Mon vs Tue, Tue vs Wed, etc.
Monthly ~1 week Week 1 vs Week 2, etc.
Yearly 3 months Q1 vs Q2, Q2 vs Q3, etc.

⚡ Performance Cheat Sheet

Rule Why
Update objects (set_xy) not recreate (new) 10x faster
Wrap tables in if barstate.islast Prevents per-bar recalculation
Cap ALL drawing arrays with GC loops Prevents crashes
Use if show_feature gates Skip disabled features entirely
Use tuple fetching in request.security() 1 call for 4 values, not 4 calls
Max 500 lines/labels/boxes per type Hard TradingView limit
Max 40 request.security() calls total Cannot increase

🤝 Contributing

This toolkit was built from real production experience building CIC-PRO — a 1,455-line institutional indicator. Contributions welcome:

  • Concept corrections — if a GxT definition is wrong, open an issue
  • New patterns — if you've solved a Pine Script v6 problem, submit a PR
  • Bug reports — if a code pattern causes issues, let us know

📜 License

MIT — Use freely, contribute back if you can.


🙏 Credits

  • Garrett (@GxTradez) — GxT methodology and concept definitions
  • ICT (Inner Circle Trader) — Foundational Smart Money methodology

About

Pine Script v6 AI skill + knowledge base for institutional GxT/ICT indicator development. SMT, SSMT, PSP, FVG, Confluence Engine — Garrett (@GxTradez) aligned.

Resources

Stars

12 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors