2damoon 6 posts msg #156005 - Ignore 2damoon modified |
3/2/2021 7:52:22 PM
I was trying look through the manual and make my code, is there a way to show only stocks where the 50 day moving average is between certain numbers. I tried to below filter but it draws a like of the slope of the 50 day moving average rather than show calculate the slow one the 50 day moving average to show screen stocks.
draw MA(200)
Show stocks where the 50 day slope of MA(50) is between 0
close price above MA(50) for 5 days
RSI(250) is above 50
close is above 3
close is below 10
THANK YOU ALL!
|
graftonian 1,089 posts msg #156010 - Ignore graftonian |
3/3/2021 9:20:18 AM
line 2 of your code needs 2 values, I think that was the problem.
A couple of small changes:
draw MA(200)
50 day slope of MA(50) is between 0 and .1
close above MA(50) for the last 5 days
RSI(250) is above 50
close between 3 and 10
|
push5280 201 posts msg #156011 - Ignore push5280 |
3/3/2021 11:01:40 AM
clickable
|
push5280 201 posts msg #156012 - Ignore push5280 |
3/3/2021 11:03:14 AM
added the rsi line at 50
|
nibor100 1,031 posts msg #156014 - Ignore nibor100 |
3/3/2021 12:19:24 PM
Beware of SF's "between statement" as sometimes the results will include stocks with either or both of the values that are supposed to be un-included boundaries.
For example, run either of the clickable filters, and sort the close/Last column a couple of times to see the overlaps if they exist.
Ed S.
|