"In statistics, kernel density estimation (KDE) is a non-parametric way to estimate the probability density function of a random variable." from wikipedia.com
Nice little script... With one point I don't quite see how it works. Supposedly arrays can store up to 100K items. For whatever reason, I can't get more than 7 or 8 floats pushed into a float array or Pine blows up. So... That's not a whole lot of obs to infer a pdf
As a matter of fact I see you have 7 obs preloaded.
How do you load up obs beyond 7 ?
I have an idea for how to circumvent that limitations (using int array - altho I think they blow up at 50 or so) but want to see if you have something better? or maybe it's just a user/noob error and none of you guys see this problem?
RicardoSantos
⋅
@hypercrush1, yes the high complexity of the script limits its utility alot, unfortunely..
THE_REAL_BCT
⋅
@RicardoSantos, gotit. thanks. Love the code you produce!
BTW I just tried a script that does nothing else than push 'close' into a float array... then do 2 things (sequentially)
1/ ping array.size and display it, and it returns 1300+ or so - scrip executes fine
2/ get item before last pushed on the array/stack - Pine pukes. Error message "array size = 1" (so it looks like pine lied in 1/ and all along!)
Is that a Pine bug? or feature?
THE_REAL_BCT
⋅
@THE_REAL_BCT, Ignore the last comment - user error ;)
KB0006
⋅
Thanks for sharing this, I've been trying to find an indicator that uses kernel method and this seems to be the only one! Though I don't quite understand what those numbers suggest. Can you explain it to a dummy like myself? lol
*phi*re