MACD Signal Cross
What SteadyEdge calculates
This page documents the exact runtime calculation for the listed filter IDs. Formula symbols use O , H , L , C , and V for the current candle open, high, low, close, and volume; p is the configured lookback.
- Registry filter IDs: macd_signal_cross
Exact formula
MACD = EMA(C, fast) - EMA(C, slow)
signal = EMA(MACD, signal)
value = MACD - signal
threshold = 0 (fixed)
Parameters, defaults, and bounds
- fast : default 12 ; 1–50
- slow : default 26 ; 1–100
- signal : default 9 ; 1–50
How the rule passes
cross_above requires the previous value below the threshold and the current value at or above it.
cross_below requires the previous value above the threshold and the current value at or below it.
eq passes when the absolute difference is less than 1e-9 .
The threshold is fixed by the implementation and is not editable.
Data, timing, and warm-up
Candle filters use the rule timeframe and the latest candle at or before the evaluation time. A non-finite calculated value does not pass.
Every rule in the same filter set must pass. Test Filters and a backtest validate the complete set.
Related articles
- Filters Reference
- How Entry Filters Work
- Timeframe, Operator, Value, And Params