• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Finance Train

Finance Train

High Quality tutorials for finance, risk, data science

  • Home
  • Data Science
  • CFA® Exam
  • PRM Exam
  • Tutorials
  • Careers
  • Products
  • Login

Introduction to Quantmod in R

Data Science, Quantitative Finance

This lesson is part 13 of 21 in the course Quantitative Trading Strategies in R

The quantmod package for R is designed to assist the quantitative traders in the development, testing, and deployment of statistics based trading models. Using quantmod, quant traders can quickly explore and build trading models.

The important features of quantmod that we will use are divided into three categories: 1) downloading data, 2) charting, and 3) technical indicators and other functions.

Downloading Data

The Quantmod package provides useful tools for loading, and managing data in R. With Quantmod we can download data from public sources such as Yahoo, Oanda, Google, the Federal Reserve Economic Data(FRED), and also from  SQL databases and CSV files. 

Charting

The package has great capabilities for creating charts and we can plot different graphs types such as lines, bars and candlestick. Once we have the charts, we can add technical indicators into it to analyze signals, entry and exit points from a specific trading rules.

Technical Indicators and Trading Signals

Quantmod has a wide list of technical indicators (MACD, RSI, EMA, SMA, ROC, and ADX, among others) that we can plot together with the price series or price candlestick charts. Finally, it is possible to create trading signals with the indicators and plot them into the chart.

To start using the Quantmod library, you can install and load it in your R environment using the following commands in R console or R Studio (Preferred).

install.packages('quantmod') 
library(quantmod) 
Previous Lesson

‹ Plotting the VIX Index and TED Spread in R

Next Lesson

Downloading Data Using Quantmod Package in R ›

Join Our Facebook Group - Finance, Risk and Data Science

Posts You May Like

How to Improve your Financial Health

CFA® Exam Overview and Guidelines (Updated for 2021)

Changing Themes (Look and Feel) in ggplot2 in R

Coordinates in ggplot2 in R

Facets for ggplot2 Charts in R (Faceting Layer)

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

In this Course

  • Introduction to Quantitative Trading
  • Quantitative Trading – Advantages and Disadvantages
  • Types of Quantitative Trading Strategies
  • Momentum Strategies
  • Mean Reversion Strategies
  • Market Making Strategies and Day Trading Strategies
  • How to Generate Trading Ideas
  • Designing A Trading Strategy For Profit
  • Backtesting a Trading Strategy – Considerations
  • Risk Management of a Trading Strategy
  • Risk Indicators – VIX Index and TED Spread
  • Plotting the VIX Index and TED Spread in R
  • Introduction to Quantmod in R
  • Downloading Data Using Quantmod Package in R
  • Creating Charts with Quantmod
  • Data Analysis with Quantmod in R
  • Measuring Overall ETFs Performance
  • Quantstrat Example in R – EMA Crossover Strategy
  • Quantstrat – EMA Crossover Strategy – Performance and Risk Metrics
  • Quantstrat Example in R – RSI Strategy
  • Quantstrat Case Study – Multiple Symbol Portfolio

Latest Tutorials

    • Data Visualization with R
    • Derivatives with R
    • Machine Learning in Finance Using Python
    • Credit Risk Modelling in R
    • Quantitative Trading Strategies in R
    • Financial Time Series Analysis in R
    • VaR Mapping
    • Option Valuation
    • Financial Reporting Standards
    • Fraud
Facebook Group

Membership

Unlock full access to Finance Train and see the entire library of member-only content and resources.

Subscribe

Footer

Recent Posts

  • How to Improve your Financial Health
  • CFA® Exam Overview and Guidelines (Updated for 2021)
  • Changing Themes (Look and Feel) in ggplot2 in R
  • Coordinates in ggplot2 in R
  • Facets for ggplot2 Charts in R (Faceting Layer)

Products

  • Level I Authority for CFA® Exam
  • CFA Level I Practice Questions
  • CFA Level I Mock Exam
  • Level II Question Bank for CFA® Exam
  • PRM Exam 1 Practice Question Bank
  • All Products

Quick Links

  • Privacy Policy
  • Contact Us

CFA Institute does not endorse, promote or warrant the accuracy or quality of Finance Train. CFA® and Chartered Financial Analyst® are registered trademarks owned by CFA Institute.

Copyright © 2021 Finance Train. All rights reserved.

  • About Us
  • Privacy Policy
  • Contact Us