Click here to Login





                                                   Percentage Scale

  0

0
crfaldu
2016-12-12 17:24:56


I want to compare several stocks on one chart with percentage scale and the problem I am having is that the percentage scale shows value from about 0 to 100 so if the percentage change for the stocks are within 5-10 % then the scale is not auto adjusting to zoom in on those and still shows 0 to 100% and it makes it very to hard to see the different line plot




QuantShare
2016-12-13 03:26:07

  0

The percentage scale should show values from 5 to 10% in your case. You probably have another time series that uses the percentage scale.
Please double check your formula or compare stocks again from an empty chart.



crfaldu
2016-12-14 10:47:44

  0

I am trying to compare sectors of S&P time series together on same percentage scale. The problem is the scale shows from 0 to 100 (instead of auto adjusting it from lowest value to highest value eg. 0 to 5%) so the line plot are all squished in the bottom and hard to differentiated. Please let me know if I am making my point clear if not I can try to send a picture of the plot to make it more clear.

I appreciate for the prompt response,

Thanks you



QuantShare
2016-12-15 03:28:08

  0

Please try comparing just two series in a new chart. It is currently showing 0 to 100, probably because another series (maybe volume or indicator) is also using the same percentage scale. That is why I asked you to just try with a very simple formula with two series only and work from there.


crfaldu
2016-12-15 15:01:07

  0

I tried two series with following code and percentage scale and its not working.

s0 = getseries('SPY', close);
s1 = getseries('XLB', close);


plot(s0, 'SPY', colorBlack, ChartLine, StyleOwnScale);
plot(s1, 'XLB', colorGold, ChartLine, StyleOwnScale);




QuantShare
2016-12-16 04:21:45

  0

You need to plot the currently selected symbol as well.

plot(close, ""); // For example



crfaldu
2016-12-16 10:53:25

  0

s1 = getseries('XLB', close);


plot(close, ""); // als tried plot(close, 'SPY', colorBlack, ChartLine, StyleOwnScale);
plot(s1, 'XLB', colorGold, ChartLine, StyleOwnScale);

percentage scale is autoadjusting for one series but as soon as I add another series it gets squished to the bottom and I have to manually expand the scale. Please plot this and you will know what I mean.

Thanks



QuantShare
2016-12-17 06:09:40

  0

Put "plot(close, "");" at the end to have all other series adjust to the main ticker.

The easiest way to do this would be to create a chart, click on the add indicator icon at the top/left corner of the chart, select "External Symbol", type a symbol, select "Close", check "Compare with current symbol" then click on "OK".



crfaldu
2016-12-17 10:15:21

  0

Both the suggestions worked great. Thank you. Great piece of software and great support !!


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 Percentage of Current Equity
Percentage of Stocks Outperforming the S&P 500 Index
TSP Sentiment Survey - Percentage of Bullish and Bearish Traders
Horizontal Line - Changes by Value and Percentage
Percentage of Stocks at 20-Day Highs

How-to Lessons
How to create a log scale chart
How to plot a time-series that do not update the chart scale
How to scale and move the chart Y-axis
How to create a Monte Carlo simulation
How to draw distances on a chart?

Related Forum Threads
Compare strategy total returns or benchmarks on a percentage scal...
How can I set Log Scale charts?
How can I see charts with logarithmic scale on y-axis?
Logarithmic Scale for Price-Data-Chart only
Rise or Fall Percentage of a Day Close

Blog Posts
How to Use the Percentage Scale
A simple but useful way to display distances in a chart
Create Your Own Tactical Asset Allocation Strategies
How to Pick the Best Trend Indicators
6 techniques to improve the performance of your stock trading str...









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.