Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Getting Started with Forex Trading Using Python
Getting Started with Forex Trading Using Python

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

Arrow left icon
Profile Icon Alex Krishtop
Arrow right icon
Mex$546.99 Mex$607.99
Full star icon Full star icon Full star icon Full star icon Half star icon 4.3 (3 Ratings)
eBook Mar 2023 384 pages 1st Edition
eBook
Mex$546.99 Mex$607.99
Paperback
Mex$758.99
Subscription
Free Trial
Arrow left icon
Profile Icon Alex Krishtop
Arrow right icon
Mex$546.99 Mex$607.99
Full star icon Full star icon Full star icon Full star icon Half star icon 4.3 (3 Ratings)
eBook Mar 2023 384 pages 1st Edition
eBook
Mex$546.99 Mex$607.99
Paperback
Mex$758.99
Subscription
Free Trial
eBook
Mex$546.99 Mex$607.99
Paperback
Mex$758.99
Subscription
Free Trial

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Getting Started with Forex Trading Using Python

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
Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • 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

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.

Who is this book 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.

What you will learn

  • Explore the forex market organization and operations
  • Comprehend the sources of alpha and the concept of algo trading
  • Get a grasp on typical risks and ways to mitigate them
  • Understand the essentials of 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

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Mar 17, 2023
Length: 384 pages
Edition : 1st
Language : English
ISBN-13 : 9781804613535
Category :
Languages :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Mar 17, 2023
Length: 384 pages
Edition : 1st
Language : English
ISBN-13 : 9781804613535
Category :
Languages :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just Mex$85 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just Mex$85 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total Mex$ 2,666.97
Zero to Hero in Cryptocurrency Trading
Mex$717.99
Getting Started with Forex Trading Using Python
Mex$758.99
Machine Learning for Algorithmic Trading
Mex$1189.99
Total Mex$ 2,666.97 Stars icon

Table of Contents

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

Customer reviews

Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.3
(3 Ratings)
5 star 33.3%
4 star 66.7%
3 star 0%
2 star 0%
1 star 0%
D Whitman Apr 15, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Having spent years developing stock trading systems, I've encountered countless books on trading systems that present cherry-picked examples and ultimately waste the reader's time. But "Getting Started with Forex Trading Using Python" by Alex Krishtop is different.This book offers a wealth of information on Forex trading and provides a true understanding of what it takes to succeed in the market. The author's emphasis on performance analysis, trade analysis, and risk management is particularly noteworthy, providing crucial insights into the development of successful trading systems that are often overlooked in other books.The book's Python examples are invaluable. They demonstrate step-by-step how to retrieve market data, develop trading strategies using technical analysis, visualize data, perform backtesting, and measure performance. The result is a practical, hands-on guide that allows the reader to easily grasp the concepts and put them into practice."Getting Started with Forex Trading Using Python" is not just an excellent introduction to Forex trading; it offers much more. It is a must-read for anyone serious about algorithmic trading in the Forex market.
Amazon Verified review Amazon
Amazon Customer Apr 23, 2023
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
I was given this book to review. I would buy it regardless because I am interested in ForEx so this was right up my alley.Let me first start with what this book is not.This book is not for a moderate level quant who wants to expand into ForEx, but rather an introductory text overall to trading in general and what to look for with a dash of information on ForEx.So it makes a great book to get into quant trading in general, but don't expect to be approaching this from a moderately skilled level and above and just focusing on what you need to know for ForEx.In other words, it describes a lot of redundant things that a quant maybe already know, such as moving averages, and what have you as if you had no background on it.
Amazon Verified review Amazon
Om S Apr 22, 2023
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
Getting Started with Forex Trading Using Python" is a comprehensive guide for Python developers and financial traders interested in forex trading. The book aims to help readers understand the market, build applications that yield desirable results, and develop backtesting applications to keep their expectations realistic.The book covers topics such as market organization and operations, sources of alpha and algo trading, typical risks and ways to mitigate them, fundamental and technical analysis, connecting to data sources, API and FIX protocol, and running reliable backtesting. By the end of the book, readers are expected to have a deep understanding of the forex market, be able to translate trading ideas into code, and run reliable backtesting that emulates real-world market conditions.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.