-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Auto-scale Y-axis for indicators graph when zooming #356
Comments
I fiddled around with the code and made it work :) Here's what I did: I have added code
right above backtesting.py/backtesting/_plotting.py Line 526 in 0a76e96
then,
right below these lines backtesting.py/backtesting/_plotting.py Lines 610 to 611 in 0a76e96
then,
right below these lines backtesting.py/backtesting/autoscale_cb.js Lines 30 to 33 in 0a76e96
Here's how it looks on the graph: |
Reverted: Auto-scale Y-axis for Profit/Loss chart when zooming kernc#356
@kernc can you review my fix for this? |
Thank you for the great work. That is something that I was looking for and made the job. |
Thanks for pointing it out. I will need to figure out the dependency on volume chart and separate it from it. |
Original Discussion Post: #355
There's something that I noticed which makes it difficult to view indicator graph on the chart if you're backtesting for longer period. Below is an example of an indicator view on the chart without zooming in. Notice the y axis scales.
Now, when I zoom in to focus on a specific period when ttm squeeze value stayed between -5 to +5, it still shows the full scale from -15 to+20. which makes it really hard to visualize the indicator chart. See below.
I know that re-scaling is allowed for the price chart/Volume. Is that something that can be implemented on the indicator charts as well?
The text was updated successfully, but these errors were encountered: