-
Notifications
You must be signed in to change notification settings - Fork 644
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
Enhance hlines and alines #219
Comments
Hi Markus, At a quick glance, seems a reasonable request. I'm very busy on a couple of other items right now. Will take a closer look and come back with more specific comments in a few days. Thank you for sharing the chart and the code. By the way, that's an excellent chart! I love seeing the really creative things people are doing with mplfinance. Keep it up. All the best. --Daniel |
@fxhuhn, @DanielGoldfarb, is it possible to add labels on hlines or alines, so the line's value on plot would've been shown? |
@HardRock4Life Instead you need to gain access to the Axes objects from mplfinance, and then use matplotlib directly for features such as text annotation and legends which you can find in the matplotlib documentation (for example https://matplotlib.org/3.3.0/api/axes_api.html#text-and-annotations). To gain access to mplfinance's Axes objects, there are two ways: 1. set 2. Create your own Figure and Axes objects and pass these into mplfinance. You can see examples of how to do this here. HTH. LMK. |
Hi Daniel,
first of all great compliments in advance. I'm always excited about what you bring in every release with this library for extensions.
Step by step I add each new function to the charts. Latest improvments are RSI in the middle, hlines and alines.
Currently I build up the alines and hlines as follows:
If i would like to use different colors and sizes, would it be possible to add a list of dicts in the future? Something like ...
hlines = [dict_support_lines, dict_resistence_lines]
... so that the other parameters (eg. linestyle) can also be changed more easily?
The text was updated successfully, but these errors were encountered: