Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Profile: THEBIGASS
About
User Name: THEBIGASS
Groups: Gold User, Member, TeleChart
Rank: Registered User
Real Name:
Location
Occupation:
Interests:
Gender: Unsure
Statistics
Joined: Monday, May 18, 2009
Last Visit: Tuesday, January 13, 2015 10:43:25 PM
Number of Posts: 7
[0.00% of all post / 0.00 posts per day]
Avatar
Last 10 Posts
Topic: finding stocks with nearly flat linear regression line
Posted: Wednesday, December 10, 2014 2:22:15 PM

Thank you. I will give it a try. I did not mean to write EMA but I didn't see it until after I posted, I just wanted SMA.. But thanks for letting me know how to amend that.

I appreciate your help.  I will start testing it out and I hope ti gives the results I was looking for.  Thanks again.

Topic: finding stocks with nearly flat linear regression line
Posted: Wednesday, December 10, 2014 3:30:29 AM

Thank you -. I would start with just 6 days as that is closest to 5 days we use on the EMA, and go from there. I only need to identify the slope of the 5dma to weed out hits I do not want. I only want stocks with a price that closed above the 5dma line for the first time in X days when the LRS slope of the 5dma is positive, OR stocks with a price that closed under the 5mda line for the first time in X days when the slope is negative. We can try to define the degree of the slope as > 5% or < -5% and then tweak from there but I don&#39;t think it matters too much.  X days can be 5 or 6 but I can also tweak that later.

I know that this sounds like I asking you to write a formula for me - I am sorry for that.  I have tried to research the coding but honestly its over my head. I know what I am trying to do in lay terms. Coding it so a computer can identify these patterns it is more challenging.  I think the LRS of the MA is the trick to identifying the direction of the MA line as either "pointing up" or "pointing down" as we discussed in the link you put up above.  I appreciate your guidance either way.

 

 

Topic: finding stocks with nearly flat linear regression line
Posted: Tuesday, December 9, 2014 3:05:52 PM

I think what I want is to determine the linear regression slope on the moving average. 

I had this formula which you helped me with, but it isn&#39;t narrow enough.

(C > AVGC5 AND C1 <= AVGC5.1 AND AVGC5 > AVGC5.1) OR (C < AVGC5 AND C1 >= AVGC5.1 AND AVGC5 < AVGC5.1)

I want to make sure the slope of the moving average is defined because I only want hits that had a crossover above the MA when the slope grade is positive and cross under the MA when the slope grade is negative. And I want that crossover to have happened today, or within the last 2 days. 

If we don&#39;t need to define the LRS and can do this another way, great, but based on what i read in these fora that seemed to be one way to do it that made sense to me.

Thanks for your help

Topic: finding stocks with nearly flat linear regression line
Posted: Tuesday, December 9, 2014 6:55:30 AM

How would you turn this into a 5 day slope?  I guess if I wanted to screen for greater than 5% I just change < to >?  Or more precise i want to take a 5 day simple moving average with a slope greater than 5%.

And if I wanted to find a stock with a closing price that closed on the other side of the slope line either in the last 1 or 2 days?   Meaning, 3 days ago it was under the slope and today it is above the slope.

Technically I would want to find stocks that just recently closed above the slope line with a >5% slope AND stocks that recently closed below slopes <-5% if slopes can be measured in positive and negative slopes

You helped me before on something similar 5 years ago but it was a different version of TC and the formulas i had are lost now.  Trying to refine/rebuild it.

TIA!

Topic: Moving Average Trend vs Stock Price with Date
Posted: Friday, May 22, 2009 10:34:54 AM
Oh yes, I knew that.   doh!

Thank you again for your answer, and for your patience.
I really like this software.
Topic: Moving Average Trend vs Stock Price with Date
Posted: Friday, May 22, 2009 9:33:24 AM
Ok thanks! This is great.
Is there some date function so we can look for the crossover from 1 day ago?  2 days ago?  <= 3 days ago? 
Topic: Moving Average Trend vs Stock Price with Date
Posted: Friday, May 22, 2009 4:38:21 AM
Bruce you are awesome I have learned a lot reading here.  But I'm lost and need your help.
What I want is incredibly simple to explain but hard for me, a newbie, to code.

I want to Scan for stocks that Closed above the 5 day simple moving average, when that moving average is "pointing up"; and stocks that Closed below the 5 sma, when that moving average is "pointing down".

I am having difficulty figuring out how to write the code to explain that "pointing up" or "pointing down".
I tried to use variants of AVGC5 > AVGC5.2 but it didn't work. It gave me all kinds of results that didn't fit the trend pattern I was looking for.

Also, I am not sure whether to use xUp and xDn or C > AVGC5 AND C < AVGC5. Whether I used >< or xUp/xDn it seems to return all stocks that are > or < AVGC5. That is probably because I haven't found how to limit the date.   What I want are stocks that have crossed the 5sma today only, or maybe only within the last couple of days (presumably this date variable can be changed easily), and then only when the 5sma is trending in the same direction (up if the stock is above, or down if the stock is below). 

I read this http://forums.worden.com/default.aspx?g=posts&t=39459 and others but it just made me more confused (But I think somethig is there that helped).

Just in case I am not explaining it properly I'll try another way.   I want to weed the scan down to only find  stocks which closed below the 5dma when the 5dma is trending down, or if the stock closed above the 5dma when the 5dma is trending up. And I want to limit that search to stocks that crossed the 5sma today, yesterday, or within the last 3 days (I haven't decided which date range I want but I hope it is easy to play with that number).  I prefer to use closing data, and not intraday data. 

Thanks for any help. Love the program!  Can't wait to learn more.