(Bearish) CrossUnder
systemic:core-cuIndicatorsInputs
| Name | Type | Description |
|---|---|---|
| First Dataset | Number series | The series you expect to cross *below* the second dataset. |
| Second Dataset | Number series | The reference line that the first dataset may cross below. |
Outputs
| Name | Type | Description |
|---|---|---|
| CrossUnder | True/false series | A true/false series that is `True` on each bar where the first dataset crossed below the second. |
Cost
0.198 + 0.00478·n credits for n bars, rounded up. The marks are each plan's limit of bars.
The Crossunder module detects the bar where one series crosses below another, a classic bearish signal in technical analysis. It is the mirror image of the Crossover module and helps identify trend reversals and exit points.
What Is a Crossunder?
A crossunder occurs when a faster-moving line drops below a slower-moving line:
graph LR
subgraph Before["Before Crossunder"]
A1["Fast Line: ABOVE"]
A2["Slow Line: BELOW"]
end
subgraph Cross["⚡ Crossunder Moment"]
B["Lines Intersect"]
end
subgraph After["After Crossunder"]
C1["Fast Line: BELOW"]
C2["Slow Line: ABOVE"]
end
Before --> Cross --> After
The module outputs True on the bar where the first dataset crosses below the second (a bearish cross), False on every other bar where the comparison is possible, and an empty value where it is not (see Missing Data below). For the bullish direction, use the Crossover module.
The Mathematics
The crossunder compares each bar against the last bar with data before it — call it :
Where:
- is the first dataset (typically the faster indicator) at bar
- is the second dataset (typically the slower indicator) at bar
- is the most recent bar before where both datasets have data
Note: This is a bearish-only signal —
Trueonly when the first dataset moves from at-or-above to below the second. An upward cross returnsFalse; use the Crossover module to detect it. On a daily series without gaps is simply ; across a weekend or data gap it is the last bar that has data (see Missing Data).
Missing Data
A missing (empty) value in either input — a data gap or a closed-market bar — gives an empty output on the same bar. The signal is never filled with substitute values.
- Gaps are bridged: the cross is evaluated between the last two bars that have data. A cross between Friday and Monday gives
Trueon Monday. The weekend bars stay empty, and no signal is lost. - The first bar is always empty: a crossunder needs a previous bar to compare against, and the first bar of the run has none. The same applies to the first bar with data when the series starts with a gap.
- Gaps inside a session: if data drops out, the cross is computed against the last bar before the gap. A cross that happened during the gap shows on the first bar after it — delayed, not lost.
The Death Cross: A Famous Crossunder
The most famous crossunder pattern in equity trading:
| Fast Line | Slow Line | Signal |
|---|---|---|
| 50-day SMA | 200-day SMA | Death Cross (Bearish) |
flowchart TD
SMA50["50-Day SMA"]
SMA200["200-Day SMA"]
CU["Crossunder Module"]
Signal{"Death Cross?"}
Sell["Bearish Signal"]
Hold["No Signal"]
SMA50 --> CU
SMA200 --> CU
CU --> Signal
Signal -->|True| Sell
Signal -->|False| Hold
Historically, the Death Cross has preceded some major bear markets. In March 2020, the S&P 500 formed a Death Cross during the COVID crash. But like all technical signals, it is not infallible: the market recovered rapidly afterward.
Building a Complete Signal Set
Crossunder works best when paired with Crossover, so you get both entry and exit signals:
flowchart TD
subgraph Data["Price Data"]
Price["Close Prices"]
end
subgraph Indicators["Moving Averages"]
EMA12["EMA(12)"]
EMA26["EMA(26)"]
end
subgraph Detection["Signal Detection"]
CO["Crossover Module"]
CU["Crossunder Module"]
end
subgraph Actions["Signals"]
Buy["Bullish Signal"]
Sell["Bearish Signal"]
end
Price --> EMA12 & EMA26
EMA12 & EMA26 --> CO & CU
CO --> Buy
CU --> Sell
Use Cases Beyond Moving Averages
1. RSI Overbought Exit
Detect when RSI crosses below the 70 overbought threshold:
| First Dataset | Second Dataset | Signal Meaning |
|---|---|---|
| RSI | Constant 70 | Exit overbought zone |
2. MACD Signal Line Cross
The MACD crossing below its signal line is a momentum sell signal:
| First Dataset | Second Dataset | Signal Meaning |
|---|---|---|
| MACD Line | Signal Line | Momentum turning bearish |
3. Price Breaking Support
Detect when price crosses below a key moving average:
| First Dataset | Second Dataset | Signal Meaning |
|---|---|---|
| Close Price | 200-day SMA | Major support broken |
Cryptocurrency Considerations
Crypto markets are particularly volatile, making crossunder signals both:
- More frequent — Higher volatility means more crossings
- More significant — Large moves can follow confirmed breakdowns
Consider using:
- Longer periods (4H, Daily) to filter noise
- Volume confirmation — Breakdowns with high volume are more reliable
- Multiple confirmations — Wait for 2-3 bars below the cross point
Advantages
- Clear exit signals — One exact bar marks the cross
- Pairs naturally with Crossover — Entry and exit signals together
- Works across all markets — Equities, crypto, forex, commodities
- Objective — No interpretation needed
Disadvantages
- Lagging indicator — Signals come after the move begins
- Whipsaws — Sideways markets generate false signals
- No magnitude — Can't distinguish small crosses from major breakdowns
Data Alignment in Systemic
When connecting inputs to the Crossunder module, Systemic automatically aligns your data:
| Scenario | First Dataset | Second Dataset | Behavior |
|---|---|---|---|
| Both from modules | BTC 1H | ETH 15m | The 1H values are repeated on the 15m bars |
| Module + Constant | RSI output | 70 | The constant is repeated on every RSI bar |
| Different history lengths | 100 bars | 150 bars | The shorter series is not extended; bars without both values give an empty output |
Important Considerations
- A slower series repeats its last value: When a 1-hour series is aligned to 15-minute data, the bars in between take the latest hourly value
- No interpolation: Values between two readings are never estimated, so crossunders are detected on actual data only
- First output is always empty: A crossunder needs a previous bar to compare against, so the first output cannot be computed. It is empty, not
False
Indicator Assessment
%%{init: {"themeVariables": {"cScale0": "#4F46E5", "cScale1": "#059669"}}}%%
quadrantChart
title Crossunder Indicator Assessment
x-axis Low --> High
y-axis Low --> High
quadrant-1 High Popularity & Reliability
quadrant-2 High Reliability & Low Popularity
quadrant-3 Low Reliability & Popularity
quadrant-4 High Popularity & Low Reliability
"Traditional Markets": [0.85, 0.75]
"Cryptocurrency": [0.75, 0.60]
| Dimension | Stocks/Macro | Crypto | Explanation |
|---|---|---|---|
| Popularity | ⭐⭐⭐⭐⭐ | ⭐⭐⭐⭐ | The Death Cross is among the most cited technical signals in financial media. Crypto traders also widely use it, though newer indicators sometimes take precedence. |
| Reliability | ⭐⭐⭐⭐ | ⭐⭐⭐ | In traditional markets, crossunders on long periods (daily/weekly) have historically preceded significant moves. Crypto's higher volatility leads to more false signals. |
| Complexity | ⭐ | ⭐ | One of the simplest indicators to understand: it compares two values on consecutive bars. |
| Versatility | ⭐⭐⭐⭐⭐ | ⭐⭐⭐⭐⭐ | Applicable to any two time series: prices, indicators, on-chain metrics, or custom data. Works across all periods and asset classes. |
| Recent Interest | ⭐⭐⭐ | ⭐⭐⭐⭐ | A classic indicator with steady interest. The 2022 crypto bear market renewed focus on bearish crossunder signals for risk management. |