API Reference / detectPatterns · function
Function: detectPatterns()
function detectPatterns(chart, opts?): ChartPattern[];
The aspect configurations present in a Chart: T-squares, grand trines, grand crosses, yods, kites, mystic rectangles, and stelliums by sign and by house. Bodies outside their fitted range (absent from the chart) are skipped.
Parameters
| Parameter | Type | Description |
|---|---|---|
chart | Chart | A Chart from Engine.chart / Engine.chartAt. |
opts | PatternOptions | Orb overrides and an optional explicit body set. |
Returns
The configurations, most-complex first, each a ChartPattern.
Example
const chart = engine.chart(1990, 6, 10, 14, 30, 0, 27.95, -82.46, "placidus");
detectPatterns(chart); // [{ kind: "mystic_rectangle", bodies: [...], orb: 2.54 }, ...]