SMI Ergodic Oscillator: TSI Minus Signal, Settings, and Limits
The SMI Ergodic Oscillator plots the difference between a True Strength Index series and its EMA signal. Its zero line indicates where those two series are equal. A positive histogram does not necessarily mean that the underlying TSI is positive.

The calculation has three parts
Pineify computes ta.tsi(close, shortLength, longLength), takes an EMA of that result over signalLength, and subtracts the EMA from the TSI. Both the momentum numerator and the absolute-momentum denominator in the TSI calculation are smoothed; the histogram is the subsequent difference, not just the TSI ratio itself.
The TradingView SMI Ergodic Oscillator reference also describes subtracting the signal line. Pineify's implementation does not add a multiplication by 100. Check scaling before comparing numerical thresholds with another implementation.
| Pineify input | Default | Role |
|---|---|---|
| Long Length | 20 | Longer smoothing input to TSI |
| Short Length | 5 | Shorter smoothing input to TSI |
| Signal Line Length | 5 | EMA applied to the TSI result |
The output is a histogram in a separate pane, with an optional zero line. These defaults are configuration facts, not settings demonstrated to outperform on a particular market or timeframe.
Read the histogram as a difference
Above zero means TSI is above its EMA signal; below zero means it is below. A zero crossing therefore corresponds to a TSI/signal crossover. A shrinking positive bar means the positive gap is narrowing. It does not by itself prove that price will fall or that TSI has become negative.
Histogram magnitude measures the gap between related smoothed series. It is not a direct measure of order flow, buyer identity, or buying pressure. MACD also uses moving-average relationships and a signal line, so a simple claim that MACD has one smoothing pass and is universally less reliable is misleading.
Add it and verify the displayed values
Select SMI Ergodic Oscillator in Pineify's Visual Editor. Review the three lengths, generate the script, and inspect it in TradingView. Open the Pine Editor from the right-side Pine icon, resolve any compiler messages, and add the script to the chart. TradingView documents the Pine Editor entry point.
Confirm that the histogram changes sign where the TSI and signal cross. Wait for sufficient history and check unavailable values. On an open realtime bar, calculations can change before close; decide whether your condition waits for a confirmed bar.
Turn observations into a reproducible test
Replace phrases such as "clear conviction" or "extreme momentum" with explicit thresholds or comparisons. Define entry timing, position size, exits, and costs. A histogram crossing can be tested, but it is not a complete trading system by itself.
If you investigate divergence, record the pivot rule and its confirmation delay. A line drawn back to a historical pivot cannot justify an earlier order if later bars were needed to recognize it.
Keep a fixed baseline before adding filters. Use separate development and evaluation periods and report all tested settings. No fixed sample size proves reliability, and no generic slippage percentage applies to every trade in a ticker. Choose execution assumptions appropriate to the instrument and order type.
Pineify generates script configurations; TradingView's Strategy Tester evaluates a Pine strategy under its broker-emulator assumptions. Indicator installation, compilation, historical testing, and live execution are separate steps.
Does a positive SMI Ergodic histogram mean TSI is above zero?
No. It means TSI is above its EMA signal. Both could still be below zero.
Are 20/5/5 the best settings?
They are Pineify's defaults. This guide provides no reproducible performance comparison establishing a best setting.
Does smoothing remove false signals?
Smoothing changes sensitivity and timing. It cannot guarantee that a crossover predicts a profitable move.


