Hi, I am a new member of the thinkScript community!
I want to code Pine Script Percentile Calculation in thinkScript.
Assuming there's no built-in function, I tried to look up built-in
I can statically type and sort manually, but given the length
I want to code Pine Script Percentile Calculation in thinkScript.
Calculates percentile using method of linear interpolation between the two nearest ranks.
Code:percentile_linear_interpolation(source, length, percentage) → series
Assuming there's no built-in function, I tried to look up built-in
sort(IDataHolder data)
but can't seem to find that either.I can statically type and sort manually, but given the length
n
is an input / dynamic where I need close[0] ... close[n]
, I wanted to know if there are tricks or if I've missed the docs.