powered by
Moving average crossover strategy
tradeStrategySMA(data = RTL::uso, 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
Run the code above in your browser using DataLab