Fractal (FRACTAL)

StratCraft indicator page for swing fractal detection.

Route: /indicators/fractal/

What It Does

FRACTAL identifies local swing highs and swing lows using a small multi-bar pattern.

Formula

An up fractal forms when the middle bar is higher than surrounding bars. A down fractal forms when the middle bar is lower than surrounding bars.

Parameters

  • period - default 5

C++23 API

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

Common Usage

  • Use it to mark swing highs and lows.
  • Combine with breakout confirmation above or below the fractal level.
  • Useful for structure-based trend analysis.