Finance Train
Menu

Ebooks

Quantitative Trading Strategies in R

21 chapters · 1 free to read, 20 in the PDF

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.

Chapters

  1. 1Introduction to Quantitative TradingRead free
  2. 2Quantitative Trading - Advantages and DisadvantagesIn the PDF
  3. 3Types of Quantitative Trading StrategiesIn the PDF
  4. 4Momentum StrategiesIn the PDF
  5. 5Mean Reversion StrategiesIn the PDF
  6. 6Market Making Strategies and Day Trading StrategiesIn the PDF
  7. 7How to Generate Trading IdeasIn the PDF
  8. 8Designing A Trading Strategy For ProfitIn the PDF
  9. 9Backtesting a Trading Strategy - ConsiderationsIn the PDF
  10. 10Risk Management of a Trading StrategyIn the PDF
  11. 11Risk Indicators - VIX Index and TED SpreadIn the PDF
  12. 12Plotting the VIX Index and TED Spread in RIn the PDF
  13. 13Introduction to Quantmod in RIn the PDF
  14. 14Downloading Data Using Quantmod Package in RIn the PDF
  15. 15Creating Charts with QuantmodIn the PDF
  16. 16Data Analysis with Quantmod in RIn the PDF
  17. 17Measuring Overall ETFs PerformanceIn the PDF
  18. 18Quantstrat Example in R - EMA Crossover StrategyIn the PDF
  19. 19Quantstrat - EMA Crossover Strategy - Performance and Risk MetricsIn the PDF
  20. 20Quantstrat Example in R - RSI StrategyIn the PDF
  21. 21Quantstrat Case Study - Multiple Symbol PortfolioIn the PDF