Code Monkey home page Code Monkey logo

quant_ml's Introduction

NOTE: this is far from being released

this library is used 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]).

quant_ml's People

Contributors

somefreestring avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.