algorithmic trading with technical indicators in r by dr