SlideShare a Scribd company logo
1 of 8
Algorithmic
Trading
Broad Overview
Delivered by Francesco
Torraco
Algorithmic trading consists of the automated buying and selling
of financial instruments (stocks, bonds and futures). Essentially It
requires a network connection to an electronic exchange, broker
or counterparty, and means of programmatically buying, selling
and performing other tasks related to trading, such as monitoring
price action and market exposure.
What is Algorithmic
Trading (or Algo)?
What will be covered in these slides ?
Who uses Algorithms
- Basic Algo definitions
- Terminology used
- Defining the perfect algorithm
How to start with Algo
- Basic considerations
- Skills to master
- Reality over imagination
Backtesting
- Basic considerations
- Main drivers
- Real problem identification
Who is interested to Algo-Trading?
Algo-Trading for investors: Pros and Cons
The Schema for Algo-trading:
• A method to acquire data (“read some price data”), noting that this in itself could be quite
a complex standalone algorithm and requires connection to a source of market data, usually
in real time.
• Some analysis of that data (“calculate its mean and standard deviation”).
• A means of checking if some condition has been fulfilled based on the previous analysis (“if
the most recent price is above its mean and the standard deviation is less than some
threshold”).
• Execution of the trading logic, which again can be quite a complex standalone algorithm
requiring a means of communicating with a broker or exchange, managing that
communication link and keeping track of orders and fills.
Other common components of such system include:
• Risk management modules, for example position sizing calculations, exposure tracking and
adjustment, and tools to track a system’s performance and behaviour.
• Portfolio management tools, which are somewhat related to the above.
• Data handling and storage.
• Post-trade reconciliation and analysis.
Remove the Human factor
Allows backtesting of
strategies
Demanding learning
process
The term «algorithmic trading» can actually have a slightly different meaning,
particularly in an institutional setting. Indeed, algorithmic trading can refer to the
automated splitting of a large order to get the best execution possible. Such
algorithms typically split up a large order into smaller pieces and send the pieces to
market in a way that optmizes the overall cost of the transaction.
When a large transaction has to be processed, without a proper liquidity valuation,
the price of the stock will dramatically increase (or decrease). By entering the
position gradually, in line with the capacity of the stock to absorb the order, the
overall cost of the transaction is reduced.
The market
Set of instruction involved in algo
trading
No need to watch the screen all day
Cross skills implemented
Hardware tools
Retail investors:
For investors is typically used to
automate the trades accordigly to
the developed strategy.
This is the case in which once a
strategy is set, the trader let the
algorithm do the job.
Institutions:
For ECN - is typically used by Market
Makers to disseminate and match
orders with their network of
counterparties.
For Dark Pools - is more like a private
execution venue where liquidity is
provided by the participants of the
dark pool, away from the exchange.
Terminology:
Technical Analysis Quantitative Trading High Frequency Trading
Defining the algorithm for different classes:
The type of algorithmic trading that most retail investors focus on, seeks to identify opportunities to profit by buying low and selling higher.
This is the signal-based type of algorithmic trading, this try to trigger the purchase after an event is occurred. Within this broad category,
there are different sub-classes of trading algorithm. While there is no one accepted nomenclature for the classes, they can generally be
described as follows:
• Analysis of patterns on price and volume to predict
future market movement. (assuming that exist
repeating patterns in the price action of a market.)
• Strategies based on indicators (price / volume) like the
Relative Strength Index (RSI) and Moving Average
Convergence Divergence (MACD). It also includes a
suite of trend lines, support and resistance lines,
formations like ‘flag’ and ‘pennant’ and patterns like
‘head and shoulders’.
• There is a catalog of candlestick patterns like
‘engulfing bear’ that based on historical data try to
predict the future direction of the market.
• On the more esoteric end of the spectrum, we have
things like Elliot Wave and Fibonacci Retracement
• Quantitative trading is based on mathematical or
statistical models of market behavior. Examples are
the cross-sectional momentum strategy and the mean-
reversion strategy.
• Another is a cointegrating pairs model, in which we
select a pair of securities that can be combined such
that together they form a mean-reverting series.
• Quantitative models can be based on fundamental
data by using tools to automatically process the news
releases and company filings.
• A subset of quantitative trading in an increasing
interest trend is the one linked to Machine Learnig and
artificial intelligence.
• High Frequency Trading (HFT) is relatively new, by
definition must be algorithmic since it occurs on the
scale of microseconds – or less.
• No human could engage in HFT without the support of
computers. While HFT is generally signal based – that
is, something occurs to trigger a buy or sell signal –
speed and latency are generally more important than
the actual signal itself.
• The implication of this is that co-location of the
algorithm either in the exchange or as close as
possible is a prerequisite, and code must be optimized
for speed and usually written in a low level language
like C++. This results in barriers that are simply too
high for DIY traders, and indeed for many trading
firms.
What does it take to succeed in Algo Trading ?
Where to start?
While reading these slides you have already started the process. However, these
slides will serve as trigger guidance to trigger new algo traders to learn more. This
section will provide answers for tipical questions when learning something new:
Learning the theoretical underpinnings is important – so start reading. To
become proficient at algorithmic trading, you absolutely must put the theory
into practice.
This is a theme that you will see repeated throughout these slides;
emphasizing the practical is my strongest message when it comes to
succeeding in this field. Having said that, in order to succeed in algorithmic
trading, one typically needs to have knowledge and skills that span a number
of disciplines. This includes both technical and soft skills.
Individuals looking to set up their own algorithmic trading business will need to
be across many if not all of the topics on the right; while if you are looking to
build or be a part of a team, you may not need to be personally across all of
these, so long as they are covered by other team members.
Active doing is crucial:
Statistics is crucial when managing risk to measuring performance and making decisions
about allocating to particular strategies. Here are some specific examples of using statistics in
algorithmic trading to illustrate just how vital this skill is:
• Statistical tests can provide insight into what sort of underlying process describes a market
at a particular time.
• Correlation of portfolio components can be used to manage risk.
• Regression analysis;
• Statistics can provide insight into whether a particular approach is outperforming due to
taking on higher risk, or if it exploits a genuine source of alpha.
Statistics
To do any serious algorithmic trading, you absolutely must be able to program, as it is this skill
that enables efficient research. Accept that coding skills are prerequisite. The most known
languages:
Programmming
This sort of risk management attempts to quantify the risk of loss and determine the optimal
allocation approach for a strategy or portfolio of strategies.
• Allocation strategies: Kelly allocation and Mean-Variance Optimization (MVO);
• The Value-at-Risk (VaR);
• The System Parameter Permutation, or SPP ;
Risk Management
Finance Related
Computer Science
Python C ++ Java Matlab R
Study Practice
Expectations Frequency of Trading Infrastructure
Important Practical Matters:
Bear in mind that this is a very difficult path to deal with, due to the complexity of the arguments related to algo trading, in order to develop
strategies and really build up something you will need time and effort. First of all, you should master at least one of those skills previously
mentioned, then you can start to implement those skills in other context.
• This is not a way to become a millionare in just one
day – Hedge funds have 3-year compounded annual
return of just under 30%. You are not SMARTER !!!
• There may exist market phenomena that can generate
returns that are significant compared to the position
sizing of a retail account, but which are not capable of
carrying the trades of a larger fund.
• The amount of gains is tangled up with the amount of
risk you are willing to take. Thinking about reward in
terms of risk rather than in isolation will lead you to
much more sensible expectations.
• Swing Traders: are those who sets a lower frequency
of trading and hold a trade for weeks or months.
• Day Traders: holds positions for 2 days or less
• Intra-day Traders holds posistions within the day,
meaning that they open trades as soon as the market
open and close them before the closing day.
• High frequency trading generally refers to systems with
holding periods on the order of milliseconds to
seconds.
• Access to a strong (APIs) through a broker or through
a protocol, namely FIX, or Financial Information
Exchange.
• HFTs are not accessible by a retail investor who is
able to program due to restrictions on liquidity amount
and infrastructure complexity.
• For retail algo traders, a normal computer is enough to
process their algos, in order to perform algorithms 24h
a day, knowledge of warehouse servers is needed.
• Computer specifications and algorithms implemented
needs to be set out properly in order to be more
efficient.
Backtesting – Measuring the results
Traditional approach:
• Choose one strategy
• Implement the strategy for a
period of time.
• Take notes of the results and
grasp the pitfalls
Algo approach:
• Choose one or more strategies
• Set the timeseries in which you
want to perform the backtest
• Understand the variables that
affects the most the strategy and
rewrite the algorithm properly.
Slow Dynamic
• Slippage
• Commissions
• Swaps
Trading conditions
Simulation
vs
Reality
Backtesting requires that your trading algorithm’s performance be simulated using historical market
data, and the profit and loss of the resulting trades aggregated. Dealing with these two problems
requires that we consider:
Requirements for a good Backtest
• The Timeframe used for the analysis heavily influence
Granularity
• Sample of data discrepancies
Sample of data
Accuracy main drivers
Simulation accuracy Time frame employed
• Entry levels
• Exits
• Volume
• Market volatility
• Market liquidity
• Order type
• Execution Lathency
Influencing factors:
• Broker pricing
• Missing data
• On the traded product
• Data source
Where can be
found:
Look-Ahead Bias or Peeking Bias Curve-Fitting Bias or over-Optimization Bias Data-Mining Bias or Selection Bias
Development methodology:
In addition to simulation accuracy, the experimental methodology itself can compromise the results of our simulations. Many of these biases are
subtle yet profound: they can and will very easily creep into a trading strategy research and development process and can have disastrous effects on
live performance. Accounting for these biases is critical and needs to be considered at every stage of the development process. For now, I will walk
through and explain the various biases that can creep in and their effect on a trading strategy.
• This form of bias is introduced by allowing future
knowledge to affect trade decisions. That is, trade
decisions are affected by knowledge that would not
have been available at the time the trade decision was
taken.
• A common example is executing an intra-day trade on
the basis of the day’s closing price, when that closing
price is not actually known until the end of the day.
• Another bias example is when we use a parameter
which has been estimated and then retrospectively
apply it to the beginning of the next run of the
simulation.
• Portfolio optimization parameters are particularly prone
to this bias.
• Data mining bias is another significant source of over-
estimated model performance.
• It is reconducible to the selection of a sample, once a
strategy has been tested, it is unlikely that the same
strategy works with other instruments or time frames
• It is impossible to solve the problem, a strategy must
work dependently with his framework.
• This is the bias that allows us to create magical backtests that
produce annual returns on the order of hundreds of percent.
Such backtests are of course completely useless for any
practical trading purpose.
• Regression models on more data will produce a cut of noise
and of course a curve-fitting shape.
• The more the sample embed the noise in the sample the more
the trading results will be of no value due to an always
increasing curve

More Related Content

What's hot

Algorithmic Trading
Algorithmic TradingAlgorithmic Trading
Algorithmic TradingAlice Chan
 
Top 8 Forex Trading Strategies That Pro Traders Use
Top 8 Forex Trading Strategies That Pro Traders UseTop 8 Forex Trading Strategies That Pro Traders Use
Top 8 Forex Trading Strategies That Pro Traders UseSyrous Pejman
 
Classification of quantitative trading strategies webinar ppt
Classification of quantitative trading strategies webinar pptClassification of quantitative trading strategies webinar ppt
Classification of quantitative trading strategies webinar pptQuantInsti
 
Quant trading with artificial intelligence
Quant trading with artificial intelligenceQuant trading with artificial intelligence
Quant trading with artificial intelligenceRoger Lee, CFA
 
Order book dynamics in high frequency trading
Order book dynamics in high frequency tradingOrder book dynamics in high frequency trading
Order book dynamics in high frequency tradingQuantInsti
 
Trading edge for the forex market
Trading edge for the forex marketTrading edge for the forex market
Trading edge for the forex marketlcchong76
 
Algo trading with machine learning ppt
Algo trading with machine learning pptAlgo trading with machine learning ppt
Algo trading with machine learning pptDeb prakash ganguly
 
Learn A Simple Range Trading Strategy
Learn A Simple Range Trading StrategyLearn A Simple Range Trading Strategy
Learn A Simple Range Trading StrategyNetpicksTrading
 
"From Trading Strategy to Becoming an Industry Professional – How to Break in...
"From Trading Strategy to Becoming an Industry Professional – How to Break in..."From Trading Strategy to Becoming an Industry Professional – How to Break in...
"From Trading Strategy to Becoming an Industry Professional – How to Break in...Quantopian
 
The simple scalping strategy rules
The simple scalping strategy rules  The simple scalping strategy rules
The simple scalping strategy rules Nasir Tareen
 
Trade what you see not what you think
Trade what you see not what you thinkTrade what you see not what you think
Trade what you see not what you thinkNinja Tan
 
How to build a trading system
How to build a trading systemHow to build a trading system
How to build a trading systemFXstreet.com
 
Best Swing Trading Indicators and Oscillators
Best Swing Trading Indicators and OscillatorsBest Swing Trading Indicators and Oscillators
Best Swing Trading Indicators and OscillatorsSwingTradingBootCamp
 

What's hot (20)

Algorithmic Trading
Algorithmic TradingAlgorithmic Trading
Algorithmic Trading
 
Top 8 Forex Trading Strategies That Pro Traders Use
Top 8 Forex Trading Strategies That Pro Traders UseTop 8 Forex Trading Strategies That Pro Traders Use
Top 8 Forex Trading Strategies That Pro Traders Use
 
Quantitative Trading
Quantitative TradingQuantitative Trading
Quantitative Trading
 
Classification of quantitative trading strategies webinar ppt
Classification of quantitative trading strategies webinar pptClassification of quantitative trading strategies webinar ppt
Classification of quantitative trading strategies webinar ppt
 
Quant trading with artificial intelligence
Quant trading with artificial intelligenceQuant trading with artificial intelligence
Quant trading with artificial intelligence
 
The Technical Analysis Guidebook
The Technical Analysis GuidebookThe Technical Analysis Guidebook
The Technical Analysis Guidebook
 
Order book dynamics in high frequency trading
Order book dynamics in high frequency tradingOrder book dynamics in high frequency trading
Order book dynamics in high frequency trading
 
Trading edge for the forex market
Trading edge for the forex marketTrading edge for the forex market
Trading edge for the forex market
 
Algo trading with machine learning ppt
Algo trading with machine learning pptAlgo trading with machine learning ppt
Algo trading with machine learning ppt
 
Learn A Simple Range Trading Strategy
Learn A Simple Range Trading StrategyLearn A Simple Range Trading Strategy
Learn A Simple Range Trading Strategy
 
"From Trading Strategy to Becoming an Industry Professional – How to Break in...
"From Trading Strategy to Becoming an Industry Professional – How to Break in..."From Trading Strategy to Becoming an Industry Professional – How to Break in...
"From Trading Strategy to Becoming an Industry Professional – How to Break in...
 
5 Day Trading Techniques
5 Day Trading Techniques5 Day Trading Techniques
5 Day Trading Techniques
 
The simple scalping strategy rules
The simple scalping strategy rules  The simple scalping strategy rules
The simple scalping strategy rules
 
Trade what you see not what you think
Trade what you see not what you thinkTrade what you see not what you think
Trade what you see not what you think
 
Trading plan
Trading planTrading plan
Trading plan
 
Day Trading Basics
Day Trading BasicsDay Trading Basics
Day Trading Basics
 
Forex trading strategies
Forex trading strategiesForex trading strategies
Forex trading strategies
 
Core Master Trading Strategies
Core Master Trading StrategiesCore Master Trading Strategies
Core Master Trading Strategies
 
How to build a trading system
How to build a trading systemHow to build a trading system
How to build a trading system
 
Best Swing Trading Indicators and Oscillators
Best Swing Trading Indicators and OscillatorsBest Swing Trading Indicators and Oscillators
Best Swing Trading Indicators and Oscillators
 

Similar to Algorithmic Trading Overview

00 h naaim_assessing_trading_system_health_bandy
00 h naaim_assessing_trading_system_health_bandy00 h naaim_assessing_trading_system_health_bandy
00 h naaim_assessing_trading_system_health_bandyVic Liu
 
MCR WORLD Periodical
MCR WORLD PeriodicalMCR WORLD Periodical
MCR WORLD PeriodicalMcr World
 
Algo Trading – Best Algorithmic Trading Examples.pdf
Algo Trading – Best Algorithmic Trading Examples.pdfAlgo Trading – Best Algorithmic Trading Examples.pdf
Algo Trading – Best Algorithmic Trading Examples.pdfNazim Khan
 
Trading System Seminar Handout
Trading System Seminar HandoutTrading System Seminar Handout
Trading System Seminar HandoutDean Hoffman
 
Algorithmic Trading and its Impact on the Market
Algorithmic Trading and its Impact on the MarketAlgorithmic Trading and its Impact on the Market
Algorithmic Trading and its Impact on the MarketIRJET Journal
 
Pratik_Nawani_Executive Summary_J025_71112110004
Pratik_Nawani_Executive Summary_J025_71112110004Pratik_Nawani_Executive Summary_J025_71112110004
Pratik_Nawani_Executive Summary_J025_71112110004Pratik Nawani
 
Algorithmic Trading Basics: Strategies & Systems
Algorithmic Trading Basics: Strategies & SystemsAlgorithmic Trading Basics: Strategies & Systems
Algorithmic Trading Basics: Strategies & SystemsAlgorithmicTrading.net
 
Basics of trading system
Basics of trading systemBasics of trading system
Basics of trading systemSohrabSalimi1
 
E book make discipline a habit
E book   make discipline a habitE book   make discipline a habit
E book make discipline a habitdauda usman
 
Traders Cockpit Product Details
Traders Cockpit Product DetailsTraders Cockpit Product Details
Traders Cockpit Product DetailsTraders Cockpit
 
Smb options tribe_6_25_2013
Smb options tribe_6_25_2013Smb options tribe_6_25_2013
Smb options tribe_6_25_2013smbcapital
 
Manish final report
Manish final reportManish final report
Manish final reportmanish8285
 
John Sheely A Carrer Of Combining Experience And Research
John Sheely A Carrer Of Combining Experience And ResearchJohn Sheely A Carrer Of Combining Experience And Research
John Sheely A Carrer Of Combining Experience And Researchjohnsheely
 
Automated Trade Strategy by Todd Hanson PhD
Automated Trade Strategy by Todd Hanson PhDAutomated Trade Strategy by Todd Hanson PhD
Automated Trade Strategy by Todd Hanson PhDTodd Hanson PhD
 
How to maximize our profit in trading.pptx
How to maximize our profit in trading.pptxHow to maximize our profit in trading.pptx
How to maximize our profit in trading.pptxBullish Way
 

Similar to Algorithmic Trading Overview (20)

00 h naaim_assessing_trading_system_health_bandy
00 h naaim_assessing_trading_system_health_bandy00 h naaim_assessing_trading_system_health_bandy
00 h naaim_assessing_trading_system_health_bandy
 
MCR WORLD Periodical
MCR WORLD PeriodicalMCR WORLD Periodical
MCR WORLD Periodical
 
Algo Trading – Best Algorithmic Trading Examples.pdf
Algo Trading – Best Algorithmic Trading Examples.pdfAlgo Trading – Best Algorithmic Trading Examples.pdf
Algo Trading – Best Algorithmic Trading Examples.pdf
 
Trading System Seminar Handout
Trading System Seminar HandoutTrading System Seminar Handout
Trading System Seminar Handout
 
Algorithmic Trading and its Impact on the Market
Algorithmic Trading and its Impact on the MarketAlgorithmic Trading and its Impact on the Market
Algorithmic Trading and its Impact on the Market
 
Adaptix_2013
Adaptix_2013Adaptix_2013
Adaptix_2013
 
Pratik_Nawani_Executive Summary_J025_71112110004
Pratik_Nawani_Executive Summary_J025_71112110004Pratik_Nawani_Executive Summary_J025_71112110004
Pratik_Nawani_Executive Summary_J025_71112110004
 
IC.pdf
IC.pdfIC.pdf
IC.pdf
 
Algorithmic Trading Basics: Strategies & Systems
Algorithmic Trading Basics: Strategies & SystemsAlgorithmic Trading Basics: Strategies & Systems
Algorithmic Trading Basics: Strategies & Systems
 
Basics of trading system
Basics of trading systemBasics of trading system
Basics of trading system
 
trading platform 479
trading platform 479trading platform 479
trading platform 479
 
E book make discipline a habit
E book   make discipline a habitE book   make discipline a habit
E book make discipline a habit
 
Traders Cockpit Product Details
Traders Cockpit Product DetailsTraders Cockpit Product Details
Traders Cockpit Product Details
 
Algorithmic trading
Algorithmic tradingAlgorithmic trading
Algorithmic trading
 
Smb options tribe_6_25_2013
Smb options tribe_6_25_2013Smb options tribe_6_25_2013
Smb options tribe_6_25_2013
 
Manish final report
Manish final reportManish final report
Manish final report
 
John Sheely A Carrer Of Combining Experience And Research
John Sheely A Carrer Of Combining Experience And ResearchJohn Sheely A Carrer Of Combining Experience And Research
John Sheely A Carrer Of Combining Experience And Research
 
My FP&A suite
My FP&A suiteMy FP&A suite
My FP&A suite
 
Automated Trade Strategy by Todd Hanson PhD
Automated Trade Strategy by Todd Hanson PhDAutomated Trade Strategy by Todd Hanson PhD
Automated Trade Strategy by Todd Hanson PhD
 
How to maximize our profit in trading.pptx
How to maximize our profit in trading.pptxHow to maximize our profit in trading.pptx
How to maximize our profit in trading.pptx
 

Recently uploaded

Malad Call Girl in Services 9892124323 | ₹,4500 With Room Free Delivery
Malad Call Girl in Services  9892124323 | ₹,4500 With Room Free DeliveryMalad Call Girl in Services  9892124323 | ₹,4500 With Room Free Delivery
Malad Call Girl in Services 9892124323 | ₹,4500 With Room Free DeliveryPooja Nehwal
 
High Class Call Girls Nashik Maya 7001305949 Independent Escort Service Nashik
High Class Call Girls Nashik Maya 7001305949 Independent Escort Service NashikHigh Class Call Girls Nashik Maya 7001305949 Independent Escort Service Nashik
High Class Call Girls Nashik Maya 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
00_Main ppt_MeetupDORA&CyberSecurity.pptx
00_Main ppt_MeetupDORA&CyberSecurity.pptx00_Main ppt_MeetupDORA&CyberSecurity.pptx
00_Main ppt_MeetupDORA&CyberSecurity.pptxFinTech Belgium
 
call girls in Nand Nagri (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in  Nand Nagri (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in  Nand Nagri (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Nand Nagri (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
VIP Kolkata Call Girl Serampore 👉 8250192130 Available With Room
VIP Kolkata Call Girl Serampore 👉 8250192130  Available With RoomVIP Kolkata Call Girl Serampore 👉 8250192130  Available With Room
VIP Kolkata Call Girl Serampore 👉 8250192130 Available With Roomdivyansh0kumar0
 
Lundin Gold April 2024 Corporate Presentation v4.pdf
Lundin Gold April 2024 Corporate Presentation v4.pdfLundin Gold April 2024 Corporate Presentation v4.pdf
Lundin Gold April 2024 Corporate Presentation v4.pdfAdnet Communications
 
06_Joeri Van Speybroek_Dell_MeetupDora&Cybersecurity.pdf
06_Joeri Van Speybroek_Dell_MeetupDora&Cybersecurity.pdf06_Joeri Van Speybroek_Dell_MeetupDora&Cybersecurity.pdf
06_Joeri Van Speybroek_Dell_MeetupDora&Cybersecurity.pdfFinTech Belgium
 
Q3 2024 Earnings Conference Call and Webcast Slides
Q3 2024 Earnings Conference Call and Webcast SlidesQ3 2024 Earnings Conference Call and Webcast Slides
Q3 2024 Earnings Conference Call and Webcast SlidesMarketing847413
 
05_Annelore Lenoir_Docbyte_MeetupDora&Cybersecurity.pptx
05_Annelore Lenoir_Docbyte_MeetupDora&Cybersecurity.pptx05_Annelore Lenoir_Docbyte_MeetupDora&Cybersecurity.pptx
05_Annelore Lenoir_Docbyte_MeetupDora&Cybersecurity.pptxFinTech Belgium
 
The Economic History of the U.S. Lecture 19.pdf
The Economic History of the U.S. Lecture 19.pdfThe Economic History of the U.S. Lecture 19.pdf
The Economic History of the U.S. Lecture 19.pdfGale Pooley
 
Instant Issue Debit Cards - High School Spirit
Instant Issue Debit Cards - High School SpiritInstant Issue Debit Cards - High School Spirit
Instant Issue Debit Cards - High School Spiritegoetzinger
 
Andheri Call Girls In 9825968104 Mumbai Hot Models
Andheri Call Girls In 9825968104 Mumbai Hot ModelsAndheri Call Girls In 9825968104 Mumbai Hot Models
Andheri Call Girls In 9825968104 Mumbai Hot Modelshematsharma006
 
VIP Call Girls LB Nagar ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With Room...
VIP Call Girls LB Nagar ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With Room...VIP Call Girls LB Nagar ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With Room...
VIP Call Girls LB Nagar ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With Room...Suhani Kapoor
 
Booking open Available Pune Call Girls Shivane 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Shivane  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Shivane  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Shivane 6297143586 Call Hot Indian Gi...Call Girls in Nagpur High Profile
 
Bladex Earnings Call Presentation 1Q2024
Bladex Earnings Call Presentation 1Q2024Bladex Earnings Call Presentation 1Q2024
Bladex Earnings Call Presentation 1Q2024Bladex
 
letter-from-the-chair-to-the-fca-relating-to-british-steel-pensions-scheme-15...
letter-from-the-chair-to-the-fca-relating-to-british-steel-pensions-scheme-15...letter-from-the-chair-to-the-fca-relating-to-british-steel-pensions-scheme-15...
letter-from-the-chair-to-the-fca-relating-to-british-steel-pensions-scheme-15...Henry Tapper
 
VIP Call Girls Thane Sia 8617697112 Independent Escort Service Thane
VIP Call Girls Thane Sia 8617697112 Independent Escort Service ThaneVIP Call Girls Thane Sia 8617697112 Independent Escort Service Thane
VIP Call Girls Thane Sia 8617697112 Independent Escort Service ThaneCall girls in Ahmedabad High profile
 
VIP Call Girls Service Dilsukhnagar Hyderabad Call +91-8250192130
VIP Call Girls Service Dilsukhnagar Hyderabad Call +91-8250192130VIP Call Girls Service Dilsukhnagar Hyderabad Call +91-8250192130
VIP Call Girls Service Dilsukhnagar Hyderabad Call +91-8250192130Suhani Kapoor
 
How Automation is Driving Efficiency Through the Last Mile of Reporting
How Automation is Driving Efficiency Through the Last Mile of ReportingHow Automation is Driving Efficiency Through the Last Mile of Reporting
How Automation is Driving Efficiency Through the Last Mile of ReportingAggregage
 

Recently uploaded (20)

Commercial Bank Economic Capsule - April 2024
Commercial Bank Economic Capsule - April 2024Commercial Bank Economic Capsule - April 2024
Commercial Bank Economic Capsule - April 2024
 
Malad Call Girl in Services 9892124323 | ₹,4500 With Room Free Delivery
Malad Call Girl in Services  9892124323 | ₹,4500 With Room Free DeliveryMalad Call Girl in Services  9892124323 | ₹,4500 With Room Free Delivery
Malad Call Girl in Services 9892124323 | ₹,4500 With Room Free Delivery
 
High Class Call Girls Nashik Maya 7001305949 Independent Escort Service Nashik
High Class Call Girls Nashik Maya 7001305949 Independent Escort Service NashikHigh Class Call Girls Nashik Maya 7001305949 Independent Escort Service Nashik
High Class Call Girls Nashik Maya 7001305949 Independent Escort Service Nashik
 
00_Main ppt_MeetupDORA&CyberSecurity.pptx
00_Main ppt_MeetupDORA&CyberSecurity.pptx00_Main ppt_MeetupDORA&CyberSecurity.pptx
00_Main ppt_MeetupDORA&CyberSecurity.pptx
 
call girls in Nand Nagri (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in  Nand Nagri (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in  Nand Nagri (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Nand Nagri (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
VIP Kolkata Call Girl Serampore 👉 8250192130 Available With Room
VIP Kolkata Call Girl Serampore 👉 8250192130  Available With RoomVIP Kolkata Call Girl Serampore 👉 8250192130  Available With Room
VIP Kolkata Call Girl Serampore 👉 8250192130 Available With Room
 
Lundin Gold April 2024 Corporate Presentation v4.pdf
Lundin Gold April 2024 Corporate Presentation v4.pdfLundin Gold April 2024 Corporate Presentation v4.pdf
Lundin Gold April 2024 Corporate Presentation v4.pdf
 
06_Joeri Van Speybroek_Dell_MeetupDora&Cybersecurity.pdf
06_Joeri Van Speybroek_Dell_MeetupDora&Cybersecurity.pdf06_Joeri Van Speybroek_Dell_MeetupDora&Cybersecurity.pdf
06_Joeri Van Speybroek_Dell_MeetupDora&Cybersecurity.pdf
 
Q3 2024 Earnings Conference Call and Webcast Slides
Q3 2024 Earnings Conference Call and Webcast SlidesQ3 2024 Earnings Conference Call and Webcast Slides
Q3 2024 Earnings Conference Call and Webcast Slides
 
05_Annelore Lenoir_Docbyte_MeetupDora&Cybersecurity.pptx
05_Annelore Lenoir_Docbyte_MeetupDora&Cybersecurity.pptx05_Annelore Lenoir_Docbyte_MeetupDora&Cybersecurity.pptx
05_Annelore Lenoir_Docbyte_MeetupDora&Cybersecurity.pptx
 
The Economic History of the U.S. Lecture 19.pdf
The Economic History of the U.S. Lecture 19.pdfThe Economic History of the U.S. Lecture 19.pdf
The Economic History of the U.S. Lecture 19.pdf
 
Instant Issue Debit Cards - High School Spirit
Instant Issue Debit Cards - High School SpiritInstant Issue Debit Cards - High School Spirit
Instant Issue Debit Cards - High School Spirit
 
Andheri Call Girls In 9825968104 Mumbai Hot Models
Andheri Call Girls In 9825968104 Mumbai Hot ModelsAndheri Call Girls In 9825968104 Mumbai Hot Models
Andheri Call Girls In 9825968104 Mumbai Hot Models
 
VIP Call Girls LB Nagar ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With Room...
VIP Call Girls LB Nagar ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With Room...VIP Call Girls LB Nagar ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With Room...
VIP Call Girls LB Nagar ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With Room...
 
Booking open Available Pune Call Girls Shivane 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Shivane  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Shivane  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Shivane 6297143586 Call Hot Indian Gi...
 
Bladex Earnings Call Presentation 1Q2024
Bladex Earnings Call Presentation 1Q2024Bladex Earnings Call Presentation 1Q2024
Bladex Earnings Call Presentation 1Q2024
 
letter-from-the-chair-to-the-fca-relating-to-british-steel-pensions-scheme-15...
letter-from-the-chair-to-the-fca-relating-to-british-steel-pensions-scheme-15...letter-from-the-chair-to-the-fca-relating-to-british-steel-pensions-scheme-15...
letter-from-the-chair-to-the-fca-relating-to-british-steel-pensions-scheme-15...
 
VIP Call Girls Thane Sia 8617697112 Independent Escort Service Thane
VIP Call Girls Thane Sia 8617697112 Independent Escort Service ThaneVIP Call Girls Thane Sia 8617697112 Independent Escort Service Thane
VIP Call Girls Thane Sia 8617697112 Independent Escort Service Thane
 
VIP Call Girls Service Dilsukhnagar Hyderabad Call +91-8250192130
VIP Call Girls Service Dilsukhnagar Hyderabad Call +91-8250192130VIP Call Girls Service Dilsukhnagar Hyderabad Call +91-8250192130
VIP Call Girls Service Dilsukhnagar Hyderabad Call +91-8250192130
 
How Automation is Driving Efficiency Through the Last Mile of Reporting
How Automation is Driving Efficiency Through the Last Mile of ReportingHow Automation is Driving Efficiency Through the Last Mile of Reporting
How Automation is Driving Efficiency Through the Last Mile of Reporting
 

Algorithmic Trading Overview

  • 2. Algorithmic trading consists of the automated buying and selling of financial instruments (stocks, bonds and futures). Essentially It requires a network connection to an electronic exchange, broker or counterparty, and means of programmatically buying, selling and performing other tasks related to trading, such as monitoring price action and market exposure. What is Algorithmic Trading (or Algo)? What will be covered in these slides ? Who uses Algorithms - Basic Algo definitions - Terminology used - Defining the perfect algorithm How to start with Algo - Basic considerations - Skills to master - Reality over imagination Backtesting - Basic considerations - Main drivers - Real problem identification
  • 3. Who is interested to Algo-Trading? Algo-Trading for investors: Pros and Cons The Schema for Algo-trading: • A method to acquire data (“read some price data”), noting that this in itself could be quite a complex standalone algorithm and requires connection to a source of market data, usually in real time. • Some analysis of that data (“calculate its mean and standard deviation”). • A means of checking if some condition has been fulfilled based on the previous analysis (“if the most recent price is above its mean and the standard deviation is less than some threshold”). • Execution of the trading logic, which again can be quite a complex standalone algorithm requiring a means of communicating with a broker or exchange, managing that communication link and keeping track of orders and fills. Other common components of such system include: • Risk management modules, for example position sizing calculations, exposure tracking and adjustment, and tools to track a system’s performance and behaviour. • Portfolio management tools, which are somewhat related to the above. • Data handling and storage. • Post-trade reconciliation and analysis. Remove the Human factor Allows backtesting of strategies Demanding learning process The term «algorithmic trading» can actually have a slightly different meaning, particularly in an institutional setting. Indeed, algorithmic trading can refer to the automated splitting of a large order to get the best execution possible. Such algorithms typically split up a large order into smaller pieces and send the pieces to market in a way that optmizes the overall cost of the transaction. When a large transaction has to be processed, without a proper liquidity valuation, the price of the stock will dramatically increase (or decrease). By entering the position gradually, in line with the capacity of the stock to absorb the order, the overall cost of the transaction is reduced. The market Set of instruction involved in algo trading No need to watch the screen all day Cross skills implemented Hardware tools Retail investors: For investors is typically used to automate the trades accordigly to the developed strategy. This is the case in which once a strategy is set, the trader let the algorithm do the job. Institutions: For ECN - is typically used by Market Makers to disseminate and match orders with their network of counterparties. For Dark Pools - is more like a private execution venue where liquidity is provided by the participants of the dark pool, away from the exchange. Terminology:
  • 4. Technical Analysis Quantitative Trading High Frequency Trading Defining the algorithm for different classes: The type of algorithmic trading that most retail investors focus on, seeks to identify opportunities to profit by buying low and selling higher. This is the signal-based type of algorithmic trading, this try to trigger the purchase after an event is occurred. Within this broad category, there are different sub-classes of trading algorithm. While there is no one accepted nomenclature for the classes, they can generally be described as follows: • Analysis of patterns on price and volume to predict future market movement. (assuming that exist repeating patterns in the price action of a market.) • Strategies based on indicators (price / volume) like the Relative Strength Index (RSI) and Moving Average Convergence Divergence (MACD). It also includes a suite of trend lines, support and resistance lines, formations like ‘flag’ and ‘pennant’ and patterns like ‘head and shoulders’. • There is a catalog of candlestick patterns like ‘engulfing bear’ that based on historical data try to predict the future direction of the market. • On the more esoteric end of the spectrum, we have things like Elliot Wave and Fibonacci Retracement • Quantitative trading is based on mathematical or statistical models of market behavior. Examples are the cross-sectional momentum strategy and the mean- reversion strategy. • Another is a cointegrating pairs model, in which we select a pair of securities that can be combined such that together they form a mean-reverting series. • Quantitative models can be based on fundamental data by using tools to automatically process the news releases and company filings. • A subset of quantitative trading in an increasing interest trend is the one linked to Machine Learnig and artificial intelligence. • High Frequency Trading (HFT) is relatively new, by definition must be algorithmic since it occurs on the scale of microseconds – or less. • No human could engage in HFT without the support of computers. While HFT is generally signal based – that is, something occurs to trigger a buy or sell signal – speed and latency are generally more important than the actual signal itself. • The implication of this is that co-location of the algorithm either in the exchange or as close as possible is a prerequisite, and code must be optimized for speed and usually written in a low level language like C++. This results in barriers that are simply too high for DIY traders, and indeed for many trading firms.
  • 5. What does it take to succeed in Algo Trading ? Where to start? While reading these slides you have already started the process. However, these slides will serve as trigger guidance to trigger new algo traders to learn more. This section will provide answers for tipical questions when learning something new: Learning the theoretical underpinnings is important – so start reading. To become proficient at algorithmic trading, you absolutely must put the theory into practice. This is a theme that you will see repeated throughout these slides; emphasizing the practical is my strongest message when it comes to succeeding in this field. Having said that, in order to succeed in algorithmic trading, one typically needs to have knowledge and skills that span a number of disciplines. This includes both technical and soft skills. Individuals looking to set up their own algorithmic trading business will need to be across many if not all of the topics on the right; while if you are looking to build or be a part of a team, you may not need to be personally across all of these, so long as they are covered by other team members. Active doing is crucial: Statistics is crucial when managing risk to measuring performance and making decisions about allocating to particular strategies. Here are some specific examples of using statistics in algorithmic trading to illustrate just how vital this skill is: • Statistical tests can provide insight into what sort of underlying process describes a market at a particular time. • Correlation of portfolio components can be used to manage risk. • Regression analysis; • Statistics can provide insight into whether a particular approach is outperforming due to taking on higher risk, or if it exploits a genuine source of alpha. Statistics To do any serious algorithmic trading, you absolutely must be able to program, as it is this skill that enables efficient research. Accept that coding skills are prerequisite. The most known languages: Programmming This sort of risk management attempts to quantify the risk of loss and determine the optimal allocation approach for a strategy or portfolio of strategies. • Allocation strategies: Kelly allocation and Mean-Variance Optimization (MVO); • The Value-at-Risk (VaR); • The System Parameter Permutation, or SPP ; Risk Management Finance Related Computer Science Python C ++ Java Matlab R Study Practice
  • 6. Expectations Frequency of Trading Infrastructure Important Practical Matters: Bear in mind that this is a very difficult path to deal with, due to the complexity of the arguments related to algo trading, in order to develop strategies and really build up something you will need time and effort. First of all, you should master at least one of those skills previously mentioned, then you can start to implement those skills in other context. • This is not a way to become a millionare in just one day – Hedge funds have 3-year compounded annual return of just under 30%. You are not SMARTER !!! • There may exist market phenomena that can generate returns that are significant compared to the position sizing of a retail account, but which are not capable of carrying the trades of a larger fund. • The amount of gains is tangled up with the amount of risk you are willing to take. Thinking about reward in terms of risk rather than in isolation will lead you to much more sensible expectations. • Swing Traders: are those who sets a lower frequency of trading and hold a trade for weeks or months. • Day Traders: holds positions for 2 days or less • Intra-day Traders holds posistions within the day, meaning that they open trades as soon as the market open and close them before the closing day. • High frequency trading generally refers to systems with holding periods on the order of milliseconds to seconds. • Access to a strong (APIs) through a broker or through a protocol, namely FIX, or Financial Information Exchange. • HFTs are not accessible by a retail investor who is able to program due to restrictions on liquidity amount and infrastructure complexity. • For retail algo traders, a normal computer is enough to process their algos, in order to perform algorithms 24h a day, knowledge of warehouse servers is needed. • Computer specifications and algorithms implemented needs to be set out properly in order to be more efficient.
  • 7. Backtesting – Measuring the results Traditional approach: • Choose one strategy • Implement the strategy for a period of time. • Take notes of the results and grasp the pitfalls Algo approach: • Choose one or more strategies • Set the timeseries in which you want to perform the backtest • Understand the variables that affects the most the strategy and rewrite the algorithm properly. Slow Dynamic • Slippage • Commissions • Swaps Trading conditions Simulation vs Reality Backtesting requires that your trading algorithm’s performance be simulated using historical market data, and the profit and loss of the resulting trades aggregated. Dealing with these two problems requires that we consider: Requirements for a good Backtest • The Timeframe used for the analysis heavily influence Granularity • Sample of data discrepancies Sample of data Accuracy main drivers Simulation accuracy Time frame employed • Entry levels • Exits • Volume • Market volatility • Market liquidity • Order type • Execution Lathency Influencing factors: • Broker pricing • Missing data • On the traded product • Data source Where can be found:
  • 8. Look-Ahead Bias or Peeking Bias Curve-Fitting Bias or over-Optimization Bias Data-Mining Bias or Selection Bias Development methodology: In addition to simulation accuracy, the experimental methodology itself can compromise the results of our simulations. Many of these biases are subtle yet profound: they can and will very easily creep into a trading strategy research and development process and can have disastrous effects on live performance. Accounting for these biases is critical and needs to be considered at every stage of the development process. For now, I will walk through and explain the various biases that can creep in and their effect on a trading strategy. • This form of bias is introduced by allowing future knowledge to affect trade decisions. That is, trade decisions are affected by knowledge that would not have been available at the time the trade decision was taken. • A common example is executing an intra-day trade on the basis of the day’s closing price, when that closing price is not actually known until the end of the day. • Another bias example is when we use a parameter which has been estimated and then retrospectively apply it to the beginning of the next run of the simulation. • Portfolio optimization parameters are particularly prone to this bias. • Data mining bias is another significant source of over- estimated model performance. • It is reconducible to the selection of a sample, once a strategy has been tested, it is unlikely that the same strategy works with other instruments or time frames • It is impossible to solve the problem, a strategy must work dependently with his framework. • This is the bias that allows us to create magical backtests that produce annual returns on the order of hundreds of percent. Such backtests are of course completely useless for any practical trading purpose. • Regression models on more data will produce a cut of noise and of course a curve-fitting shape. • The more the sample embed the noise in the sample the more the trading results will be of no value due to an always increasing curve