held

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

True where the condition was true on this bar and on each of the bars - 1 before it. A bar with fewer than bars bars behind it has not held for that long, so it is False.

Parameters

NameType
conditionnp.ndarray | ConditionTree
barsint