powered by
Based on dividend yield
tradeStrategyDY(data, par1value = 50, par2value = 200)
Dataframe with indicators, signals, trades and profit and loss.
Dataframe of OHLC data e.g. RTL::uso
Value of first parameter e.g. short MA
Value of second parameter e.g. long MA
Philippe Cote
tradeStrategyDY(data = RTL::stocks$ry, par1value = 50, par2value = 200)
Run the code above in your browser using DataLab