# Base Apply N (BASEAPPLYN)

> QuantNexus indicator page for BASEAPPLYN utility logic.

**Route**: `/quantnexus/indicators/baseapplyn/`

## What It Does

BASEAPPLYN applies a function across the last `n` observations using the base data series. It is a helper for building custom rolling computations.

## Formula

BASEAPPLYN performs a rolling function such as sum, mean, max, min, or standard deviation over the lookback window.

## Parameters

- `period` - default `14`
- `func` - default `sum`

## C++23 API

```cpp
#include <nonabt/indicators/baseapplyn.hpp>
auto baseapplyn = std::make_unique<nonabt::BASEAPPLYN>(data().close(), 14, "sum");
```

## Common Usage

- Use BASEAPPLYN as a reusable rolling utility.
- Combine it with custom signals or wrapper indicators.
- Useful for preprocessing series before higher-level logic.

## Practical Pattern

BASEAPPLYN is a calculation helper rather than a direct trading signal.
