Coder Social home page Coder Social logo

pmaexps / portfolio-management-with-r Goto Github PK

View Code? Open in Web Editor NEW

This project forked from enricoschumann/pmwr

0.0 0.0 0.0 1.91 MB

Portfolio Management with R: Backtesting investment and trading strategies, computing profit-and-loss and returns, reporting, and more.

Home Page: http://enricoschumann.net/PMwR

License: Other

R 100.00%

portfolio-management-with-r's Introduction

Portfolio Management with R

About PMwR

Functions for the practical management of financial portfolios: backtesting investment and trading strategies, computing profit-and-loss and returns, analysing trades, reporting, and more. PMwR provides a small set of reliable, efficient and convenient tools that help in processing and analysing trade/portfolio data. The package does not provide a complete application that could be used 'as is', but building blocks for creating such an application.

PMwR grew out of various pieces of software that I have written since 2008. While the package has become fairly stable in recent years, the interfaces of functions may still not be fully stable (e.g., argument names might still be made consistent across functions); in some cases, generic functions might be introduced. The recommended practice is therefore to explicitly name arguments in function calls (and not pass arguments by position). Any changes in argument names will be documented in the NEWS file and so can be followed easily. More details are in the ChangeLog.

What PMwR provides

The package provides functions that can serve as building blocks for many activities in portfolio management.

  • Keeping track of transactions: The package provides functions for handling journals (sometimes called blotters). See ?journal and ?position.
  • Testing strategies: See ?btest (and this tutorial on backtesting).
  • Computing profit/loss and returns: See ?returns, ?rc, ?pl or ?unit_prices.

All details are in the manual. New features are often described in these notes.

I am grateful for comments, suggestions and corrections.

Installation

The latest stable version of the package is available from CRAN. The latest development version is available from http://enricoschumann.net/R/packages/PMwR/ . You can install either version directly from within R:

install.packages('PMwR') ## CRAN stable version

install.packages('PMwR', ## development version
                 repos = c('http://enricoschumann.net/R',
                           getOption('repos')))

The package depends on several other packages, which can be obtained from the same repository and from CRAN.

There are also publicly-available repositories at https://git.sr.ht/~enricoschumann/PMwR , https://gitlab.com/enricoschumann/PMwR and https://github.com/enricoschumann/PMwR.

portfolio-management-with-r's People

Contributors

enricoschumann avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.