Cross
true only on "the bar where the cross happens" — a crosses up/down through b (stateful, unlike Compare which stays true every bar)
When to use: Used as an entry trigger: EMA20 crossing up through EMA50 = enters once at the cross, not on every bar where 20 > 50
Ports
in-a— The moving line (fast)in-b— The reference line (slow)out-result— true only on the crossing bar
Params
op— cross_up / cross_down
Used in these recipes
- Trend-follow — EMA Cross