since
forge.signalsfunctionSince Forge API 1
Signaturepython
forge.signals.since(condition: np.ndarray | ConditionTree,op: str,bars: int,/) -> np.ndarrayTrue 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
| Name | Type |
|---|---|
| condition | np.ndarray | ConditionTree |
| op | str |
| bars | int |
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).