StockFetcher Forums · Filter Exchange · Tight Range<< >>Post Follow-up
JohnT328
53 posts
msg #143868
Ignore JohnT328
6/22/2018 6:15:16 AM

Hi, can someone help me create a filter for a tight price range.

What I am looking for is price to have been in a tight range between 0-5% above MA (1) and 0-5% below MA (1) for the last two to 7 days

Can someone assist?

Thanks

four
5,087 posts
msg #143874
Ignore four
6/22/2018 11:58:39 AM



Fetcher[
sp500
set{x, ma(5) / ma(1)}
draw x line 1
draw x line .99

x has been below 1 for the last 5 days
x has been above .99 for the last 5 days
]



JohnT328
53 posts
msg #143887
Ignore JohnT328
6/23/2018 10:49:25 AM

First, thank you for the filter.

Can you tell me what some of the variables mean because I am not getting the exact results I want and I think I just need to tweak it a little bit. For example, what is the purpose of MA (5) in the filter? Also, what variable/s represent the 0-5% range (I may need to restrict that percentage to 0-2%)

Thanks

four
5,087 posts
msg #143888
Ignore four
modified
6/23/2018 12:04:39 PM

I agree with your observations. MA1 is simply the day's close. I don't consider +- 5% as a tight range over the course of a week.


Try different combinations with the previous filter.

Individually or both modified at the same time--to reduce the channel width:
* try changing the ma5 to ma4
* try changing the values for the width of the channel (replace .04 with .03)

-- --

Here is another offer to work with:

Fetcher[
sp500
set{X,5 day Slope of close}
x above -.04 for the last 5 days
x below .04 for the last 5 days
draw x line 0.04
draw x line -0.04
]





StockFetcher Forums · Filter Exchange · Tight Range<< >>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.