Hi to all!
I want a simple screener to get the RSI(14) values of multi time frames.
Something like this:
myRSI = RSI[14]
TIMEFRAME(weekly)
c1 = myRSI
TIMEFRAME(daily)
c2 = myRSI
TIMEFRAME(60 minutes)
c3 = myRSI
SCREENER[c1 and c2 and c3]
I don’t understand why the above code don’t work.
Any help will be appreciated!
Thanks in advance
Try inserting this at line 9 and also as the first line:
TIMEFRAME(default)
Your conditions c1 and c2 and c3 will only test if the RSI[14] is above 0 or not (true), and it is indeed the case.
You won’t get any value in the ProScreener this way, so I wonder what it the exact purpose of your request?
To get values in a column as a sorting criteria, the variables must be with parenthesis:
screener(c1)
but you can only have one column, so only one variable.
Firstly: ProScreener requires TIMEFRAME(1 hour), not TIMEFRAME(60 minutes) which is reserved to ProOrder
Secondly: If in your DEFAULT TF MyRsi=53.2456, then AND will make sure ALL values will be equal at the same time, which is pretty impossible! (try replacing AND with OR)
Thirdly: Your screener doesn’t seem to have any logical meaning, if you want to have the three TF’s ALL above oversold, or whatever else you prefer, you should write:
TIMEFRAME(weekly)
c1 = RSI[14] > 30
TIMEFRAME(daily)
c2 = RSI[14] > 30
TIMEFRAME(1 hour)
c3 = RSI[14] > 30
timeframe(default)
SCREENER[c1 and c2 and c3]
Thanks to all for the help. My logic about the question was to get the RSI values from different time-frames in dedicated columns in ProScreener.
As I am coming from other trading platform, this feature it’s possible. But with your help I just played a little with the code and got finally some result.
Thanks again!