Any N (ANYN)

StratCraft indicator page for ANYN utility logic.

Route: /indicators/anyn/

What It Does

ANYN checks whether any value in the lookback window satisfies the configured condition. It is commonly used as a helper for signal persistence or event detection.

Formula

ANYN returns true or 1 when at least one observation in the last n periods satisfies the configured condition.

Parameters

  • period - default 14

C++23 API

#include <nonabt/indicators/anyn.hpp>
auto anyn = std::make_unique<nonabt::ANYN>(data(), 14);

Common Usage

  • Use ANYN as a trigger helper.
  • Combine it with thresholds or cross conditions.
  • Useful when you only need one qualifying event in the lookback window.

Practical Pattern

ANYN is a persistence filter for "has the condition occurred at least once" logic.