Find Last Index (FINDLASTINDEX)
QuantNexus indicator page for last-match index logic.
Route: /quantnexus/indicators/findlastindex/
What It Does
FINDLASTINDEX returns the last index in a lookback window that satisfies a chosen condition.
Formula
Return the latest bar index that matches the selected condition within the lookback period.
Parameters
period- default14_evalfunc- defaultclose_gt_open
C++23 API
#include <nonabt/indicators/findlastindex.hpp>
auto lastIndex = std::make_unique<nonabt::FINDLASTINDEX>(data(), 14, "close_gt_open");
Common Usage
- Use it to detect the last qualifying event in a window.
- Combine with recency-sensitive logic.
- Useful when the latest occurrence matters.
