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