How would I create TOS SCAN RSI UNDER 20 & CLOSE > 200-DAY SMA


Category:
0
0

How would I create TOS SCAN RSI UNDER 20 & CLOSE > 200-DAY SMA –

Alternate 1: Stocks that have a RSI under 20 for 3 days and a closing price above the 200 SMA

Plot scan = (RSIWilder(length = 2) < 20 && RSIWilder(length = 2)[1] < 20 && RSIWilder(length = [2] < 20 && Close > SimpleMovingAvg(length = 200))

Alternate 2: stocks that have a 3-day RSI under 20 a closing price above the 200 SMA

Plot Scan =(RSIWilder(length = 3) < 20 && Close > SimpleMovingAvg(length = 200))

Comment: Set agg to day.

#end

I found these scripts on https://github.com/jshingler/TOS-and-Thinkscript-Snippet-Collection/blob/master/TOS%20%26%20ThinkScript%20Snippet%20Collection.md#SCAN_RSI_UNDER_20_AND_CLOSE_%3E_200

but I didn’t know how to create this in TOS

Many thanks

Happy to donate again to PayPal

 

 

Marked as spam
Posted by (Questions: 2, Answers: 1)
Asked on February 21, 2019 12:33 pm
393 views
0

Pete – I sent you a new PayPal donation a couple of days ago.
Could you give me an insight as to why I am getting RSI results > 20 – screenshot is in my previous comment below

( at March 3, 2019 11:53 am)
0

A severe health issue prevents me from working at this time. Surgery is scheduled for March 6th and should begin my recover process. I will take a look at this request once I regain my strength. 

Thanks for your patience.

( at March 4, 2019 4:42 pm)
0

Did you check if the RSI column in your results section is set to a length of 3 and daily time frame to match your study filter?

( at April 6, 2019 9:58 am)
0
Private answer

RSIWilder is not a valid built-in study for Thinkorswim. You will have to use RSI instead.

Here is the first piece of code, corrected to work on Thinkorswim.

Plot scan = (RSI(length = 2).RSI < 20 and RSI(length = 2).RSI[1] < 20 and RSI(length = 2).RSI[2] < 20 and Close > SimpleMovingAvg(length = 200));

See if you can work out the changes required for the second.

Marked as spam
Posted by (Questions: 37, Answers: 4087)
Answered on February 27, 2019 12:14 pm
0

Thanks Pete – Plot Scan =(RSI(length = 3) < 20 && Close > SimpleMovingAvg(length = 200)); works – thanks for showing me the code construct – the scan – as does your code above – produces strange results in that the RSI results are all above 20 – Please see screenshot – https://i.imgur.com/fQMtnXw.png
I am not sure how to understand those RSI results but anyway..
New PayPal donation on the way
Best Wishes Matthew

( at February 27, 2019 1:50 pm)