Math
Arithmetic between two series (or a series and the const_b constant when in-b is not connected)
When to use: Composing custom values, e.g. SL anchor = EMA50 − ATR×1 (sub) / distance = |close − EMA| (sub+abs) / scaling a value (mul) / creating a constant (add with const_b and no input connected)
Ports
in-a— The left operand (unconnected = 0)in-b— (optional) The right operand — uses const_b when unconnectedout-value— The result per bar
Params
op— add / sub / mul / div / absconst_b— Constant used in place of in-b when it is not connected
Used in these recipes
- Mean-reversion — RSI Oversold