temaCrossoverBacktest | R Documentation |
Backtest fixed fractiona reallocation with TEMA exit signals on a given time series of prices. Assumes perfect trading at close prices with no transaction costs, etc.
temaCrossoverBacktest(N, prices, kelly, rate, bankroll, plotPaths = FALSE)
N |
number of days for the moving window in the TEMA filter |
prices |
the time series of prices |
kelly |
the fraction to invest |
rate |
the rate earned on cash account |
bankroll |
the initial bankroll to invest |
plotPaths |
boolean to plot sample paths |
list
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.