StockFetcher Forums · General Discussion · Close within an ATR to MA<< >>Post Follow-up
leopoldus
1 posts
msg #105296
Ignore leopoldus
3/7/2012 7:32:21 PM

Little help pls:
how i could write that a close is within, lets say, 1 ATR of MA.
(Close - close of MA(X)) < ATR(14)
Thanks,

SAFeTRADE
644 posts
msg #105312
Ignore SAFeTRADE
modified
3/8/2012 3:48:24 PM

Try this for starters.
Fetcher[
dow 30
add column close
add column ma(10)
ADD COLUMN ATR(14)
SET{a, ma(10) + atr(14)}
set{b, ma(10) - atr(14)}
set{dual, count(close < a,1) * count(close > b,1)}

add column dual

draw a on plot price
draw b on plot price
]



StockFetcher Forums · General Discussion · Close within an ATR to MA<< >>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.