StockFetcher Forums · Filter Exchange · hNeed help writing a filter for Center Linear Regression Line(45,1.0)<< >>Post Follow-up
morteza471
132 posts
msg #48163
Ignore morteza471
11/26/2006 2:35:10 PM

need help writing a filter for stock that closed above the Center Linear Regression Line(45,1.0)1 day ago and is there first day above the Center Linear Regression Line(45,1.0)
thank you


TheRumpledOne
6,411 posts
msg #48165
Ignore TheRumpledOne
modified
11/26/2006 4:14:42 PM

Fetcher[
set{CCb,days(close is above Center Linear Regression Line(45,1.0),100)}
set{CCa,days(close is below Center Linear Regression Line(45,1.0),100)}
set{ClrxClr, CCa - CCb}

add column ClrxClr

add column Center Linear Regression Line(45,1.0)

draw Center Linear Regression Line(45,1.0)

ClrxClr is between 0 and 2.9

close > 1
volume > 1000000

sort column 5 descending
]



ClrxClr will tell you how many days the close has been above/below the Center Linear Regression Line since the last crossover.

I believe you want stocks when ClrxClr = 1 or = 2. Not 100% sure.

HTH.













morteza471
132 posts
msg #48179
Ignore morteza471
11/27/2006 10:18:20 AM

thank you. good filter i changed the volume from 1000000 to 100000 and got lot more hits. thanks


TheRumpledOne
6,411 posts
msg #48299
Ignore TheRumpledOne
modified
12/1/2006 8:06:03 PM

You're welcome.

I just post high close/volume numbers so I don't get a bunch of hits when I am testing these.





StockFetcher Forums · Filter Exchange · hNeed help writing a filter for Center Linear Regression Line(45,1.0)<< >>Post Follow-up

*** Disclaimer *** StockFetcher.com does not endorse or suggest any of the securities which are returned in any of the searches or filters. They are provided purely for informational and research purposes. StockFetcher.com does not recommend particular securities. StockFetcher.com, Vestyl Software, L.L.C. and involved content providers shall not be liable for any errors or delays in the content, or for any actions taken based on the content.


Copyright 2022 - Vestyl Software L.L.C.Terms of Service | License | Questions or comments? Contact Us
EOD Data sources: DDFPlus & CSI Data Quotes delayed during active market hours. Delay times are at least 15 mins for NASDAQ, 20 mins for NYSE and Amex. Delayed intraday data provided by DDFPlus


This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.