SlideShare a Scribd company logo
Trading Strategy Generator using Deep Reinforcement Learning
Covering an End-to-End Trading Strategy Life Cycle
1
Define
Meta-Parameters
Loading
Historical Data
Time Series
Processing
Historical Data
Time Series
Building
Prediction Models
Deriving
Risk-Minimizing
Portfolio
Generating
Trading
Strategies
Putting
Optimal Trading
Strategy into Production
Trading Strategy Generator
Putting Optimal Trading Strategy into Production
2…
1
2
3
4
5
9
10
10
6
7
8 11
12
13
14
Trading Strategy Generator
Generating Trading Strategies using Deep Reinforcement Learning
3
• As an example, the goal is to generate an equity-based portfolio for the FTSE100,
by detecting and executing optimized asset selection and allocation strategies.
• Engine is putting an ‘end-of-day’ trading strategy into production by initializing a
portfolio at 14/9/2016 and rebalancing it if needed in the 5 trading days to come
implying a weekly realignment if necessary.
• By performing extensive ‘paper trading’, using Machine Learning (ML), the engine
concludes to combine a portfolio based on a ML-based trading strategy (Wijnen)
with a portfolio based on MPT (Markowitz – Modern Portfolio Theory) allocating
weights to the two strategies of 62.8% and 37.2% respectively. By performing ML, the
engine picks following components of the FTSE100 to be part of the portfolio and also
determines the number of components to pick (5): POLY, SGE, RB, CPG and FRES to
be traded in Pound Sterling (GBP).
• The table with labels ‘Prices at’, ‘Prediction at +1’ and ‘Prediction at’ show actual prices
(open) and predicted prices (close) for each of the shares selected. ‘Prediction at’ is a
prediction of closing price for same trading day, while ‘Prediction at +1’ is our estimate of
next day’s closing price. Prices are given for a ‘bundle of a given asset, e.g. 100
shares instead of 1’ in order to have a way of comparing the pricing of the different
assets.
• The engine examines both ‘The tendency to go Long’ and ‘The tendency to go
Short’ and expresses the results as a long and short position for each of the
assets respectively (E.g. for POLY go long for 840 shares, go short for 1936 shares.).
Finally the ‘netted position’ is determined (E.g. for POLY S1096, where S = Short vs. L =
Long and 1096 the number of shares to go short.).
1
2
3
4
Trading Strategy Generator
Generating Trading Strategies using Deep Reinforcement Learning
4
• The next trading day (15/9/2019) actual prices are retrieved and predictions generated.
• At 15/9/2019, the portfolio can be/is rebalanced based on market behavior: Rebalancing is analyzed for
‘going long’ and ‘going short’ simultaneously (E.g. for POLY the tendency is to increase the long
position by 47 and the short position by 108, resulting in a netted tendency to go short by 61 shares.).
• The engine keeps track of actual cumulative ‘Profit and Loss’ (P&L), and worst and best results in
terms of cumulative P&L thus far. This info is used in order to determine whether or not to liquidate the
portfolio.
• The engine rebalances the portfolio for 16/9/2019. Every trading day the engine evaluates whether to
rebalance or liquidate the portfolio.
• Graph showing the cumulative P&L over time (in trading days) for the strategy that has been put into
production.
• The part of the graph to the left of the ‘red dashed line’ shows the ‘learning’ being done by the engine. The
‘red dashed line’ shows when the strategy was first put into ‘production’. So, the to the right, actual trading
results are shown.
• As the trading strategy above seems to become less profitable after a given moment in time, we
decide to switch to a new trading strategy.
• Graph showing the amount of cash needed to execute the strategy (Positive values reflect cash
consumption while going long, negative values reflect cash impact going short.) over time.
• Graph showing the ‘Long Ratio’, which expresses the estimated probability that the market will go long
(So 0 implies 100% short, 1 reflects 100% long.).
• Graph showing the profitability of the strategy as a % per annum (E.g. 0.30 implies 30% return over the
year.).
ADDED VALUE FOR ASSET MANAGERS:
=> More accurate estimates of future expected returns and asset pricing (How: Other pptx).
=> Powerful ML-driven trading engine/portfolio optimization exploiting this increase in
accuracy by creating trading strategies in real-time reflecting current changes in market
behavior and thus allow for significantly ‘outperforming the market’.
5
6
7
8
9

More Related Content

PPT
Npvrisk
PPT
Chapter 09a
PPTX
Forex risk management
PPT
Why invest in_mutual_fund - FinVise India
PPTX
Bullbeartradingstrategy 1251914689799 Phpapp01
PPTX
PDF
Empirical time placement
PPTX
Sip ppt
Npvrisk
Chapter 09a
Forex risk management
Why invest in_mutual_fund - FinVise India
Bullbeartradingstrategy 1251914689799 Phpapp01
Empirical time placement
Sip ppt

What's hot (10)

PDF
HDFC sec note mf category analysis - arbitrage funds - june 2015
PPTX
A study of derivatives ppt
PPTX
Major Final Presentation 9910103551
ODP
National Stock Exchange and Nasdaq 100
PPSX
Myth & facts of mutual funds
PDF
Black Swan Event and How to Prepare for It
PDF
Stock Pitch For Satellite Based Solutions PowerPoint Presentation Ppt Slide T...
PPT
The capital-asset-pricing-model-capm75
PPTX
Let’s invest it (Stock Market)
PPT
Sip presentation
HDFC sec note mf category analysis - arbitrage funds - june 2015
A study of derivatives ppt
Major Final Presentation 9910103551
National Stock Exchange and Nasdaq 100
Myth & facts of mutual funds
Black Swan Event and How to Prepare for It
Stock Pitch For Satellite Based Solutions PowerPoint Presentation Ppt Slide T...
The capital-asset-pricing-model-capm75
Let’s invest it (Stock Market)
Sip presentation
Ad

Similar to Trading Engine/Robo-Advisor using Deep Reinforcement Learning (20)

PPTX
Deep reinforcement for portfolio management
PDF
How AI learnt large-scale Pair-Trading on S&P 500? (Updated)
PDF
Portfolio Assets Allocation with Machine Learning
PDF
Machine Learning Trading Strategies_ The New Frontier in Quantitative Finance...
PDF
AI in Finance: An Ensembling Architecture Incorporating Machine Learning Mode...
PPTX
"A Framework for Developing Trading Models Based on Machine Learning" by Kris...
PDF
GPU Accelerated Backtesting and Machine Learning for Quant Trading Strategies
PPTX
Machine learning for trading
PPTX
Real-Time Portfolio Rebalancing with Machine Learning: Optimizing Financial P...
PPTX
Robustness presentation
PDF
Stock Market Prediction using Alpha Vantage API and Machine Learning Algorithm
PDF
Algorithmic trading
PDF
How to automate an options day trading strategy
PPTX
Machine Learning For Stock Broking
PDF
Applying Deep Learning to Enhance Momentum Trading Strategies in Stocks
PDF
Stock prediction and algorithmic trading
PPTX
Algorithmic Trading Latest Trends & Developments Lecture By Dr. Lipa Roitman
PPTX
Leveraging artificial intelligence to build algorithmic trading strategies
PDF
2019_7816154.pdf
ODP
Using Java & Genetic Algorithms to Beat the Market
Deep reinforcement for portfolio management
How AI learnt large-scale Pair-Trading on S&P 500? (Updated)
Portfolio Assets Allocation with Machine Learning
Machine Learning Trading Strategies_ The New Frontier in Quantitative Finance...
AI in Finance: An Ensembling Architecture Incorporating Machine Learning Mode...
"A Framework for Developing Trading Models Based on Machine Learning" by Kris...
GPU Accelerated Backtesting and Machine Learning for Quant Trading Strategies
Machine learning for trading
Real-Time Portfolio Rebalancing with Machine Learning: Optimizing Financial P...
Robustness presentation
Stock Market Prediction using Alpha Vantage API and Machine Learning Algorithm
Algorithmic trading
How to automate an options day trading strategy
Machine Learning For Stock Broking
Applying Deep Learning to Enhance Momentum Trading Strategies in Stocks
Stock prediction and algorithmic trading
Algorithmic Trading Latest Trends & Developments Lecture By Dr. Lipa Roitman
Leveraging artificial intelligence to build algorithmic trading strategies
2019_7816154.pdf
Using Java & Genetic Algorithms to Beat the Market
Ad

Recently uploaded (20)

PDF
how_to_earn_50k_monthly_investment_guide.pdf
PDF
5a An Age-Based, Three-Dimensional Distribution Model Incorporating Sequence ...
PDF
Buy Verified Stripe Accounts for Sale - Secure and.pdf
PDF
DTC TRADIND CLUB MAKE YOUR TRADING BETTER
DOCX
BUSINESS PERFORMANCE SITUATION AND PERFORMANCE EVALUATION OF FELIX HOTEL IN H...
PDF
HCWM AND HAI FOR BHCM STUDENTS(1).Pdf and ptts
PPTX
How best to drive Metrics, Ratios, and Key Performance Indicators
PDF
How to join illuminati agent in Uganda Kampala call 0782561496/0756664682
PDF
Pitch Deck.pdf .pdf all about finance in
PPT
E commerce busin and some important issues
PDF
CLIMATE CHANGE AS A THREAT MULTIPLIER: ASSESSING ITS IMPACT ON RESOURCE SCARC...
PPTX
social-studies-subject-for-high-school-globalization.pptx
PPTX
Session 11-13. Working Capital Management and Cash Budget.pptx
PPTX
ML Credit Scoring of Thin-File Borrowers
PPTX
Maths science sst hindi english cucumber
PPTX
4.5.1 Financial Governance_Appropriation & Finance.pptx
PPTX
introuction to banking- Types of Payment Methods
PDF
financing insitute rbi nabard adb imf world bank insurance and credit gurantee
PDF
ECONOMICS AND ENTREPRENEURS LESSONSS AND
PDF
1a In Search of the Numbers ssrn 1488130 Oct 2009.pdf
how_to_earn_50k_monthly_investment_guide.pdf
5a An Age-Based, Three-Dimensional Distribution Model Incorporating Sequence ...
Buy Verified Stripe Accounts for Sale - Secure and.pdf
DTC TRADIND CLUB MAKE YOUR TRADING BETTER
BUSINESS PERFORMANCE SITUATION AND PERFORMANCE EVALUATION OF FELIX HOTEL IN H...
HCWM AND HAI FOR BHCM STUDENTS(1).Pdf and ptts
How best to drive Metrics, Ratios, and Key Performance Indicators
How to join illuminati agent in Uganda Kampala call 0782561496/0756664682
Pitch Deck.pdf .pdf all about finance in
E commerce busin and some important issues
CLIMATE CHANGE AS A THREAT MULTIPLIER: ASSESSING ITS IMPACT ON RESOURCE SCARC...
social-studies-subject-for-high-school-globalization.pptx
Session 11-13. Working Capital Management and Cash Budget.pptx
ML Credit Scoring of Thin-File Borrowers
Maths science sst hindi english cucumber
4.5.1 Financial Governance_Appropriation & Finance.pptx
introuction to banking- Types of Payment Methods
financing insitute rbi nabard adb imf world bank insurance and credit gurantee
ECONOMICS AND ENTREPRENEURS LESSONSS AND
1a In Search of the Numbers ssrn 1488130 Oct 2009.pdf

Trading Engine/Robo-Advisor using Deep Reinforcement Learning

  • 1. Trading Strategy Generator using Deep Reinforcement Learning Covering an End-to-End Trading Strategy Life Cycle 1 Define Meta-Parameters Loading Historical Data Time Series Processing Historical Data Time Series Building Prediction Models Deriving Risk-Minimizing Portfolio Generating Trading Strategies Putting Optimal Trading Strategy into Production
  • 2. Trading Strategy Generator Putting Optimal Trading Strategy into Production 2… 1 2 3 4 5 9 10 10 6 7 8 11 12 13 14
  • 3. Trading Strategy Generator Generating Trading Strategies using Deep Reinforcement Learning 3 • As an example, the goal is to generate an equity-based portfolio for the FTSE100, by detecting and executing optimized asset selection and allocation strategies. • Engine is putting an ‘end-of-day’ trading strategy into production by initializing a portfolio at 14/9/2016 and rebalancing it if needed in the 5 trading days to come implying a weekly realignment if necessary. • By performing extensive ‘paper trading’, using Machine Learning (ML), the engine concludes to combine a portfolio based on a ML-based trading strategy (Wijnen) with a portfolio based on MPT (Markowitz – Modern Portfolio Theory) allocating weights to the two strategies of 62.8% and 37.2% respectively. By performing ML, the engine picks following components of the FTSE100 to be part of the portfolio and also determines the number of components to pick (5): POLY, SGE, RB, CPG and FRES to be traded in Pound Sterling (GBP). • The table with labels ‘Prices at’, ‘Prediction at +1’ and ‘Prediction at’ show actual prices (open) and predicted prices (close) for each of the shares selected. ‘Prediction at’ is a prediction of closing price for same trading day, while ‘Prediction at +1’ is our estimate of next day’s closing price. Prices are given for a ‘bundle of a given asset, e.g. 100 shares instead of 1’ in order to have a way of comparing the pricing of the different assets. • The engine examines both ‘The tendency to go Long’ and ‘The tendency to go Short’ and expresses the results as a long and short position for each of the assets respectively (E.g. for POLY go long for 840 shares, go short for 1936 shares.). Finally the ‘netted position’ is determined (E.g. for POLY S1096, where S = Short vs. L = Long and 1096 the number of shares to go short.). 1 2 3 4
  • 4. Trading Strategy Generator Generating Trading Strategies using Deep Reinforcement Learning 4 • The next trading day (15/9/2019) actual prices are retrieved and predictions generated. • At 15/9/2019, the portfolio can be/is rebalanced based on market behavior: Rebalancing is analyzed for ‘going long’ and ‘going short’ simultaneously (E.g. for POLY the tendency is to increase the long position by 47 and the short position by 108, resulting in a netted tendency to go short by 61 shares.). • The engine keeps track of actual cumulative ‘Profit and Loss’ (P&L), and worst and best results in terms of cumulative P&L thus far. This info is used in order to determine whether or not to liquidate the portfolio. • The engine rebalances the portfolio for 16/9/2019. Every trading day the engine evaluates whether to rebalance or liquidate the portfolio. • Graph showing the cumulative P&L over time (in trading days) for the strategy that has been put into production. • The part of the graph to the left of the ‘red dashed line’ shows the ‘learning’ being done by the engine. The ‘red dashed line’ shows when the strategy was first put into ‘production’. So, the to the right, actual trading results are shown. • As the trading strategy above seems to become less profitable after a given moment in time, we decide to switch to a new trading strategy. • Graph showing the amount of cash needed to execute the strategy (Positive values reflect cash consumption while going long, negative values reflect cash impact going short.) over time. • Graph showing the ‘Long Ratio’, which expresses the estimated probability that the market will go long (So 0 implies 100% short, 1 reflects 100% long.). • Graph showing the profitability of the strategy as a % per annum (E.g. 0.30 implies 30% return over the year.). ADDED VALUE FOR ASSET MANAGERS: => More accurate estimates of future expected returns and asset pricing (How: Other pptx). => Powerful ML-driven trading engine/portfolio optimization exploiting this increase in accuracy by creating trading strategies in real-time reflecting current changes in market behavior and thus allow for significantly ‘outperforming the market’. 5 6 7 8 9