Trading app architecture – revised and improved
In Chapter 1, Developing Trading Strategies – Why They Are Different, we proposed a generalized architecture of a trading application. In brief, it consists of the following components:
- Data receiver: Something that retrieves live data from the market or historical data stored locally; see Chapter 5, Retrieving and Handling Market Data with Python
- Data cleanup: A component that eliminates non-market prices; see Chapter 1, Developing Trading Strategies – Why They Are Different
- Trading logic: The brains of the trading app that make trading decisions (see Chapter 6, Basics of Fundamental Analysis and Its Possible Use in FX Trading, Chapter 7, Technical Analysis and Its Implementation in Python, and Chapter 9, Trading Strategies and Their Core Elements), frequently with integrated pre-trade risk management
- Ordering interface: A component that receives trading signals from the trading logic, converts...