StockFetcher Forums · General Discussion · Distance between price and moving average...<< >>Post Follow-up
ArnoBui
4 posts
msg #139696
Ignore ArnoBui
12/1/2017 10:41:23 AM

Hi all,

Who solved defining the distance between e.g. a high of a bar and a moving average...?!
I'm looking for a touch or proximity; not a break.
Everything I tried is inaccurate:
.... is touching the ....
.... is less than 1% above .....
.... is near the ....

Thanks!

emwalker
35 posts
msg #139707
Ignore emwalker
12/1/2017 12:36:57 PM

Fetcher[set{a, MA(50) * 0.99}
set{b, ma(50) * 1.01}
high is above a
high is below b
draw MA(50)
]



just change to whatever moving average you want and whatever range you want. right now it is showing stocks where the high is within 1% above or 1% below the MA(50)

ArnoBui
4 posts
msg #139708
Ignore ArnoBui
12/1/2017 12:46:59 PM

... can't believe people are that smart... :-o

:-) Thank you; now I can move on from here!!

graftonian
1,089 posts
msg #139747
Ignore graftonian
12/3/2017 3:31:57 PM

Fetcher[
set{s1, high - ma(50)}
set{spread, s1 / ma(50)}
spread > 0
add column spread
sort on column 5 ascending
draw ma(50)
]




StockFetcher Forums · General Discussion · Distance between price and moving average...<< >>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.