StockFetcher Forums · Filter Exchange · Filter results only when market is above ma(200)<< 1 2 3 >>Post Follow-up
judgetrade
107 posts
msg #40051
Ignore judgetrade
1/8/2006 7:40:04 AM


"if qqqq > ma (200) then....
Filter criteria"

so the filter would only give results if the QQQQ is above the ma(200).

is something like this possible?




guru_trader
485 posts
msg #40168
Ignore guru_trader
1/11/2006 7:22:20 PM

Try this:

Fetcher[
ma(200) is above ind(QQQQ,ma(200))
]




TheRumpledOne
6,411 posts
msg #40173
Ignore TheRumpledOne
1/11/2006 11:45:35 PM

Fetcher[
/* QQQQ close is above the QQQQ ma(200) */

ind(qqqq, close) above ind(qqqq,ma(200))

/* nasdaq stocks only */

market is nasdaq

/* additional selection criteria */

rsi(2) below 1

/* column display */

add column ind(qqqq, close)

add column ind(qqqq,ma(200))

/* NORMALIZE accumulation distribution */

set{adval, INDPOSITION(accumulation distribution, 60) * 100 }

/* NORMALIZE momentum(12) */

set{moval, INDPOSITION(momentum(12), 60) * 100}

/* NORMALIZE rsi(2) */

set{rsval, RSI(2) }

/* NORMALIZE williams %r(10) */

set{wrval, INDPOSITION(williams %r(10), 60) * 100 }

add column wrval
add column adval
add column rsval
add column moval

/* DRAW THE MP RSIWLR CHART */

and draw wrval
and draw adval on plot wrval
and draw moval on plot wrval
and draw rsval on plot wrval

]



This filter will only produce results when the close of the QQQQ is above its ma(200). I assumed you only wanted NASDAQ STOCKS.

I threw in the rsi(2) < 1 selection and WARM display.

HTH.

MAY ALL YOUR FILLS BE COMPLETE.


nikoschopen
2,824 posts
msg #40178
Ignore nikoschopen
1/12/2006 6:04:24 AM

While the following filter should work in theory by substituting the "filter criteria" for your own, it could get messy in practice depending on how elaborate your filter may be.

set{if,count(ind(QQQQ,close) above ind(QQQQ,MA(200)),1)}
set{then,if * "filter criteria"}

Hence if I'm looking for a stock with the closing price above EMA(50) only when QQQQ is above MA(200)...

Fetcher[
set{if,count(ind(QQQQ,close) above ind(QQQQ,MA(200)),1)}
set{then,if * close}
then is above EMA(50)
]




TheRumpledOne
6,411 posts
msg #40194
Ignore TheRumpledOne
1/12/2006 3:36:31 PM

"While the following filter should work in theory by substituting the "filter criteria" for your own, it could get messy in practice depending on how elaborate your filter may be.

set{if,count(ind(QQQQ,close) above ind(QQQQ,MA(200)),1)}
set{then,if * "filter criteria"}

Hence if I'm looking for a stock with the closing price above EMA(50) only when QQQQ is above MA(200)...




Fetcher[
set{if,count(ind(QQQQ,close) above ind(QQQQ,MA(200)),1)}
set{then,if * close}
then is above EMA(50)
]

"

KEEP IT SIMPLE...

Fetcher[
set{QQQQtest, count(ind(QQQQ,close) above ind(QQQQ,MA(200)),1) }

/* IS THE CLOSE OF THE QQQQ ABOVE THE MA(200) */

QQQQtest equal 1

/* IS THE CLOSE OF THE STOCK BEING TESTED ABOVE THE EMA(50) */

close > EMA(50)

/* the rest of your filter criteria goes below this line */
]



No need to use set statements unless you have to.

MAY ALL YOUR FILLS BE COMPLETE.


judgetrade
107 posts
msg #40202
Ignore judgetrade
1/12/2006 6:21:25 PM

Thank you all!!! Very much!!!


hballa
36 posts
msg #161213
Ignore hballa
7/11/2024 4:54:36 PM

Hi,
How to modify script to get stocks that crossed 200 EMA?

Mactheriverrat
3,153 posts
msg #161215
Ignore Mactheriverrat
7/11/2024 6:08:48 PM

Submit
Fetcher[
Show stocks where price crossed above EMA(200)
]




hballa
36 posts
msg #161216
Ignore hballa
7/11/2024 7:26:57 PM

Thanks for quick response, one more help needed. when we run this script, got SOUN, QS stocks. last 2 days those 2 on just above green line (MA10). Can you please help modify script to get stock details that are on green line for lase 2 days.

close is above 2
and close is below 15
and add column ema(200)
and add column ema(200) divided by close

snappyfrog
717 posts
msg #161218
Ignore snappyfrog
7/11/2024 11:23:50 PM

Fetcher[
close is between 2 and 15
and add column ema(200)
and add column ema(200) divided by close
and close is near ema(200)
]



StockFetcher Forums · Filter Exchange · Filter results only when market is above ma(200)<< 1 2 3 >>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.