Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Getting Started with Forex Trading Using Python

You're reading from  Getting Started with Forex Trading Using Python

Product type Book
Published in Mar 2023
Publisher Packt
ISBN-13 9781804616857
Pages 384 pages
Edition 1st Edition
Languages
Author (1):
Alex Krishtop Alex Krishtop
Profile icon Alex Krishtop

Table of Contents (21) Chapters

Preface 1. Part 1: Introduction to FX Trading Strategy Development
2. Chapter 1: Developing Trading Strategies – Why They Are Different 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

Adding objects to price charts

It is not difficult to add any objects to the chart if we know their coordinates because all matplotlib methods always plot one array-like object versus another. So, basically, all we need to do to add any special objects to a chart is to calculate their position in the list, or the array along the X axis and the corresponding value along the Y axis.

Let’s consider a simple yet valuable example. In Chapter 3, FX Market Overview from a Developer’s Standpoint, we saw that price takers can only buy at the ask and sell at the bid. We also saw that a large order can move the price a few points (pips) up or down because it consumes the liquidity from several levels in the order book. So, we can assume with a good degree of confidence that if the best bid suddenly became greater than the best ask at the previous tick, then it was possibly a trace of a significant buy order. And it works vice versa – if we observe a plunge of the best...

lock icon The rest of the chapter is locked
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 $15.99/month. Cancel anytime}