# mpquant/MyTT

MyTT将通达信,同花顺,文华麦语言等指标公式,最简移植到Python中,核心库单个文件，仅百行代码,十几个核心函数，神奇的实现所有常见技术指标算法（不依赖talib库）的纯python实现和转换通达信MACD,RSI,BOLL,ATR,KDJ,CCI,PSY等公式,全部基于pandas函数计算方法封装，简洁且高性能，能非常方便的应用在股票指标公式,股市期货量化框架分析,自动程序化交易,数字货币量化等领域,它是您最精练的股市量化工具。Python library with most stock market indicators.

Repository: https://github.com/mpquant/MyTT
Canonical: https://ross.abutalabs.com/products/mytt
Language: Python
License Family: other
Topics: indicators, python, macd, rsi, boll, atr, kdj, cci, psy, btc, quant, stock
Last push: 2026-06-13T02:30:29+00:00

## Health v2 (maintenance only)
Score: 71/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 87, release rhythm 35, longevity 100
- inputs: {"age_days": 1933, "days_push": 82, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2839, forks 730 (observed 2026-08-28T04:07:24.696773+00:00)

## What it is
MyTT is a lightweight single-file Python library that implements common stock market technical indicators (MACD, RSI, BOLL, ATR, KDJ, CCI, PSY, etc.) in pure Python using numpy and pandas, without requiring the ta-lib dependency. It is compatible with indicator formula syntax from Chinese trading platforms like Tongdaxin (通达信), Tonghuashun (同花顺), and Wenhua Mai language, making formula porting nearly effortless.

## Use cases
- calculate MACD RSI BOLL indicators in python without talib
- convert tongdaxin indicator formulas to python
- compute technical indicators for BTC crypto trading strategies
- add moving averages and KDJ to a stock quant backtest
- lightweight technical analysis library for pandas dataframes
- port tonghuashun stock indicator formulas to python
- compute trading indicators matching tongdaxin output values

## When to choose
- you need common technical indicators without the painful ta-lib installation
- you want to port Tongdaxin/Tonghuashun indicator formulas to Python with minimal changes
- you want a tiny single-file library you can copy into any project
- you need sequence-in sequence-out indicator functions compatible with pandas/numpy workflows

## When to avoid
- you need a comprehensive, battle-tested indicator suite with extensive edge-case handling
- you require official licensing clarity for commercial use (repo shows no license)
- you need indicators beyond the common set or advanced statistical functions
- you need a maintained library with guaranteed long-term support

## Facets
- artifact type: library
- maturity: active
- function: math, data-science, developer-tools
- domain: fintech, data-science
- platform: python, cross-platform
- tags: technical-analysis, stock-indicators, quantitative-trading, tongdaxin, talib-alternative, numpy, pandas, trading-indicators, cryptocurrency, quant

## Member repositories
- mpquant/MyTT (main) score 71

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:24.696773+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:37:20.707719+00:00, confidence not recorded.
  - readme: https://github.com/mpquant/MyTT (fetched 2026-08-28T04:07:24.696773+00:00, sha df72fd125e64)
  - registry_pypi: https://pypi.org/pypi/mytt/json (fetched 2026-08-29T09:52:59.494228+00:00, sha 0e74c5e8e96c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
