StockFetcher Forums · Filter Exchange · Major Indices above/below MA(20) and MA(50)<< >>Post Follow-up
glgene
613 posts
msg #97523
Ignore glgene
11/16/2010 11:07:29 PM

Last night I posted a script, but it was buried in the GLD vs. SPY topic. Midway thru that thread, the conversation turned to the overall market, zeroing in on the 20-day MA.

So here is the script relative to "Major Indices above/below their MA(20) and MA(50)" using ETFs as benchmarks.

100.00 = Close/MA(20) when both lines touch. Same with MA(50). The draw command also includes Bollinger bands. Best to use both the Table and Chart views.

I welcome constructive input as to how to make the script better, or comments re: its potential usage. Thanks, Duke56468, for your help so far; keep it coming! (Note: See how the figures change on Nov. 16 from 1 day ago on Nov. 15 [some from above 100 to below 100]). Overall, re: MA(20) shown is the current day and also 3 days back. That way a trend is more visible.

Fetcher[
symlist(spy,dia,qqqq,vti,iwm,veu)
add column ma(20)
add column separator
set{b,close}
set{c,ma(20)}
set{d,b/c}
set{d1,d*100}
set{x,ma(50)}
set{y,b/x}
set{y1,y*100}
add column y1{close/ma(50)}
add column separator
add column d1{close/ma(20)}
add column d1 1 day ago{1 day ago}
add column d1 2 days ago{2 days ago}
add column d1 3 days ago{3 days ago}
add column separator
draw ma(20)
draw ma(50)
draw bollinger bands
draw average volume(50)
]





StockFetcher Forums · Filter Exchange · Major Indices above/below MA(20) and MA(50)<< >>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.