StratCraft

Up Day Bool (UPDAYBOOL)

QuantNexus indicator page for a boolean up-day flag.

Route: /quantnexus/indicators/updaybool/

What It Does

UPDAYBOOL returns a boolean-style signal that marks whether the current bar is an up day.

Formula

Up Day Bool = close > previous close

Parameters

  • period - default 14

C++23 API

#include <nonabt/indicators/updaybool.hpp>
auto upDayBool = std::make_unique<nonabt::UPDAYBOOL>(data().close(), 14);

Common Usage

  • Use it when you only need direction, not magnitude.
  • Pair it with counting or aggregation logic.
  • Helpful for filter conditions and event flags.