StratCraft

Zero Lag Indicator (ZLINDICATOR)

QuantNexus indicator page for an error-correcting trend baseline.

Route: /quantnexus/indicators/zlindicator/

What It Does

ZLINDICATOR smooths price with an error-correcting style adjustment that aims to reduce lag.

Formula

The series follows an adjusted moving average that reacts faster than a plain EMA.

Parameters

  • period - default 30
  • gainlimit - default 50
  • _movav - default EMA

C++23 API

#include <nonabt/indicators/zlindicator.hpp>
auto zlIndicator = std::make_unique<nonabt::ZLINDICATOR>(data().close(), 30, 50, "EMA");

Common Usage

  • Use it as a low-lag trend baseline.
  • Pair it with price crossovers or envelope logic.
  • Helpful when you want lag reduction without a fully custom filter.