I have been trying to plot the slope of three regression lines, a 10 day, a 20 day and a 40 day line. For some reason, I can’t get the plots to appear, I want to test the cross overs as signals for buy and sell
Data source – linear regression 40
Period – 39 days (however the period does not seem to have an effect when the data source is 39 or 1 day.
(19.5 * C + 18.5 * C1 + 17.5 * C2 + 16.5 * C3 + 15.5 * C4 + 14.5 * C5 + 13.5 * C6 + 12.5 * C7 + 11.5 * C8 + 10.5 * C9 + 9.5 * C10 + 8.5 * C11 + 7.5 * C12 + 6.5 * C13 + 5.5 * C14 + 4.5 * C15 + 3.5 * C16 + 2.5 * C17 + 1.5 * C18 + .5 * C19 - .5 * C20 - 1.5 * C21 - 2.5 * C22 - 3.5 * C23 - 4.5 * C24 - 5.5 * C25 - 6.5 * C26 - 7.5 * C27 - 8.5 * C28 - 9.5 * C29 - 10.5 * C30 - 11.5 * C31 - 12.5 * C32 - 13.5 * C33 - 14.5 * C34 - 15.5 * C35 - 16.5 * C36 - 17.5 * C37 - 18.5 * C38 - 19.5 * C39) / 5330
20 day
Data source linear regression 20
(9.5 * C + 8.5 * C1 + 7.5 * C2 + 6.5 * C3 + 5.5 * C4 + 4.5 * C5 + 3.5 * C6 + 2.5 * C7 + 1.5 * C8 + .5 * C9 - .5 * C10 - 1.5 * C11 - 2.5 * C12 - 3.5 * C13 - 4.5 * C14 - 5.5 * C15 - 6.5 * C16 - 7.5 * C17 - 8.5 * C18 - 9.5 * C19) / 665
10 day
Data source linear regression 10
(4.5 * C + 3.5 * C1 + 2.5 * C2 + 1.5 * C3 + .5 * C4 - .5 * C5 - 1.5 * C6 - 2.5 * C7 - 3.5 * C8 - 4.5 * C9) / 82.5
Any ideas as to what I am doing wrong??
|
Thank you very much - I should have though of save as
Bob
|
How do you create a new layout group?
Thanks in advance
|
Bruce
Thank you very much
Bob
|
Hi
I am trying to normalize and smooth rankings of stocks and ETFs by using the slope of the regression line. You have given me a 20 period slope (below) and 35 period slope. Can I please have a 10 period slope and 40 period slope
Thanks in advance -- wish there was some place where I could learn this code.
(9.5 * C + 8.5 * C1 + 7.5 * C2 + 6.5 * C3 + 5.5 * C4 + 4.5 * C5 + 3.5 * C6 + 2.5 * C7 + 1.5 * C8 + .5 * C9 - .5 * C10 - 1.5 * C11 - 2.5 * C12 - 3.5 * C13 - 4.5 * C14 - 5.5 * C15 - 6.5 * C16 - 7.5 * C17 - 8.5 * C18 - 9.5 * C19) / 665
|
I have a question regarding “comparisons”, one layer below price history.
Is it possible to change the way comparisons are calculated? Can we reduce the primary stock to “0” and each comparison stock measured as the bar to bar percent change difference between the primary stock and the comparison stocks.
The best example and explanation is from John Murphy’s web site http://stockcharts.com/freecharts/perf.php?[SECT]
Thank you
Chaid
|
I am trying to develop a means of tracking the relative ranking of the Morningstar industries and sub industries over time. This will be similar to what IBD does.
As an example: 3-months ago “auto parts” may have been ranked 70 out of 239 Morningstar industries and sub industries, 2-months ago, the ranking may have changed to 40 and one month ago the ranking changed to 10. Ranking can be based on price trend versus the market.
However, I am unable to get the 30-day or 5-day price trend versus the market to work when the Morningstar industry groups are the watchlist.
Please let me know if this can be done and if the time periods for “price trend versus the market” can be adjusted.
Thanks
|
Hi
I am having a problem understanding the fundamental data that has been added to tc2000. For example, operating cash fwilow 1 yr for Alteria -- MO. TC 2000 shows 12.3 billion with the values on the chart changing every few months, -- Yahoo shows total cash flows from operations of 3.903 billion for the year ending dec 30 2012 and total cash flows from operations of 1.793 billion for the quarter ending March 30 2013. What am i missing?
Bob
|