armed
forge.signalsfunctionSince Forge API 1
Signaturepython
forge.signals.armed(set_when: np.ndarray | ConditionTree,reset_when: np.ndarray | ConditionTree,/) -> np.ndarrayTrue 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
| Name | Type |
|---|---|
| set_when | np.ndarray | ConditionTree |
| reset_when | np.ndarray | ConditionTree |
armed(crossed_up, crossed_down) stays on after a cross up until the next cross down.