Moving Average Simple Envelope (SMAENVELOPE)
StratCraft indicator page for a simple moving average envelope.
Route: /indicators/smaenvelope/
What It Does
SMAENVELOPE wraps a simple moving average with upper and lower percentage bands.
Formula
Upper = SMA(period) * (1 + perc / 100) and Lower = SMA(period) * (1 - perc / 100)
Parameters
period- default30perc- default2.5
C++23 API
#include <nonabt/indicators/smaenvelope.hpp>
auto smaEnvelope = std::make_unique<nonabt::SMAENVELOPE>(data().close(), 30, 2.5);
Common Usage
- Use it to detect stretched moves around a simple trend baseline.
- Pair it with price crossovers or mean-reversion rules.
- Helpful when you want a clean envelope around a slower average.
