Click here to Login





                                                   Feature Request or How-to? Auto-scaling graphs w/ fixed central axis?

  0

0
Josh McCormick
2020-07-25 03:40:42


I wanted to submit a feature request. Quite a number of times I'm creating plots with variable ranges so they'll automatically zoom in and over over time, and that's what I want. But visually, it's going to make a lot more sense if there is a fixed mid-point in the graph (in my case, the zero axis line). The fixed axis will always been in the middle of the plot, and the scale above and below might scale together or independently from each other, but the central axis does not float up and down (as it does today). See the attached animated GIF showing the problem of the mid-point floating up and down the graph over time::

ANIMATED GIF:
============
https://i.imgur.com/6NDFa9E.gif

But you know what? I'm wondering... if I can split this up into two plots (one with positive values and then a second plot with just the negative values), might it be possible to merge them together as one graph but each with their own independent scales that still meet together in the middle?

Plot (0, "BASELINE", colorBlack, ChartLine, StyleWidth2|StyleHideYAxisValue);
Plot((a>0)*a, "BULLS", colorGreen|75, ChartLine, StyleHideValues|StyleHideYAxisValue|StyleDashed);
Plot((a<0)*a, "BEARS", colorRed|75, ChartLine, StyleHideValues|StyleHideYAxisValue|StyleDashed);

So might there be some combination of StyleOwnScale or StyleNoScale or other settings like MergeWithPreviousOwnScale that will allow me to mix two different plots on the same graph and have them scale independently while still meeting in the middle at the exact same fixed point? If not, a feature request is fine, please.

Thanks,
Josh McCormcik



QuantShare
2020-07-30 17:45:42

  0

Hi Josh,

That line is adjusted depending on the max/high values. You can specify a fixed scale by using one of these functions:
SetScale
SetMinScale
SetMaxScale
SetPercentScale



No more messages
0




Reply:

No html code. URLs turn into links automatically.

Type in the trading objects you want to include: - Add Objects
To add a trading object in your message, type in the object name, select it and then click on "Add Objects"










QuantShare

Trading Items
Position Sizing: Fixed Dollar Amount
Fibonacci Trader - Fixed Balance Point
Buy/Short a Fixed Number of Shares
Fixed Fractional Position Sizing
Withdraw a Fixed Amount Every Month - Money Management

How-to Lessons
How to debug a downloader
How to download new quotes when selecting a chart
How to quickly add a ticker symbol
How to install the previous version of QuantShare
How to use the Fibonacci retracement drawing tool

Related Forum Threads
Feature Request: LeftMostBar() or IsLeftMostBar()
PIVOT TABLES-a new feature
Excel like import feature
New Feature To Portfolio?
Live Simulation / "Bar by Bar" Feature

Blog Posts
Create Graphs using the Grid Tool
Profile Graphs
How to use the new Market Regimes Feature in QuantShare Trading S...
QuantShare New Website Feature: Groups
5 position sizing techniques you can use in your trading system









QuantShare
Product
QuantShare
Features
Create an account
Affiliate Program
Support
Contact Us
Trading Forum
How-to Lessons
Manual
Company
About Us
Privacy
Terms of Use

Copyright © 2024 QuantShare.com
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Google+
Follow us on Google+
RSS Trading Items



Trading financial instruments, including foreign exchange on margin, carries a high level of risk and is not suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in financial instruments or foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with trading and seek advice from an independent financial advisor if you have any doubts.