Interactive Course

# Model a Quantitative Trading Strategy in R

• 10 hours
• 6 Videos
• 74 Exercises
• 3,766 Participants
• 5,400 XP

### Course Description

R is widely used by analysts and traders around the world to develop quantitative trading strategies that can be executed manually or through program trading. This is an introductory course for beginners in R to get familiar with quantitative trading strategies and coding technical indicators in R. You will learn technical terms associated with trading strategies, work with data.tables in R, and manipulate the input data to create trading signals and profit-and-loss columns. You will also learn about optimizing parameters to be able to maximize profits. This course is for everyone interested in getting started with algorithmic trading. No prior knowledge is required!

1. 1

#### Introduction to R for trading

This chapter equips you with basic programming skills in R before proceeding to strategy writing. This chapter covers reading a data.table, creating new columns in the table, calculating returns by different methods, loop functions, conditional functions, and plotting of datasets.

2. 3

#### Create a technical indicator

Apply the knowledge youâ€™ve learned to create a more sophisticated trading strategy based on point and figure charting. By the end of this chapter, you will appreciate the complexities involved in creating quantitative trading strategies and will be equipped with the skills to write your own trading strategies in R.

3. 2

#### Code a basic trading strategy

In this chapter, youâ€™ll learn how to write a simple strategy based on stock price movements, learn how to generate trading signals and how to determine the trading quantity and price to place orders. Finally, learn to assess your strategy based on the accrued profit and loss. Use R as a statistical tool to write your first fully functional programming code that performs these tasks automatically.

1. 1

#### Introduction to R for trading

This chapter equips you with basic programming skills in R before proceeding to strategy writing. This chapter covers reading a data.table, creating new columns in the table, calculating returns by different methods, loop functions, conditional functions, and plotting of datasets.

2. 2

#### Code a basic trading strategy

In this chapter, youâ€™ll learn how to write a simple strategy based on stock price movements, learn how to generate trading signals and how to determine the trading quantity and price to place orders. Finally, learn to assess your strategy based on the accrued profit and loss. Use R as a statistical tool to write your first fully functional programming code that performs these tasks automatically.

3. 3

#### Create a technical indicator

Apply the knowledge youâ€™ve learned to create a more sophisticated trading strategy based on point and figure charting. By the end of this chapter, you will appreciate the complexities involved in creating quantitative trading strategies and will be equipped with the skills to write your own trading strategies in R.

### What do other learners have to say?

â€śI've used other sites, but DataCamp's been the one that I've stuck with.â€ť

Devon Edwards Joseph

Lloyd's Banking Group

â€śDataCamp is the top resource I recommend for learning data science.â€ť

Louis Maiden