-
Notifications
You must be signed in to change notification settings - Fork 653
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IBD styling charts, date labels, major and minor grids ... #316
Comments
Pavel, Regarding labeling various price extrema, there are some ideas discussed Here: #97 and here: #254 Regarding ...
Anything that you can do with matplotlib can be done with mplfinance, but it may - in some cases - need to be done as a "work-around' where you have mplfinance return the Figure and Axes objects and then manipulate them yourself. If you have something specific that you have figured out how to do in matplotlib, then (if you post the code here) I can help you with the best way to do it with mplfinance. Regarding how to set up an x-axis similar to the one you've posted, I'd have to investige how to do that with matplotlib, which unfortunately I don't have time for right now, however I did find the following two references which may help:
I hope that helps. Let me know if you have more questions, or want to discuss further, or if you have some specific matplotlib code that you want to know how best to use it with mplfinance. All the best. --Daniel |
style:
`
` |
Here the code for making the chart as my picture. I'm not a pro coder and it's a draft edition, maybe you can find there something useful. I didn't write comments, sorry ))) And IBD can enable using log scale (the volume bars use log scale in my pictures) |
Is it possible to put Volume Chart in the same chart with OHLC chart with using mplfinance return the Figure and Axes objects.
Upd; |
There are two ways to get volume onto the same chart or panel as the ohlc or candle chart:
mpf.make_addplot(data,type=bar,secondary_y=True,ylim=(vmin,vmax))
vmin = 0.3 * min(volume_data)
vmax = 1.1 * max(volume_data) (if you have any nans in your volume_data, then us When placing volume on the same panel as the OHLC data, if you are concerned about the volume bars hiding or covering the OHLC data, you can also pass Finally I would just say that, as a general rule my recommendtion is usually this: if you can accommplish something without external axes mode, then you should do it without external axes mode. There are two reasons for this recommendation: One is that some features of mplfinance may not be directly available in external axes mode (so you have to implement them yourself outside of mplfinance). The other reason is that external axes mode typically requires you to write more code. However this is not always the case and ultimately do what you are most comfortable with. HTH. All the best. --Daniel P.S. Thanks for posting the code. I hope to get a chance to read through it sometime tomorrow. |
With info found in the other issue's/questions I came to this solution:
|
Thanks a lot, I will use the parts of your code While I tried to find my own way I did that:
|
|
Just logging a reference example here should we decide to implement the multi-level or grouped axis labels: |
fyi,
|
What a nice work @ghost355 and also thank you @DanielGoldfarb for your work. |
thanks! https://gist.github.com/ghost355/6e169c87a5bbcbf5aaec754ffb19ded7 now, I try to make the same but with pure matplotlib only for more control |
Thank you for your kind sharing. |
Hello, Daniel, thanks for the amazing product.

I want to make OHLC charts like IBD style, here how it looks:
I could create something like it:

It would be great if we could use major and minor grid feature as in matplotlib, I can't make x-axis date labels like in the original image. And I like when you can add price extremum labels above and beyond bars like here

Maybe, somebody can help me with it or give me some useful tips.
Thanks a lot
The text was updated successfully, but these errors were encountered: