StockFetcher Forums · General Discussion · Any one day or all days<< >>Post Follow-up
inventivebuyer
6 posts
msg #159543
Ignore inventivebuyer
9/4/2022 1:35:50 PM

Hello,

When I run this query, conceptually, does this give me stocks that have close above MA(50) for ALL three days or ANY one of the three days?


close is above MA(50) within last 3 days
chart-time is 2 weeks

xarlor
581 posts
msg #159547
Ignore xarlor
modified
9/4/2022 4:11:38 PM

At least one. Can be one, two, or three, but if at least one is true, then the statement is true.



inventivebuyer
6 posts
msg #159554
Ignore inventivebuyer
9/5/2022 1:09:19 PM

Thank you!. How about the following query? In this case, does the condition have to be true for all 3 days


close is above MA(50) for the last 3 days
chart-time is 2 weeks

Mactheriverrat
3,153 posts
msg #159555
Ignore Mactheriverrat
modified
9/5/2022 1:19:55 PM

Submit
Fetcher[
show stocks where price is above ma(50)
/* p50 is number of consecutive days price above (+)/below(-) previous MA(50) */
set{price50b,days( price is above MA(50) ,250)}
set{price50a,days( price is below MA(50) ,250)}
set{price50, price50a - price50b} and add column price50 {price50}
do not Draw price50

Set{cntp50,count( price > ma(50) ,1)}
draw cntp50
Set{cntp50b,count( price < ma(50) ,1)}
draw cntp50b

volume is above 250000
market is not otcbb
]






xarlor
581 posts
msg #159557
Ignore xarlor
9/5/2022 2:47:17 PM

Correct, must be true for all 3 days:

close is above MA(50) for the last 3 days
chart-time is 2 weeks

KSK8
561 posts
msg #159558
Ignore KSK8
9/5/2022 3:04:55 PM

inventivebuyer,

Seeing that you're new, I'll give you some pointers:
90% , if not more, of SF filters are hot garbage. I would not trade any of them until you have carefully assessed them to the point of satisfaction.
Also, if you're new to trading, paper trade before dipping your toe into the market.

Good luck to ya

-THE KING

Mactheriverrat
3,153 posts
msg #159559
Ignore Mactheriverrat
9/5/2022 4:21:43 PM

If one sorts the price50 column and ones they scroll down to the 3. That means that price has been above ma 50 for there days.

inventivebuyer
6 posts
msg #159564
Ignore inventivebuyer
9/6/2022 2:02:51 AM

KSK8,

What are some paper trading platforms?

KSK8
561 posts
msg #159566
Ignore KSK8
9/6/2022 1:53:11 PM

None that I know of well enough to recommend. I don't doubt there's a variety to choose from, it just requires due diligence with picking.

dmewbourne
15 posts
msg #159626
Ignore dmewbourne
10/1/2022 10:58:56 AM

This will ensure the close is above MA(50) for all of the last 3 days:

count(close is above MA(50), 3) > 2

StockFetcher Forums · General Discussion · Any one day or all days<< >>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.