since

forge.signalsfunctionSince Forge API 1
Signaturepython
forge.signals.since(condition: np.ndarray | ConditionTree,op: str,bars: int,/) -> np.ndarray

True where the bars since the condition was last true compare with bars by op ("<", "<=", ">", ">=", "==" or "!="), and False on every bar before the first time it was true, whatever the comparison: there is no count yet to compare, as a missing value compares nowhere.

Parameters

NameType
conditionnp.ndarray | ConditionTree
opstr
barsint

since(crossed_up, "<=", 3) is "crossed up at most three bars ago". The Strategy Spec's since node runs through it (build 2026-10-19-forge-wiring, P3-S03).