preparing risk metric calculator for backtesting