Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Volume Profile code?

Hello,

I am wondering if anyone has the volume profile code in python, or basically in any language. I was looking at the code on ThinkorSwim but I couldn't fully understand it. It looks like the code ToS is using uses some local functions I am not aware of what they do so if anyone can share it I will be super happy!

Thanks in advance!

6 responses

I have the same question. I think I need to develop something myself, but especially with futures, I've seen the significant predictive power in using volume profiling and order flow analyses as a trading tool. In stock, I am sure it works as well but is mostly taken over by HFT kids.

Were either of you able to come up with something?

To be explicit, this is what we're looking for I think ("Volume Profile"): https://www.tradingview.com/wiki/Volume_Profile

It seems this is similar, different name ("Market Profile): https://www.earnforex.com/metatrader-indicators/MarketProfile/

Would love to discover a Python implementation and also a data source if possible!

@andre ferreira, if you can pass to me that piece of code of the volume at the price it will be nice!, thanks

Carlos

Bump! Would love to see a Python implementation of this.

You can try this then expand the code to your heart content
Python code Simple MP

I wrote one here some time ago:
py-market-profile - Market Profile using Pandas DataFrame

Still maintained.