Book description
Discover the inner workings of today’s forex market, the essential risks in forex algo trading, and how to mitigate them
Key Features
- Build trading applications with research and without advanced Python programming skills
- Dive into professional fx trading while enhancing your trading apps to be more accurate
- Develop simple yet efficient backtesting applications to help keep your expectations realistic
Book Description
Algorithm-based trading is a popular choice for Python programmers due to its apparent simplicity. However, very few traders get the results they want, partly because they aren’t able to capture the complexity of the factors that influence the market. Getting Started with Forex Trading Using Python helps you understand the market and build an application that reaps desirable results.
The book is a comprehensive guide to everything that is market-related: data, orders, trading venues, and risk. From the programming side, you’ll learn the general architecture of trading applications, systemic risk management, de-facto industry standards such as FIX protocol, and practical examples of using simple Python codes. You’ll gain an understanding of how to connect to data sources and brokers, implement trading logic, and perform realistic tests. Throughout the book, you’ll be encouraged to further study the intricacies of algo trading with the help of code snippets.
By the end of this book, you’ll have a deep understanding of the fx market from the perspective of a professional trader. You’ll learn to retrieve market data, clean it, filter it, compress it into various formats, apply trading logic, emulate the execution of orders, and test the trading app before trading live.
What you will learn
- Explore the forex market organization and operations
- Understand the sources of alpha and the concept of algo trading
- Get a grasp on typical risks and ways to mitigate them
- Understand fundamental and technical analysis
- Connect to data sources and check the integrity of market data
- Use API and FIX protocol to send orders
- Translate trading ideas into code
- Run reliable backtesting emulating real-world market conditions
Who this book is for
This book is for financial traders and python developers who are interested in forex trading. Academic researchers looking to focus on practical applications will find this book useful. This book can also help established fx market professionals who want to take the first steps in algo trading. Familiarity with Python and object-oriented programming within the scope of an online course or self-study is a must. Knowledge of network protocols and interfaces is a plus but not a prerequisite, as is specific knowledge about markets and trading.
Table of contents
- Getting Started with Forex Trading Using Python
- Contributors
- About the author
- About the reviewer
- Preface
- Part 1: Introduction to FX Trading Strategy Development
-
Chapter 1: Developing Trading Strategies – Why They Are Different
- Trading strategies – it’s all about how you manage risk
- Automated trading – operational risk and regulatory limitations
- Retrieving market data – quality and consistency as keys to success
- Making actual trading decisions – trading logic and credit risk
- Ordering – transactional risk
- The general architecture of a trading application
- Summary
-
Chapter 2: Using Python for Trading Strategies
- Technical requirements
- The advantages of using Python in trading strategy development
- Modeling – forecasting the future doesn’t necessarily mean practical benefits
- Paper trading and backtesting – an essential part of a systemic trader’s risk management
- The disadvantages of using Python in trading strategy development
- Live trading – where Python faces its limits
- Summary
-
Chapter 3: FX Market Overview from a Developer's Standpoint
- Trading venues – where money meets… other money
- Trade mechanics – again, some terminology
- Market makers – comfortable, sophisticated, expensive
- Liquidity providers – the whales that support this planet
- ECN – looks like a fair game, but is it?
- Aggregation – in search of the best price
- Trading the FX market – what and how
- Why do I need all this?
- Summary
- Part 2: General Architecture of a Trading Application and A Detailed Study of Its Components
-
Chapter 4: Trading Application: What’s Inside?
- Technical requirements
- Have your app talk to the world – the gloomy world of communication protocols
- Retrieving data – garbage in, garbage out
- Trading logic – this is where a small mistake may cost a fortune
- Risk management – your safety belt
- Ordering – make sure you are understood correctly
- Summary
- Chapter 5: Retrieving and Handling Market Data with Python
- Chapter 6: Basics of Fundamental Analysis and Its Possible Use in FX Trading
- Chapter 7: Technical Analysis and Its Implementation in Python
- Chapter 8: Data Visualization in FX Trading with Python
- Part 3: Orders, Trading Strategies, and Their Performance
-
Chapter 9: Trading Strategies and Their Core Elements
- Alpha and beta – widely used, widely confused
- Options – stable income with unlimited risk
- Alpha classics – trend-following, mean reversion, breakout, and momentum
- Arbitrage – let’s earn from others’ mistakes
- Statistical arbitrage
- Event-driven trading strategies
- Market-making – profiting on liquidity provision and associated risks
- High frequency, low latency – where Python fails
- Summary
- Chapter 10: Types of Orders and Their Simulation in Python
- Chapter 11: Backtesting and Theoretical Performance
- Part 4: Strategies, Performance Analysis, and Vistas
- Chapter 12: Sample Strategy – Trend-Following
- Chapter 13: To Trade or Not to Trade – Performance Analysis
-
Chapter 14: Where to Go Now?
- Implementing limit and stop orders
- The correct way to calculate the number of trades
- From trading ideas to implementation – another sample strategy using limit and stop orders
- Money management and multiple entries
- Strategy performance revisited – more metrics
- More about the risks specific to algo trading
- Classical technical trading setups
- Optimization – the blessing and the curse of algo trading
- Final words
- Index
- Other Books You May Enjoy
Product information
- Title: Getting Started with Forex Trading Using Python
- Author(s):
- Release date: March 2023
- Publisher(s): Packt Publishing
- ISBN: 9781804616857
You might also like
video
Hands-On Algorithmic Trading with Python
The pace of automation in the investment management industry has become frenetic in the last decade …
book
Python for Algorithmic Trading
Algorithmic trading, once the exclusive domain of institutional players, is now open to small organizations and …
book
Python for Algorithmic Trading Cookbook
Harness the power of Python libraries to transform freely available financial market data into algorithmic trading …
video
Financial Analysis - Build a ChatGPT Pairs Trading Bot
Financial analysis with ChatGPT using pairs is a cutting-edge approach that combines the power of artificial …