> For the complete documentation index, see [llms.txt](https://statalpha.gitbook.io/statalpha-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://statalpha.gitbook.io/statalpha-docs/stats/intro.md).

# Introduction

The **StatAlpha Statistics ("Stats")** represent quantifiable market behavior patterns.\
They help identify recurring tendencies in price movements — providing statistical context for timing, direction, and risk.

Each statistics page includes:

* **Concept** — Explains what the stat measures and its underlying logic
* **Trading value** — Describes how it supports decision-making or trade validation
* **Parameters** — Lists key query parameters and their defaults
* **Examples** — Shows sample requests and response snippets
* **Interpretation** — Explains how to read results and common pitfalls

***

## Available Statistics

| Code            | Name                        | Description                                     |
| --------------- | --------------------------- | ----------------------------------------------- |
| **BOS**         | Break of Structure          | Detects structural trend shifts in price action |
| **FVG**         | Fair Value Gap              | Identifies imbalance zones between candles      |
| **ODC**         | Opening Day Continuation    | Analyzes post-open continuation behavior        |
| **PDHLB**       | Previous Day High/Low Break | Tracks breaks of prior day’s range              |
| **ORB**         | Opening Range Breakout      | Measures breakout probability after market open |
| **GAP**         | Opening Gaps                | Examines gap frequency and fill rate            |
| **OWC**         | Opening Week Period         | Evaluates early-week performance patterns       |
| **INTRADAY**    | Intraday Slots              | Aggregates metrics by time slots within the day |
| **SEASONALITY** | Weekday / Week / Month      | Shows recurring calendar patterns               |
| **TREND**       | Regime & Reversal Heuristic | Detects dominant trend behavior and reversals   |

***

### How to Use

Each stat endpoint is available under `/stats/<name>`\
For example:

```
GET /stats/fvg/summary?symbol=AAPL&timeframe=15m&time_window=12M
```

Every response provides aggregated metrics that can be combined, compared, or visualized to detect probabilistic market behavior.

***

### Tip

When exploring new stats, start with broader `time_window` parameters before refining into smaller `start_date` / `end_date` ranges for pattern confirmation.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://statalpha.gitbook.io/statalpha-docs/stats/intro.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
