All Projects → bfolkens → Py Market Profile

bfolkens / Py Market Profile

Licence: other
A library to calculate Market Profile (aka Volume Profile) for financial data from a Pandas DataFrame.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Py Market Profile

Turingtrader
The Open-Source Backtesting Engine/ Market Simulator by Bertram Solutions.
Stars: ✭ 132 (-13.73%)
Mutual labels:  trading, finance, trading-strategies, quant, trading-algorithms
Quantdom
Python-based framework for backtesting trading strategies & analyzing financial markets [GUI ]
Stars: ✭ 449 (+193.46%)
Mutual labels:  trading, finance, trading-strategies, quant
Ta Rs
Technical analysis library for Rust language
Stars: ✭ 248 (+62.09%)
Mutual labels:  trading, finance, trading-strategies, trading-algorithms
Awesome Quant
A curated list of insanely awesome libraries, packages and resources for Quants (Quantitative Finance)
Stars: ✭ 8,205 (+5262.75%)
Mutual labels:  finance, trading-strategies, quant, trading-algorithms
AutoTrader
A Python-based development platform for automated trading systems - from backtesting to optimisation to livetrading.
Stars: ✭ 227 (+48.37%)
Mutual labels:  finance, trading, trading-strategies, trading-algorithms
Machine Learning And Ai In Trading
Applying Machine Learning and AI Algorithms applied to Trading for better performance and low Std.
Stars: ✭ 258 (+68.63%)
Mutual labels:  trading, finance, trading-strategies, trading-algorithms
Lean
Lean Algorithmic Trading Engine by QuantConnect (Python, C#)
Stars: ✭ 5,675 (+3609.15%)
Mutual labels:  finance, trading-strategies, trading-algorithms, trading
Tradingstrategies
Algorithmic trading strategies
Stars: ✭ 120 (-21.57%)
Mutual labels:  trading, finance, trading-strategies
Pandas Ta
Technical Analysis Indicators - Pandas TA is an easy to use Python 3 Pandas Extension with 130+ Indicators
Stars: ✭ 962 (+528.76%)
Mutual labels:  trading, finance, trading-algorithms
Jesse
An advanced crypto trading bot written in Python
Stars: ✭ 1,038 (+578.43%)
Mutual labels:  trading, trading-strategies, trading-algorithms
Tradingview Alert Binance Trader
This trading bot listens to the TradingView alert emails on your inbox and executes trades on Binance based on the parameters set on the TD alerts.
Stars: ✭ 100 (-34.64%)
Mutual labels:  trading, trading-strategies, trading-algorithms
Ta4j
A Java library for technical analysis.
Stars: ✭ 948 (+519.61%)
Mutual labels:  trading, trading-strategies, trading-algorithms
Sgx Full Orderbook Tick Data Trading Strategy
Providing the solutions for high-frequency trading (HFT) strategies using data science approaches (Machine Learning) on Full Orderbook Tick Data.
Stars: ✭ 733 (+379.08%)
Mutual labels:  trading, trading-strategies, quant
Gekko Strategies
Strategies to Gekko trading bot with backtests results and some useful tools.
Stars: ✭ 1,022 (+567.97%)
Mutual labels:  trading, trading-strategies, trading-algorithms
Kelp
Kelp is a free and open-source trading bot for the Stellar DEX and 100+ centralized exchanges
Stars: ✭ 580 (+279.08%)
Mutual labels:  trading, trading-strategies, trading-algorithms
Backtesting.py
🔎 📈 🐍 💰 Backtest trading strategies in Python.
Stars: ✭ 1,124 (+634.64%)
Mutual labels:  trading, trading-strategies, trading-algorithms
Roq Api
API for algorithmic and high-frequency trading
Stars: ✭ 132 (-13.73%)
Mutual labels:  trading, trading-strategies, trading-algorithms
Quant Trading
Python quantitative trading strategies including VIX Calculator, Pattern Recognition, Commodity Trading Advisor, Monte Carlo, Options Straddle, Shooting Star, London Breakout, Heikin-Ashi, Pair Trading, RSI, Bollinger Bands, Parabolic SAR, Dual Thrust, Awesome, MACD
Stars: ✭ 2,407 (+1473.2%)
Mutual labels:  trading-strategies, quant, trading-algorithms
Financial Machine Learning
A curated list of practical financial machine learning tools and applications.
Stars: ✭ 2,172 (+1319.61%)
Mutual labels:  finance, quant, trading-strategies
Interactivebrokers Algo System
Java/MySQL live algorithmic trading using Interactive Brokers API
Stars: ✭ 151 (-1.31%)
Mutual labels:  trading, finance, trading-strategies

============== Market Profile

.. image:: https://api.travis-ci.org/bfolkens/py-market-profile.svg?branch=master :alt: Travis-CI Build Status :target: https://travis-ci.org/bfolkens/py-market-profile

.. image:: https://readthedocs.org/projects/marketprofile/badge/?version=latest :target: https://marketprofile.readthedocs.io/en/latest/?badge=latest :alt: Documentation Status

A library to calculate Market Profile (Volume Profile) from a Pandas DataFrame. This library expects the DataFrame to have an index of timestamp and columns for each of the OHLCV values.

  • Free software: BSD license

Installation

::

pip install marketprofile

Example

You can view a Jupyter notebook of an example with charts here: <https://github.com/bfolkens/py-market-profile/blob/master/examples/example.ipynb>_

Pull in some data to play with:

from market_profile import MarketProfile import pandas_datareader as data amzn = data.get_data_yahoo('AMZN', '2019-12-01', '2019-12-31')

Create the MarketProfile object from a Pandas DataFrame:

mp = MarketProfile(amzn) mp_slice = mp[amzn.index.min():amzn.index.max()]

Once you've chosen a slice, you can return the profile series:

mp_slice.profile Close 1739.25 2514300 1740.50 2823800 1748.75 2097600 1749.55 2442800 1751.60 3117400 1760.35 3095900 1760.70 2670100 1760.95 2745700 1769.25 3145200 1770.00 3380900 1781.60 3925600 1784.05 3351400 1786.50 5150800 1789.25 881300 1790.70 3644400 1792.30 2652800 1793.00 2136400 1846.90 3674700 1847.85 2506500 1868.80 6005400 1869.85 6186600 Name: Volume, dtype: int64

Or you can also access individual attributes and properties:

mp_slice.initial_balance() (1762.680054, 1805.550049)

mp_slice.open_range() (1762.680054, 1805.550049)

mp_slice.poc_price 1869.850000

mp_slice.profile_range (1739.25, 1869.85)

mp_slice.value_area (1760.95, 1869.85)

mp_slice.balanced_target 2000.4499999999998

mp_slice.low_value_nodes Close 1748.75 2097600 1760.70 2670100 1784.05 3351400 1789.25 881300 1793.00 2136400 1847.85 2506500 Name: Volume, dtype: int64

mp_slice.high_value_nodes Close 1740.5 2823800 1751.6 3117400 1781.6 3925600 1786.5 5150800 1790.7 3644400 1846.9 3674700 Name: Volume, dtype: int64

Documentation

https://marketprofile.readthedocs.io/

What is Market Profile <https://eminimind.com/the-ultimate-guide-to-market-profile/>_ and How are these calculated <https://www.sierrachart.com/index.php?page=doc/StudiesReference/TimePriceOpportunityCharts.html#Calculations>_?

A discussion on the difference between TPO (Time Price Opportunity) and VOL (Volume Profile) chart types: <https://jimdaltontrading.com/tpo-vs-volume-profile>_

Development

To run the all tests run::

tox

Development sponsored in part by Cignals, LLC. - Bitcoin Order Flow and Footprint Charts <https://cignals.io/>_.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].