View source: R/tradeStrategySMA.R
tradeStrategySMA | R Documentation |
Moving average crossover strategy
tradeStrategySMA(data = RTL::stocks$uso, par1value = 50, par2value = 200)
data |
Dataframe of OHLC data e.g. RTL::uso. |
par1value |
Value of first parameter e.g. short MA. |
par2value |
Value of second parameter e.g. long MA. |
Dataframe with indicators, signals, trades and profit and loss. tibble
Philippe Cote
tradeStrategySMA(data = RTL::stocks$uso, par1value = 50, par2value = 200)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.