I am using Excel to track stocks and financial markets, but I dont know how establish trendlines that start in the middle of the chart and continue for some days when updating the info. It is possible to do it?
I am using Excel to track stocks and financial markets, but I dont know how establish trendlines that start in the middle of the chart and continue for some days when updating the info. It is possible to do it?
Hi there.
A picture is worth 1,000 words. An Excel sheet is worth 1,000 non-editable pictures.
Please read the yellow banner about sample worksheets, at the top of the screen. Act on its guidelines and post a SMALL sample sheet complete with an explanation and some expected results.
Glenn
None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.
Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh
Hi Glenn,
It is a simple chart to be feed daily with new daily data, coming in the database. Stock prices, Hi and Lo daily. One day in the past, NOT THE FIRST DAY IN THE SAMPLE,
there was the Lower Lo within certain time range. So, I want to have a trendline starting that day, and going forward. The same can be for the Higher HI.
When such Lower Lo or Higher Hi is eventually broken, I want to have automatically in the chart the replacement of such trendlines, may be manually or automatically.
Trendlines use linear regresion, but starting SINCE MENTIONED Lower LO or Higher Hi, NOT FOR ALL THE TIME OF THE CHART
Many thanks in advance for your help, ideas, for this very interesting usage of Excel.
Elias Slotnisy
There is no sample file attached!!
I agree with Glenn, a sample file that helps us understand exactly how you like to interact with the spreadsheet will help us with solutions that you can use.
FWIW, Here's one strategy I see for doing this (assuming I understand exactly how you want to interact with the data in the spreadsheet):
1) I find that Excel's built in regression/trendline algorithms rarely work well (if at all) when the desired subset of the data for the regression is buried inside of the larger data set. I find that I almost always need some strategy for extracting the desired subset from the larger data set. Sometimes I'll use filters, sometimes I'll use lookups, and there are almost certainly other strategies, but one way or another I find it is usually necessary to somehow extract the desired data from the database. For now, let's assume that you can use a simple Autofilter step to do the "filtering." (https://www.wikihow.com/Use-AutoFilter-in-MS-Excel ).
2) Create the chart from the full database. Insert and format the trendline. Make certain that the "hidden and empty cells" setting is set to NOT show data in hidden rows. Depending on where you place the chart, you may also need to make sure that the "move/size with cells" option for the chart area is set to "not move or size with cells."
3) Use the autofilter to show only the subset of the data desired for the trendline. The chart should automatically show only the subset, and the trendline should automatically be based only on the filtered data.
There are, of course, many other possible strategies depending on exactly how you want to interact with the data. I find that the data extraction step is often the most difficult one, so, if this particular strategy doesn't work for you, be sure to explain how you would prefer to extract the desired data for the regression.
Originally Posted by shg
Many thanks MrShorty, I will use your sugested strategy. I am trying to avoid to complicate the charts. May be, in the future, Excel will have a capability to insert a trendline over a graph that not have to consider all the data of the function, only starting from the desired point and going forward from there.
Many Many thanks!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks