RSI Scanner bug?


Category:
0
0

Hi Pete,

Please take a look at the code below and attached images. I notices that there’re times the scanner is not working correctly (I set it to scan on 15 mins.). RSI is below the centerline (50), but it alerts as above 50. Any bug? Please advise.

input length = 14;
input price = close;
input averageType = AverageType.WILDERS;
def rsi = RSI(length, 70, 30, price, averageType).RSI;
def centerLine = 50;
# use this to scan for rsi crossing above the center line
plot scan = rsi[1] < centerLine and rsi > centerLine;
# use this to scan for rsi crossing below the center line
#plot scan = rsi[1] > centerLine and rsi < centerLine;


input length = 14;
input price = close;
input averageType = AverageType.WILDERS;
def rsi = RSI(length, 70, 30, price, averageType).RSI;
def centerLine = 50;
# use this to scan for rsi crossing above the center line
#plot scan = rsi[1] < centerLine and rsi > centerLine;
# use this to scan for rsi crossing below the center line
plot scan = rsi[1] > centerLine and rsi < centerLine;

Attachments:
RESOLVED
Marked as spam
Posted by (Questions: 23, Answers: 57)
Asked on July 26, 2017 7:19 am
202 views
0
Private answer

Very common issue. See this post for details: https://www.hahn-tech.com/ans/hourly-adx-watchlist-not-matching-hourly-chart/

Be sure to check ALL your chart settings in addition to the aggregation period set on the scan (extended hours checkbox). The default settings for intraday charts do not match the data used in Watchlists, Scans, Study Alerts or Conditional Orders.

Marked as spam
Posted by (Questions: 37, Answers: 4087)
Answered on July 26, 2017 7:39 am
0

Just to clarify. On intraday timeframes, I UNCHECK the box ”Start aggregations at market open”. On the scan, I CHECK the box ”Include Extended-Hours Trading session”. Is that correct?

( at July 26, 2017 8:23 am)
0

UNCHECK the box ”Start aggregations at market open”… Yes
CHECK the box ”Include Extended-Hours Trading session”… Only if you have your chart set to display extended hours. Your screenshot was far too narrow and it is not possible to see your settings.

( at July 26, 2017 8:41 am)
0

Yes. I have my chart set to display extended hours so I check the box ”Include Extended-Hours Trading session.” Everything seems to match now. Thank you!

( at July 26, 2017 9:51 am)