Finance Train
Menu

Courses / Ebook

Quantitative Trading Strategies in R

21 lessons · 1 free to read, 20 in the ebook

A step-by-step approach to building solid quantitative trading strategies using R

Quantitative and algorithmic trading now accounts for over one-third of all trading across financial markets in the world. This ebook is created with the objective of teaching retail traders and professional quants traders how to build and execute their own quantitative trading strategies. The primary focus of this ebook is on understanding the process of designing a successful trading strategy and learning to use R for statistical modeling and analysis of financial data, building a trading strategy, and then backtesting and risk management of the trading strategy.

You will learn about how to set up a strategy using the R quantstrat package. The ebook provides complete working and setup of the strategy using quantstrat, including identifying and setting up indicators, creating signals based on these indicators, outlining the trading rules, and backtesting and risk management of the strategy.

What you will learn?

  • Understand the fundamentals of quantitative trading strategies and how traders build strategies in the real world.

  • Explore various types of quantitative trading strategies such as momentum strategies, mean-reversion strategies, and market-making strategies.

  • Steps to build and backtest a successful quantitative trading strategy with a focus on risk management

  • Download financial data from multiple sources and analyze it using the quantmod library

  • Exploratory data analysis including statistics and charting using the quantmod and ggplot2 library

  • Learn how to build and backtest a trading strategy using the quantstrat package

  • Evaluate a strategy using trading statistics, performance metrics, and risk management metrics

  • Calculate main trading statistics such as net trading profit and loss, gross profit, gross loss, profit ratio, maximum drawdown, maximum drawdown, and equity curve.

  • Measure important performance metrics such as cumulative returns, annualized returns, annualized Sharpe ratio, and Calmar ratio.

  • Estimate key risk management metrics such as annualized standard deviation, maximum drawdown, and value at risk.

  • Evaluate the strategy based on these statistics and charts and then optimize your strategy based on insights.

What's inside

  1. 1Introduction to Quantitative TradingFree
  2. 2Quantitative Trading - Advantages and DisadvantagesEbook
  3. 3Types of Quantitative Trading StrategiesEbook
  4. 4Momentum StrategiesEbook
  5. 5Mean Reversion StrategiesEbook
  6. 6Market Making Strategies and Day Trading StrategiesEbook
  7. 7How to Generate Trading IdeasEbook
  8. 8Designing A Trading Strategy For ProfitEbook
  9. 9Backtesting a Trading Strategy - ConsiderationsEbook
  10. 10Risk Management of a Trading StrategyEbook
  11. 11Risk Indicators - VIX Index and TED SpreadEbook
  12. 12Plotting the VIX Index and TED Spread in REbook
  13. 13Introduction to Quantmod in REbook
  14. 14Downloading Data Using Quantmod Package in REbook
  15. 15Creating Charts with QuantmodEbook
  16. 16Data Analysis with Quantmod in REbook
  17. 17Measuring Overall ETFs PerformanceEbook
  18. 18Quantstrat Example in R - EMA Crossover StrategyEbook
  19. 19Quantstrat - EMA Crossover Strategy - Performance and Risk MetricsEbook
  20. 20Quantstrat Example in R - RSI StrategyEbook
  21. 21Quantstrat Case Study - Multiple Symbol PortfolioEbook