Why I open-sourced our indicator engine (free: 121 indicators + 59 candlestick patterns)

Hi all,

Most of us use the same handful of tools every day: RSI, MACD, Supertrend, moving averages, candlestick patterns. Yet the exact rules behind them are rarely shown. Settings, smoothing methods and pattern definitions vary from platform to platform, so the “same” indicator or the “same” pattern can give different answers depending on where you look. Most of the time you only notice when two of your screens disagree about a stock.

I’m building a market screener with a small team, and today we’ve made our whole calculation engine free and open source.

What’s in it

  • 121 indicators across momentum, trend, volatility, volume and price action (RSI, MACD, Supertrend, ADX, Ichimoku, VWAP, Bollinger Bands and more)
  • 59 candlestick patterns
  • chart patterns like VCP, cup and handle, high tight flag and NR7
  • divergence checks for RSI, MACD, stochastic and other oscillators

Each calculation lives in its own short file with its rule written out, so anyone can read exactly how it works. For those who use Python with Kite, it installs in one line: pip install sortefi-ta

GitHub: GitHub - Sortefi/sortefi-ta: 121 technical indicators, 59 candlestick patterns and chart patterns for pandas. Pure numpy + pandas, no TA-Lib install. MIT. · GitHub

Why give it away?

Building is ultimately about helping people. Everything we’ve built stands on decades of openly shared knowledge: the indicators were published by the traders who invented them. Contributing back is how that keeps working. Every hour someone spends rewriting an RSI or chasing a smoothing bug is an hour that should have been saved once, in public.

Where we drew the line

These formulas were never a secret worth keeping. An RSI is from 1978, and candlestick patterns have been named for centuries. The value of a screener lies in what it builds on top of them, not in the maths itself. So the calculations are now public for anyone to use, check or improve.

The bigger goal: a common glossary

Trading has a vocabulary problem. Words like “oversold”, “divergence”, “squeeze” or “below the cloud” quietly mean slightly different things in different tools. We’d like this to grow into a shared reference: one readable, open definition for each indicator and pattern that traders can check and improve together.

What I’d love to hear from this forum

  • Which indicator or pattern have you seen give different results on two platforms?
  • Is there a definition you’ve always wished was standard?

If you think any of our rules are wrong, tell me here or open an issue on GitHub. If people agree, we’ll change it, and it improves for everyone.

2 Likes

i don’t know what to say but i really like your altruistic nature.

Thanks for your kind words :slight_smile:

Update: version 2.0.0 is out (124 indicators, 61 candlestick patterns)

In this post I asked which indicators give different answers on different platforms. RSI, ADX and VWAP were the biggest ones in our own library too, so this release fixes them first.

Now matches TradingView’s numbers:

  • RSI starts its averages the same way TradingView does. On long histories nothing changes. On short histories, the early values now match the chart.
  • Stoch RSI is built on that RSI. The stochastic window setting now does what the docs say.
  • ADX / +DI / −DI start on the same candle as TradingView’s DMI. Before, they started one candle early.
  • VWAP and anchored VWAP use (high + low + close) / 3, TradingView’s default. Before, they used (high + low) / 2.
  • MACD, PPO, Awesome Oscillator return exactly 0 on a flat price, such as a stock stuck at its upper circuit. A “MACD above 0” check can no longer flip on rounding noise.

New:

  • Renko bricks: a fixed box size, or one based on ATR(14).
  • VPCI (Volume Price Confirmation Indicator) and a rolling Hurst exponent.
  • Two new candle patterns: flat open and flat close. These are the flat candles many intraday traders here look for: open = low, open = high, or a close at the day’s high or low.
  • Options maths: Black-76 and Black-Scholes prices, greeks, implied volatility (including NSE’s published method), PCR, max pain, IV rank and percentile, skew, expected move, OI build-up, and payoffs and breakevens for multi-leg strategies.
  • Performance stats: CAGR, Sharpe, Sortino, VaR, win rate, beta and more. Use them on your own backtest returns.

Some outputs change, which is why the version number jumped. To upgrade:

pip install -U sortefi-ta

Same offer as before: if a rule looks wrong to you, reply here or open an issue on GitHub. If people agree, I’ll change it.