-
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
Feature Request: Plot percent price change on the y-axis #79
Comments
Hi @fintron I'm having some difficulties understanding the feature you are requesting. Are you looking to plot two plots with the percentage difference from a specified value for each stock? -- Caleb |
In one chart, I want to plot two series. The y axis is the change each had from the start of day. Does that make sense? |
So just to clarify, you want the percent change from the Open to the Close each day (as opposed to percent change from previous day's close). So for example, if this is your data:
The percent change would be:
Is that correct? taking the first row, for example, that was calculated as:
or
So the plot should look (for example) something like this: Is that what you want? |
No - actually I meant that I would pick a value which is the baseline - for example "102.370003". Then, I will just look at the percent change from that value for the remaining days. Does that make sense? The user could for example choose 2016-03-01's open value and then basically see the percent change from that point. This is useful to say plot the % change of the SPY over time vs a stock you are interested in. |
Do you have an example of such a chart from another location? If not, no worries, I will try to work up a prototype from your description and post it here to see if that's what you are looking for. But if you can point to an example that would be helpful. |
Thanks. Will try to make time to look into this later this week. |
@fintron |
Is your feature request related to a problem? Please describe.
When I want to compare two stocks, I'm interested in seeing the % changes in those two stocks over a period of time. Currently when I plot two stocks in mplfinance (using a secondary y-axis), I can't see the day-to-day percent changes, I only see the day-to-day price changes, which can be on different axes and thus inaccurate to compare directly.
For example, if I want to compare SPY and GOOG over a time period, I want to see the percent changes between the two (for easy comparison) rather than their stock prices which are almost an order of magnitude apart.
Describe the solution you'd like
A plot option that lets you plot the % change and lets you specify the start value that the percent changes should be compared against.
The text was updated successfully, but these errors were encountered: