This script isn't about creating a correlation script with labels, there is a perfect working example of @Mango2Juice (Correlation Matrix, which was inspired by @Daveatt's Correlation Matrix)
The intention was making it with the use of as less code as possible, looping through array's
The Pine correlation function doesn't work consistently in a local scope (loop), so I had to work around it
Iam also getting max_bars_back error any fix for this really appreciated
mpoyser
⋅
FYI : I added max_bars_back=5000 at the study level to fix it i.e. study("Correlation [array's]", overlay=false,max_bars_back=5000,max_lines_count=500)
I am intermittently getting a 'Pine cannot determine the referencing length of a series. Try using max_bars_back' error, even after I add max_bars_back = 300 to the study call.
I have read this may have something to do with how you are using bar_index. Is there a fix for this?
rbower
⋅
"barstateIsReallyLast"
nice lol
fikira
⋅
@rbower, Glad it is noticed :)
Sometimes it happens the data remains on the screen after a bar close, there are several solutions,
but this one does the trick in some occasions
:) ;)