Adding support for momentum backtesting and improving performance of indicator functions.