1. refactor cal_index.R,
2. to do: tune the parameters, thresholds etc.
3. to do: what about relative return time series correlation?