Screener and Indicator showing different values
Forums › ProRealTime English forum › ProScreener support › Screener and Indicator showing different values
- This topic has 8 replies, 2 voices, and was last updated 3 years ago by DrJonoG.
-
-
05/05/2021 at 11:48 AM #168835
Hi all,
I was wondering if anyone could help.
I’ve made a screener, that I’m also using as an indicator so I can visually see. However, despite copying and pasting the code across, they show different values.
1234567// Calculate RSI and smoothsmoothRSI = (average[3](RSI[9]) + average[2](RSI[14])) / 2// Calculate RSI bands and center pointhigherB = LinearRegression[36](Highest[128](RSI[78]))lowerB = LinearRegression[36](Lowest[128](RSI[78]))center = (higherB+lowerB) / 2I’m plotting the higher and low and center values. All of them differ in my indicator values when compared to those I output from my screener… Can anyone help?
Thank you
05/05/2021 at 1:51 PM #168854At first sight it seems not related to the 254-bar limit of screeners, but it could be despite the sum of single periods, because LINEARREGRESSION could need more than its periods to make correct calculations.
It looks like SMA vs. EMA. EMA’s need more bars than SMA to calculate the correct values for the same periods.
Try replacing LINEARREGRESSION with AVERAGE.
If this solves your problem then you need to use shorter periods.
05/05/2021 at 5:31 PM #16887105/05/2021 at 5:35 PM #16887205/06/2021 at 12:19 AM #168888As to smoothRSI, it works fine (see pic), both as an indicator and a screener. Sometimes there can be some minor differences due to a different update timing.
As to the whole screener & indicator, there are always some minor differences (just a few decimals). I cannot tell what’s the source of those differences as they don’t seem related to the 254-bar limit. They are most likely due to some different rounding.
05/06/2021 at 6:10 AM #168899Thank you for trying this out.
Yeah, in a lot of cases it is decimal, but occasionally it can be off by 3 or so. I thought it could be to do with real time vs slightly delayed, but 3 difference is too high for this. Both are in timeframes of 5 minutes, could this be anything to do with it?
Thank you again
Jono
05/06/2021 at 7:48 AM #168902Okay, so I’ve no figured out what is causing the differences, but do not understand why.
I have an indicator that plots the smoothRSI line we have been talking about, but also on that indicator I have an RSI[78] that is hidden (this is the default one that comes with the software, so I cannot edit anything other than nbr and close etc). Now if I remove this the smoothRSI value changes…
What exactly does the built in RSI indicator do? The line I’m getting from having them both on the same chart is what I’m after, not the one if RSI[78] is removed. I’m just not sure what this indicator is doing to the rest of the values.
If you want to try and duplicate this, add a new indicator using the default rsi and set it to 78 on close. Create a new indicator with the smoothRSI line from before and add this to the RSI indicator. Now Create a screener with the smoothRSI line and compare.
05/06/2021 at 10:27 AM #168928I tested a simple 78-period RSI and I experienced some small differences.
I can’t find out the cause, so you’d better hit Ctrl+M and open a ticket with the assistance.
05/06/2021 at 10:54 AM #168931Thank you 🙂
I’ve done as you suggested. I’ll update this post once I hear back for anyone else that encounters the same problem
1 user thanked author for this post.
-
AuthorPosts
Find exclusive trading pro-tools on