Package: Strategy 1.0.1

Strategy: Generic Framework to Analyze Trading Strategies

Users can build and test customized quantitative trading strategies. Some quantitative trading strategies are already implemented, e.g. various moving-average filters with trend following approaches. The implemented class called "Strategy" allows users to access several methods to analyze performance figures, plots and backtest the strategies. Furthermore, custom strategies can be added, a generic template is available. The custom strategies require a certain input and output so they can be called from the Strategy-constructor.

Authors:Julian Busch

Strategy_1.0.1.tar.gz
Strategy_1.0.1.zip(r-4.5)Strategy_1.0.1.zip(r-4.4)Strategy_1.0.1.zip(r-4.3)
Strategy_1.0.1.tgz(r-4.4-any)Strategy_1.0.1.tgz(r-4.3-any)
Strategy_1.0.1.tar.gz(r-4.5-noble)Strategy_1.0.1.tar.gz(r-4.4-noble)
Strategy_1.0.1.tgz(r-4.4-emscripten)Strategy_1.0.1.tgz(r-4.3-emscripten)
Strategy.pdf |Strategy.html
Strategy/json (API)
NEWS

# Install 'Strategy' in R:
install.packages('Strategy', repos = c('https://quantsch.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Datasets:
  • assets - Random walks for 10 assets as example data.

On CRAN:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

26 exports 3.78 score 3 dependencies 29 mentions 30 scripts 126 downloads

Last updated 7 years agofrom:8e20477270. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKAug 28 2024
R-4.5-winOKAug 28 2024
R-4.5-linuxOKAug 28 2024
R-4.4-winOKAug 28 2024
R-4.4-macOKAug 28 2024
R-4.3-winOKAug 28 2024
R-4.3-macOKAug 28 2024

Exports:backtestcompareESgetBacktestSetupgetCostsgetFiltersgetIndicatorsgetParametersgetPricesgetSignalsgetStratFUNgetStratNamegetTradesgetWeightshitratiolossMDDnewStrategyFunctionperformanceperformanceIndicatorsplotDrawdownsplotPerformanceplotWeightssharpeStrategyVaR

Dependencies:latticextszoo

The Strategy - Package

Rendered fromStrategy.Rmdusingknitr::rmarkdownon Aug 28 2024.

Last update: 2017-08-24
Started: 2016-12-09

Readme and manuals

Help Manual

Help pageTopics
Random walks for 10 assets as example data.assets
Backtest Strategybacktest backtest,Strategy-method
Compare performance of 'Strategy'-objects.compare compare,Strategy-method
Expected ShortfallES ES,Strategy-method
Get backtest parameter values from 'Strategy'-objectgetBacktestSetup getBacktestSetup,Strategy-method
Get strategy function from 'Strategy'-objectgetCosts getCosts,Strategy-method
Get strategy values from 'Strategy'-objectgetFilters getFilters,Strategy-method
Get indicators from 'Strategy'-objectgetIndicators getIndicators,Strategy-method
Get strategy function parameters from 'Strategy'-objectgetParameters getParameters,Strategy-method
Get price data from 'Strategy'-objectgetPrices getPrices,Strategy-method
Get trading signals from 'Strategy'-objectgetSignals getSignals,Strategy-method
Get strategy function from 'Strategy'-objectgetStratFUN getStratFUN,Strategy-method
Get strategy function name from 'Strategy'-objectgetStratName getStratName,Strategy-method
Get trades according to the signals from the 'Strategy'-objectgetTrades getTrades,Strategy-method
Get weights from 'Strategy'-objectgetWeights getWeights,Strategy-method
Strategy Hit Ratiohitratio hitratio,Strategy-method
Get the losses of assets or portfolio over time.loss loss,Strategy-method
Strategy Performance Maximum DrawdownMDD MDD,Strategy-method
Create Own StrategynewStrategyFunction
Get Strategy Performanceperformance performance,Strategy-method
Strategy Performance IndicatorsperformanceIndicators performanceIndicators,Strategy-method
Plot of a 'Strategy'-objectplot plot,Strategy,missing-method plot.Strategy
Plot Strategy DrawdownsplotDrawdowns plotDrawdowns,Strategy-method
Plot Strategy PerformanceplotPerformance plotPerformance,Strategy-method
Plot Strategy WeightsplotWeights plotWeights,Strategy-method
Get Sharpe Ratio of Performancesharpe sharpe,Strategy-method
Create Strategy ObjectStrategy
'Strategy'-ClassStrategy-class
Value at RiskVaR VaR,Strategy-method