Introduction¶
Welcome to the first tutorial for algorithmic trading!
In this tutorial, you will learn:
The basics of algorithmic trading
Definition of technical analysis
Definition of fundamental analysis
Difference between technical analysis and fundamental analysis
How machine learning could assist algo trading
What is algo trading?¶
Definition
A typical algorithmic trading system does the following things (in order):
Inspect data, charts, quotes or news and generate trade signals as per your strategy
Fill in order details when a trade signal is found
Monitor and evaluate trades to see if they reached your target or went in the opposite direction
Close positions to either book profits or cut losses
Rinse and repeat
Automated Trading¶
High-freqeuncy Trading¶
Tip
Algorithmic Trading: execution process based on an algorithm
Automated Trading: as its name implies, automate the trading process
High-frequency Trading: ultra-fast automated trading
What is technical analysis?¶
Definition
Rationale of technical analysis¶
1. Market Action Discounts Everything
2. Prices Move in Trends
3. History repeats itself
Pros and cons of technical analysis¶
Pros:
Objectiveness
Mathematical precision
Emotional indifference
Inexpensive
Cons:
Self-fulfilling prophecy
The future keeps running away
Conflicting signals from different indicators
Substantial movements might have taken place when a pattern is identified
What is fundamental analysis?¶
Definition
Rationale of fundamental analysis¶
Economic analysis - focuses on analysing various macroeconomic factors such as interest rates, inflation, and GDP levels
Industry analysis - focuses on assessing specific prospects and potential opportunities within the identified industries and sectors
Company analysis - focuses on analysing and selecting individual stocks within the most promising industries
Pros and cons of fundamental analysis¶
Pros:
Seeks to understand the value of an asset
Long-term view
Comprehensive
Cons:
Time-consuming
Results not suitable for quick decisions
Does not provide info about entry points*
Technical analysis vs Fundamental analysis¶
Important
The use of machine learning¶
Macroeconomic data¶
Nowcasting & forecasting
Risk assessment (detecting systematic risk)
Economic index construction
Sentiment analysis¶
News articles
Social media posts (e.g. Twitter (or X), Reddit)
Financial reports
Analyst ratings
Conclusion¶
References
Murphy, J. J. (1991). Technical analysis of the futures markets: A comprehensive guide to trading methods and applications. New York: New York Institute of Finance.
Attention