Skip to main content
HomePython

Financial Trading in Python

4.2+
17 reviews
Intermediate

Learn to implement custom trading strategies in Python, backtest them, and evaluate their performance!

Start Course for Free
4 hours15 videos50 exercises15,734 learnersTrophyStatement of Accomplishment

Create Your Free Account

GoogleLinkedInFacebook

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.
Group

Training 2 or more people?

Try DataCamp for Business

Loved by learners at thousands of companies


Course Description

Are you fascinated by the financial markets and interested in financial trading? This course will help you to understand why people trade, what the different trading styles are, and how to use Python to implement and test your trading strategies. Start your trading adventure with an introduction to technical analysis, indicators, and signals. You'll learn to build trading strategies by working with real-world financial data such as stocks, foreign exchange, and cryptocurrencies. By the end of this course, you'll be able to implement custom trading strategies in Python, backtest them, and evaluate their performance.
For Business

Training 2 or more people?

Get your team access to the full DataCamp platform, including all the features.
DataCamp for BusinessFor a bespoke solution book a demo.
  1. 1

    Trading Basics

    Free

    What is financial trading, why do people trade, and what’s the difference between technical trading and value investing? This chapter answers all these questions and more. You’ll also learn useful tools to explore trading data, generate plots, and how to implement and backtest a simple trading strategy in Python.

    Play Chapter Now
    What is financial trading
    50 xp
    The concept of trading
    50 xp
    Plot a time series line chart
    100 xp
    Plot a candlestick chart
    100 xp
    Getting familiar with your trading data
    50 xp
    Resample the data
    100 xp
    Plot a return histogram
    100 xp
    Calculate and plot SMAs
    100 xp
    Financial trading with bt
    50 xp
    The bt process
    100 xp
    Define and backtest a simple strategy
    100 xp
  2. 2

    Technical Indicators

    Let's dive into the world of technical indicators—a useful tool for constructing trading signals and building strategies. You’ll get familiar with the three main indicator groups, including moving averages, ADX, RSI, and Bollinger Bands. By the end of this chapter, you’ll be able to calculate, plot, and understand the implications of indicators in Python.

    Play Chapter Now
  3. 3

    Trading Strategies

    You’re now ready to construct signals and use them to build trading strategies. You’ll get to know the two main styles of trading strategies: trend following and mean reversion. Working with real-life stock data, you’ll gain hands-on experience in implementing and backtesting these strategies and become more familiar with the concepts of strategy optimization and benchmarking.

    Play Chapter Now
  4. 4

    Performance Evaluation

    How is your trading strategy performing? Now it’s time to take a look at the detailed statistics of the strategy backtest result. You’ll gain knowledge of useful performance metrics, such as returns, drawdowns, Calmar ratio, Sharpe ratio, and Sortino ratio. You’ll then tie it all together by learning how to obtain these ratios from the backtest results and evaluate the strategy performance on a risk-adjusted basis.

    Play Chapter Now
For Business

Training 2 or more people?

Get your team access to the full DataCamp platform, including all the features.

datasets

Google Stock DataBitcoin Price DataAmazon Stock DataTesla Stock Data

collaborators

Collaborator's avatar
Jen Bricker
Collaborator's avatar
Hadrien Lacroix
Collaborator's avatar
Justin Saddlemyer
Chelsea Yang HeadshotChelsea Yang

Data Science Instructor

See More

Don’t just take our word for it

*4.2
from 17 reviews
59%
24%
12%
0%
6%
Sort by
  • W. R.
    2 months

    This course details the use of TA-Lib for technical indicators, which is not unique nor complex, but it also uses the bt library for strategy back-testing, which given its power and utility could even justify its own course.

  • Huseyin K.
    about 1 year

    It was a great one

  • Jeronimo F.
    about 1 year

    It is a great course with the essential information abou the topic. After completing it , I started to experiment with the knowledge I learned and to search for more impformation about it .

  • Kyaw A.
    about 1 year

    Rich of information starting from the candlestick that attract me instantly enroll. Two important packages were clearly explain. Thanks DataCamp. I can now work practically in Financial Trading.

  • Romualdo A.
    over 1 year

    Excelent!

"This course details the use of TA-Lib for technical indicators, which is not unique nor complex, but it also uses the bt library for strategy back-testing, which given its power and utility could even justify its own course."

W. R.

"It was a great one"

Huseyin K.

"It is a great course with the essential information abou the topic. After completing it , I started to experiment with the knowledge I learned and to search for more impformation about it ."

Jeronimo F.

Join over 15 million learners and start Financial Trading in Python today!

Create Your Free Account

GoogleLinkedInFacebook

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.