Backtesting of various algorithmic trading strategies written in R