backtest-functions function

User defined functions to perform portfolio backtesting