An S4 class to store quantitative strategies and compute various performance figures.
pricesPrice data of the assets. If return data was given within the constructor, starting at 100.
weightsTime series of class xts indicating row wise weights of the assets.
indicatorsList of indicators of class xts.
stratName of the strategy function to be called. Could be a full file path to a custom strategy.
strat.paramsList of parameters as input for the strategy function. List entry names should match parameter names.
stratFUNContains the custom strategy function or NULL.
plotFUNContains the custom strategy function or NULL.
filtersList with filtered price data (e.g. MA(200)-data).
signalsTime series with trading signals of class xts.
backtest.signalsTime series with trading signals of the backtest of class xts.
backtest.parametersList of parameters of the backtest.
backtest.setupMatrix showing the backtest preferences.
volumeNumeric vector indicating the initial investment volume per asset.
costs.fixNumeric vector indicating the fixed costs per trade per asset.
costs.relNumeric vector indicating the relative costs per trade per asset.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.