Rank of the current value within the trailing window (1-based, average tie rule).
Trailing-window length.
https://screamer.readthedocs.io/en/latest/ for the Python reference and full details.
Rank of the current value within the trailing window (1-based, average tie rule).