armed

forge.signalsfunctionSince Forge API 1
Signaturepython
forge.signals.armed(set_when: np.ndarray | ConditionTree,reset_when: np.ndarray | ConditionTree,/) -> np.ndarray

True from a bar where set_when is true until a bar where reset_when is, that bar excluded. When both are true on one bar, the reset wins: the bar is False.

Parameters

NameType
set_whennp.ndarray | ConditionTree
reset_whennp.ndarray | ConditionTree

armed(crossed_up, crossed_down) stays on after a cross up until the next cross down.