← Back to BlogJune 28, 2026Tutorial

Advanced Pipeline: Multi-Symbol Mean-Reversion with RSI + SMA

In this advanced tutorial, you'll build a mean-reversion strategy that monitors 3 symbols simultaneously, calculates RSI to detect oversold conditions, smooths the data with SMA, and sends a browser notification when an asset crosses your threshold.

PIPELINE FLOW

Multi-Symbol InputRSISMAAlert Output

Detect mean-reversion opportunities across multiple assets in real time.

What Is Mean Reversion?

Mean reversion assumes that prices tend to return to their average over time. When RSI drops below 30, the asset is oversold — a potential buying opportunity. When RSI rises above 70, it's overbought. This pipeline automates the monitoring.

Step 1: Add Multi-Symbol Input

  1. Open /terminal/pipeline.
  2. Drag Multi-Symbol Input (Pro node) onto the canvas.
  3. Configure it with: AAPL, MSFT, GOOGL
  4. Set interval to 60s.

Step 2: Add RSI Node

The Relative Strength Index compares recent gains to losses to identify overbought/oversold conditions.

  1. Drag RSI (Pro node) onto the canvas.
  2. Connect Multi-Symbol Output → RSI Input.
  3. Click RSI, set Period to 14 (standard).
  4. Set Oversold Threshold to 30, Overbought to 70.
// RSI calculation (14-period)
RSI = 100 - (100 / (1 + RS))
RS = average gain / average loss (last 14 periods)

Step 3: Add SMA Node

Adding a Simple Moving Average helps confirm the trend direction alongside RSI.

  1. Drag SMA (Pro node) onto the canvas.
  2. Connect RSI Output → SMA Input.
  3. Set Period to 20.

Step 4: Add Alert Output

  1. Drag Alert Output (Pro node) onto the canvas.
  2. Connect SMA Output → Alert Input.
  3. Configure the alert: Condition: RSI < 30, Message: " oversold! RSI: ".
  4. Enable Browser Notification.

Step 5: Run and Monitor

  1. Click ▶ Run.
  2. The pipeline fetches prices for AAPL, MSFT, and GOOGL every 60 seconds.
  3. RSI calculates for each symbol independently.
  4. When any symbol crosses below 30, you get a browser notification.
  5. Check the RSI values in real-time using a Price Display node connected to SMA output.

PRO TIP: Combine with Telegram

Replace Alert Output with Telegram Output to get notifications on your phone. Configure your bot token and chat ID, and you'll never miss a trade signal.

Tuning Your Strategy

  • Lower RSI period (e.g., 7) for more signals but more false positives.
  • Add a Forecast node after SMA to predict where RSI is heading.
  • Use a Math node to combine multiple conditions (e.g., RSI < 30 AND price > SMA).
  • Log results to a Price Display to track signal accuracy over time.
// Exportable pipeline config
[
{ "type": "multi-symbol-input", "config": { "symbols": ["AAPL","MSFT","GOOGL"], "interval": 60000 } },
{ "type": "rsi", "config": { "period": 14, "oversold": 30, "overbought": 70 } },
{ "type": "sma", "config": { "period": 20 } },
{ "type": "alert", "config": { "condition": "rsi < 30", "message": " oversold at ", "notify": true } }
]

Check the complete Pipeline Node Reference (publishes July 5) for all 18 node types.