Same RSquared value for different series
Author: traderray
Creation Date: 5/17/2015 9:14 AM
profile picture

traderray

#1
I have the following script. While the 2 series of numbers are completely different, they return the same R Squared value. Any suggestions?

CODE:
Please log in to see this code.
profile picture

Eugene

#2
Actually, it's neither a RSquared specific issue nor a problem per se. Take any series e.g. RSI instead of RSquared and the result will be the same. I think the reason is Wealth-Lab making a shallow copy vs. deep copy. Your "a" and "b" series are identical. Define them uniquely and the value will be correct:

CODE:
Please log in to see this code.
profile picture

traderray

#3
As always, you have solved my problem. Thanks.
profile picture

Eugene

#4
Glad to have helped.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).