Solved

Horizontal line on Excel chart

Posted on 2012-04-02
9
333 Views
Last Modified: 2012-04-07
I am importing stockmarket data into Excel via the DownloaderXL add-in published by Yaskov Anatoliy.

This application automatically provides historical market pricing and charts for specified funds/indicies. I need to update the charts to include extra horizontal lines -40% and -60% lower than the closing price for the last day. I am refreshing the data on a daily basis so the solution needs to be dynamic.

Any help/advice would be welcome.
0
Comment
Question by:draeside
  • 5
  • 2
  • 2
9 Comments
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 37799519
Can you provide a sample file?
0
 
LVL 50

Expert Comment

by:teylyn
ID: 37799556
Hello,

you can add another data series to the chart, and send that data series to the secondary axis. Change the chart type to XY Scatter chart and point it to two data pairs for X and Y respectively:

X = 0, Y=calculated value
X= 1, Y=calculated value

That's your 40% line. The "calculated value" is a single cell in your spreadsheet where you use a formula to figure out the desired number

Add another series to the chart for the 60% line. This one will automatically sit on the secondary axis. Point it to a the cells for X and Y.

Make sure that the two Y axes have the same maximum settings. This can be achieved with another data series on the secondary axis, just one data point with the maximum value of the data on the primary axis.

Set the secondary X axis maximum value to 1 and hide the display of the secondary X axis.

See attached.

cheers, teylyn
Book1.xlsx
0
 

Author Comment

by:draeside
ID: 37799609
Hi Teylyn,

thank you for your response, very useful. The base data series will be expanding everyday as new pricing is fed through. How would I cater for this?

Cheers,
Duncan
0
 

Author Comment

by:draeside
ID: 37799625
Sample file attached
Market-Feed.xlsx
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
LVL 50

Expert Comment

by:teylyn
ID: 37799707
I'm busy for the next three hours, but will look at this thereafter.

For changing data ranges you can employ dynamic range names to feed the chart. It's easy to set up and low maintenance.

I'll be back with a suggestion in a few hours unless someone else chips in first.

Cheers, teylyn
0
 
LVL 50

Expert Comment

by:teylyn
ID: 37800366
Hi again,

I'm having trouble with my Excel version right now. Here is a verbal run-down to set up the FTSE chart.

Somewhere on the FTSE sheet, enter the formula

=INDEX('FTSE 100'!E:E,MATCH(99^99,'FTSE 100'!E:E,1))

Then use a formula to calculate the 40% and 60% off that value. The rest is like I described in the comment above.

I'll try to get this going in your sample file when I'm back at a working Excel system in the morning

cheers, teylyn
0
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 37802343
Enter your desired value in a blank column say column I all the way down to the end of the data.

Add a new series to the chart from column I.

See attached


*** edit ***

Failed to upload so uploaded at EE-stuff

https://filedb.experts-exchange.com/incoming/ee-stuff/8242-Market-Feed.xlsx

Looks like upload also succeeded so sending both.
Market-Feed.xlsx
0
 
LVL 50

Expert Comment

by:teylyn
ID: 37803315
No, ssaqibh, no. Don't add another column of data. You only need 2 data points for a straight line, not 6000. That would blow up the already big file even bigger.
0
 
LVL 50

Accepted Solution

by:
teylyn earned 300 total points
ID: 37803954
Here is the file with the FTSE tab and the chart changes in place.
Market-Feed.xlsx
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Sparklines have been introduced with Excel 2010 and are a useful tool for creating small in-cell charts, used for example in dashboards. Excel 2010 offers three different types of Sparklines: Line, Column and Win/Loss. What it does not offer is a…
Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now