Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Getting Started with Forex Trading Using Python

You're reading from   Getting Started with Forex Trading Using Python Beginner's guide to the currency market and development of trading algorithms

Arrow left icon
Product type Paperback
Published in Mar 2023
Publisher Packt
ISBN-13 9781804616857
Length 384 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Alex Krishtop Alex Krishtop
Author Profile Icon Alex Krishtop
Alex Krishtop
Arrow right icon
View More author details
Toc

Table of Contents (21) Chapters Close

Preface 1. Part 1: Introduction to FX Trading Strategy Development
2. Chapter 1: Developing Trading Strategies – Why They Are Different FREE CHAPTER 3. Chapter 2: Using Python for Trading Strategies 4. Chapter 3: FX Market Overview from a Developer's Standpoint 5. Part 2: General Architecture of a Trading Application and A Detailed Study of Its Components
6. Chapter 4: Trading Application: What’s Inside? 7. Chapter 5: Retrieving and Handling Market Data with Python 8. Chapter 6: Basics of Fundamental Analysis and Its Possible Use in FX Trading 9. Chapter 7: Technical Analysis and Its Implementation in Python 10. Chapter 8: Data Visualization in FX Trading with Python 11. Part 3: Orders, Trading Strategies, and Their Performance
12. Chapter 9: Trading Strategies and Their Core Elements 13. Chapter 10: Types of Orders and Their Simulation in Python 14. Chapter 11: Backtesting and Theoretical Performance 15. Part 4: Strategies, Performance Analysis, and Vistas
16. Chapter 12: Sample Strategy – Trend-Following 17. Chapter 13: To Trade or Not to Trade – Performance Analysis 18. Chapter 14: Where to Go Now? 19. Index 20. Other Books You May Enjoy

Developing Trading Strategies – Why They Are Different

For many years, I traded in various markets, educated developers in trading, and taught some essential programming and algorithm (algo) development to traders. Eventually, I concluded that the main problem for both groups (the developers and traders) was not a lack of knowledge in programming, but an incorrect or insufficient understanding of the subject domain, that is, financial markets and their mechanics.

This was quite a surprise for me. I thought that coding, debugging, and handling errors should be the main obstacle, but in reality, the problem is in finding useful, correct, and adequate information about markets, their structure, and operations, especially in regard to algo trading. I don’t mean that it’s somehow undisclosed or otherwise hidden from the general audience – not at all. The problem is that it’s really hard to find a source that not only covers everything – from the market structure to money and risk management – but also shows clear connections between very specific features of a market and less-specific features that a trading algorithm should have in order to be successful in this market.

For example, many authors consider entries and exits in a trading strategy as something that can be executed immediately and with equal success at any moment, any time of the day. However, in the real market, this is not the case. I saw lots of strategies that only worked on paper because their developers didn’t take into consideration the fact that they were dealing with a real, complex structure with lots of limitations and shortcomings, and not with an abstract idealistic model.

This example is really primitive, but I hope it explains the most important point that is missed by many researchers and developers: we do not deal with abstract datasets and time series where each data point has an equal value and where any action can be taken at any moment with equal possibility; we work with a very complex structure that has lots of features that make this structure a dynamic non-stationary system. And to be successful in algo trading, these features should be accounted for.

Without knowing how markets are organized and how they operate, our trading algorithms will inevitably fail sooner or later.

If put in a more positive manner, understanding the market will help us in making trading algorithms more robust.

This book is my humble attempt to bridge the gap between the world of quantitative trading (driven by numbers) and the real market (driven by humans). I am convinced that today, any long-term success in trading can be achieved only with good knowledge of both.

Let’s begin with the basics. We will learn about the very basic market terminology and the essential concept of a trading strategy, get familiar with the risk in various forms and aspects with a special focus on ordering and transactional risk, and also mention market data processing in a very general sense.

In this chapter, we will discuss the following topics:

  • Trading strategies – it’s all about how you manage risk
  • Automated trading – operational risk and regulatory limitations
  • Making actual trading decisions – trading logic and credit risk
  • Ordering – transactional risk
  • The general architecture of a trading application
You have been reading a chapter from
Getting Started with Forex Trading Using Python
Published in: Mar 2023
Publisher: Packt
ISBN-13: 9781804616857
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image