PRJ_004
004
Machine Learning · Research · Fintech
Numin Pattern Engine
Numin · Remote · Jul – Sep, 2025
Overview

Contributed a TradingView indicator, 'Auto Harmonic Patterns with Table', in Pine Script v6 (~2,300 lines). It finds price pivots with a zigzag, detects harmonic patterns from X-A-B-C-D points using ratio lookup tables, detects double-bottoms via a rule set, and draws the patterns and a results table on the chart. It feeds a wider pattern engine that links each detection to its historical precedents and powers a 30-day forward projection.

The Problem

Analysts often sense a chart looks like something they've seen before, but proving it means scanning years of price data for every prior occurrence — impractical by hand. Numin needed to detect historical market patterns and project future behaviour over 30-day periods.

Key Metrics
2,300
Lines of Pine Script v6
30-day
Forward projection window
Harmonic
+ double-bottom detection
Process & Timeline
Phase 1
Pivots & patterns
Built a zigzag pivot finder and detected harmonic patterns from X-A-B-C-D points using lookup tables of ratio ranges.
Phase 2
Rule-based detection
Added double-bottom detection via an explicit rule set with pivot validation, drawing patterns and a results table on the chart.
Phase 3
Map & project
Fed the wider engine that links each detection to historical precedents and powers a 30-day forward projection, every subtask QC-measured.
Tech Stack
Pine Script v6PythonPolygon Market DataTradingViewFeature Engineering
Critical Self-Evaluation
The engine's discipline is that every ML subtask gets its own independently measured quality-control metric — a practice built with Numin's quants years earlier. Writing the harmonic detector in Pine Script meant encoding fuzzy analyst intuition (ratio ranges, pivot validation) as explicit, testable rules, which is exactly the kind of translation that makes a pattern tool trustworthy rather than a black box.