Average (ARITHMETICMEAN)
StratCraft indicator page for arithmetic mean aggregation.
Route: /indicators/arithmeticmean/
What It Does
ARITHMETICMEAN computes the simple arithmetic average over the lookback period. It is a foundational utility indicator and often serves as a baseline benchmark.
Formula
Arithmetic Mean = (P1 + P2 + ... + Pn) / n
Parameters
period- default14
C++23 API
#include <nonabt/indicators/arithmeticmean.hpp>
auto avg = std::make_unique<nonabt::ARITHMETICMEAN>(data().close(), 14);
Common Usage
- Use it as a baseline average.
- Combine it with deviation or dispersion logic.
- Useful as a simple center line for custom indicators.
Practical Pattern
The arithmetic mean is often used as the first layer of smoothing before more advanced signal logic.
