Skip to content
/ quant_ml Public

re-implement TA-Lib functions in pandas as I need them for pandas-ml-utils projects

Notifications You must be signed in to change notification settings

KIC/quant_ml

Repository files navigation

NOTE: this is far from being released. Future development happens at https://github.com/Pandas-Quant-Finance

However, this library is stable enough for my personal use for stock trading algorithms powered by ML models. It is intended to be used together with pandas-ml-utils.

There are also a couple of nice plotting extensions.

Plotting

There is a new ta_plot(rows, columns, figsize) function which returns as TaPlot object:

from quant_ml import pd

plt = pd.fetch_yahoo("SPY")[-100:].ta_plot()
plt.candlestick()
plt.line(["Open", "Close"])
plt.bar("Volume")

plot-verbose

Or just via shortcut

from quant_ml import pd

pd.fetch_yahoo("QQQ").ta_plot()()

plot-short

Of course you can add as many panels as you like

from quant_ml import pd

df = pd.fetch_yahoo("SPY")[-100:]
plt = df.ta_plot(3)

plt.candlestick()
plt.line(["Close"])
plt.line(df["Close"].ta_sma())
plt.bar("Volume")
plt.line(df["Volume"].ta_sma(), panel=1)
plt.line(df["Close"].ta_rsi(), panel=2)

plot-indicator

ideas: we need to implement a Back-test Summary which is like a Zipline implementation

provide pure python TA-Lib functionality which are suitable for ML (meaning oscillators or other indicators having a bounded domain of [-1, 1]).

About

re-implement TA-Lib functions in pandas as I need them for pandas-ml-utils projects

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages