# 分形指标 (Fractal)

> 用于波段分形检测的 StratCraft 指标页面。

**Route**: `/quantnexus/indicators/fractal/`

## 作用

分形指标（FRACTAL）使用小型多柱线模式识别局部波段高点（swing highs）和波段低点（swing lows）。

## 公式

当中间的柱线高于周围的柱线时，形成上分形。当中间的柱线低于周围的柱线时，形成下分形。

## 参数

- `period` - 默认 `5`

## C++23 API

```cpp
#include <nonabt/indicators/fractal.hpp>
auto fractal = std::make_unique<nonabt::FRACTAL>(data(), 5);
```

## 常见用法

- 用于标记波段高点和低点。
- 与分形水平上方或下方的突破确认结合使用。
- 对基于结构的趋势分析非常有用。
