New Members: Be sure to confirm your email address by clicking on the link that was sent to your email inbox. You will not be able to post messages until you click that link.

Linear regression- Slope x negative and reversing (going from descending to ascending)

How would I write a scan for 1)slope X that is <-.1 and 2) it has moved from descending and is beginning to move up ? Many thanks for the help.

Best Answers

  • markdmarkd mod
    Answer ✓
    You can do this on the advanced scan page by selecting slope from the technical indicators drop down.

    Change the slope parameter from 20 if you want a different period.
    Change the >0 to <-1

    To get a rising slope line, you have to decide what constitutes a turn - for instance, higher now than how many days ago? Maybe as many as five, maybe as few as two. Depending on what the stock is doing, five might be just right or too late. Two will get you in earlier, but might give you more false entries.

    So here's one way you could write the whole thing:

    and [Slope(20) < -1]

    and [slope(20) > 5 days ago slope(20)]

  • markdmarkd mod
    edited July 2014 Answer ✓
    Left out one thing:

    Although slope(20) < -1 is a pretty good indicator that slope has been falling recently, to be sure it is just beginning to turn, you could add:

    and [slope(20) < 6 days ago]

    or some number greater than your test for a turn, so 6 or 7 if the test is > 5 or 3 or 4 if the test is >2

Answers

Sign In or Register to comment.