Financial risk management based on functional data analysis. (18th August 2018)