SlideShare a Scribd company logo
1 of 12
Download to read offline
Roadmap
● Traders test trading strategies on historical data (backtesting)
● Successful strategies from backtesting are reused in future trades
● A new technique called "forwardtesting" is proposed
● Our Forwardtesting involves testing strategies on prediction by DNNs
● Neural networks outperform traditional statistical methods in forecasting future market
trends
● We select a profitable strategy through forwardtesting results profits compared to
traditional backtesting
THE DATASET (Historical data)
● The dataset contains 10 years
of OHLC prices (2537 days)
○ from October 30th, 2011
○ to November 30th, 2021
● ANF and EOG stocks listed on NYSE not appear suitable for a passive B&H
strategy
THE DATASET (Outliers & Synchrony between TS)
● trend anomalies on the assets:
○ observing the monthly trend
of the closing price
○ financial returns through
the TSOD library
● test of uncurrelation:
○ Pearson Coefficient
0.28
○ Dynamic Time Warping
○ 209.95
THE DATASET (Stationarity Test))
● Stationarity is rarely observed in practice in
this field, but still needs to be established
○ Augmented Dickey Fuller (ADF) test is
used by analyzing the p-value and
critical value at various confidence
intervals
○ The number of lags in the ADF test is
automatically selected through the
Akaike Information Criterion (AIC)
○ P-values above the selected threshold
indicate that the time series is not
stationary
● Stationary characteristic of a time series refers to the constancy of statistical properties like mean,
variance, and covariance over time
ARIMA model Forecasting
● Settings: num. of AR terms p, num. of non-seasonal differences required for
stationarity d,and the num. of lagged forecast errors in the prediction equation q.
● Stationarity is rarely observed in practice in
this field, but still needs to be established
○ Augmented Dickey Fuller (ADF) test is
used by analyzing the p-value and
critical value at various confidence
intervals
○ The number of lags in the ADF test is
automatically selected through the
Akaike Information Criterion (AIC)
○ P-values above the selected threshold
indicate that the time series is not
stationary
Prophet model Forecasting
● Prophet captures non-linear
trends:
○ yearly | weekly | daily
seasonality
● EOG qui il testo Inserisci qui il
testo
● Robust to:
○ missing data
○ variations in the trend
○ outlier handling
● Components:
○ trend | seasonality | holidays
Deep Neural Networks Forecasting
● forecasting objective (i.e., n = 30
days)
● MLP geometry:
○ with 5 input neurons
○ with 1 output neuron
○ two hidden layers:
■ 10*t and 5*t neurons
● MLP hyperparameters:
○ dropout 0.2%
○ ReLU act.function
○ L1loss function
○ optimizer Adam
Deep Learning-based Trading System with Forwardtesting
● TEMA for ANF stocks
● ADX for EOG stocks
● Experiment:
○ 100$ of budget
○ Profit and Risk metrics:
■ #trades
■ Sharpe Ratio
■ Sortino Ratio
■ Expectation Ratio
■ Calmar Ratio
● set of entry and exit trading rules using 12 technical indicators (SMA, EMA, MACD, BBs, William
R, RSI, ATR, TEMA, ADX, etc…)
Conclusions & Future Work
● A new stock market trading system is proposed
● Deep neural networks are utilized to improve previous works
● Technical indicators are selected using a forwardtesting approach
● A neural network predicts probable future trends to guide trades
● The approach outperforms traditional backtesting methods
● Profits equal to or higher than those obtained through backtesting are achieved
Conclusions & Future Work
● The approach will be tested on other stock markets, including cryptocurrencies and
defi-tokens
● Refined feature selection and balancing strategies will be used in testing
● More complex neural networks will be explored to further improve forecasting.
Questions ?

More Related Content

Similar to FEMIB slides.pdf

TSP SYMPOSIUM Schneider, Henry.pptx
TSP SYMPOSIUM Schneider, Henry.pptxTSP SYMPOSIUM Schneider, Henry.pptx
TSP SYMPOSIUM Schneider, Henry.pptx
Henry Schneider
 
Pranav Bahl & Jonathan Stacks - Robust Automated Forecasting in Python and R
Pranav Bahl & Jonathan Stacks - Robust Automated Forecasting in Python and RPranav Bahl & Jonathan Stacks - Robust Automated Forecasting in Python and R
Pranav Bahl & Jonathan Stacks - Robust Automated Forecasting in Python and R
PyData
 
PERFORMANCE ANALYSIS and PREDICTION of NEPAL STOCK MARKET (NEPSE) for INVESTM...
PERFORMANCE ANALYSIS and PREDICTION of NEPAL STOCK MARKET (NEPSE) for INVESTM...PERFORMANCE ANALYSIS and PREDICTION of NEPAL STOCK MARKET (NEPSE) for INVESTM...
PERFORMANCE ANALYSIS and PREDICTION of NEPAL STOCK MARKET (NEPSE) for INVESTM...
Hari KC
 

Similar to FEMIB slides.pdf (20)

Reinforcement Learning 8: Planning and Learning with Tabular Methods
Reinforcement Learning 8: Planning and Learning with Tabular MethodsReinforcement Learning 8: Planning and Learning with Tabular Methods
Reinforcement Learning 8: Planning and Learning with Tabular Methods
 
Using druid for interactive count distinct queries at scale
Using druid for interactive count distinct queries at scaleUsing druid for interactive count distinct queries at scale
Using druid for interactive count distinct queries at scale
 
Production ready big ml workflows from zero to hero daniel marcous @ waze
Production ready big ml workflows from zero to hero daniel marcous @ wazeProduction ready big ml workflows from zero to hero daniel marcous @ waze
Production ready big ml workflows from zero to hero daniel marcous @ waze
 
GDP PREDICTION AND ANALYSIS USING DATA MINING TECHNIQUES
GDP PREDICTION AND ANALYSIS USING DATA MINING TECHNIQUESGDP PREDICTION AND ANALYSIS USING DATA MINING TECHNIQUES
GDP PREDICTION AND ANALYSIS USING DATA MINING TECHNIQUES
 
TSP SYMPOSIUM Schneider, Henry.pptx
TSP SYMPOSIUM Schneider, Henry.pptxTSP SYMPOSIUM Schneider, Henry.pptx
TSP SYMPOSIUM Schneider, Henry.pptx
 
Using druid for interactive count distinct queries at scale @ nmc
Using druid  for interactive count distinct queries at scale @ nmcUsing druid  for interactive count distinct queries at scale @ nmc
Using druid for interactive count distinct queries at scale @ nmc
 
Stock-market-prediction.pptx
Stock-market-prediction.pptxStock-market-prediction.pptx
Stock-market-prediction.pptx
 
Query optimization in Apache Tajo
Query optimization in Apache TajoQuery optimization in Apache Tajo
Query optimization in Apache Tajo
 
Machine learning Investigative Reporting NorthBaySolutions.pdf
Machine learning Investigative Reporting NorthBaySolutions.pdfMachine learning Investigative Reporting NorthBaySolutions.pdf
Machine learning Investigative Reporting NorthBaySolutions.pdf
 
DA 592 - Term Project Presentation - Berker Kozan Can Koklu - Kaggle Contest
DA 592 - Term Project Presentation - Berker Kozan Can Koklu - Kaggle ContestDA 592 - Term Project Presentation - Berker Kozan Can Koklu - Kaggle Contest
DA 592 - Term Project Presentation - Berker Kozan Can Koklu - Kaggle Contest
 
Unit testing
Unit testingUnit testing
Unit testing
 
Days on Housing Market Capstone Presentation
Days on Housing Market Capstone PresentationDays on Housing Market Capstone Presentation
Days on Housing Market Capstone Presentation
 
Pranav Bahl & Jonathan Stacks - Robust Automated Forecasting in Python and R
Pranav Bahl & Jonathan Stacks - Robust Automated Forecasting in Python and RPranav Bahl & Jonathan Stacks - Robust Automated Forecasting in Python and R
Pranav Bahl & Jonathan Stacks - Robust Automated Forecasting in Python and R
 
BKK16-300 Benchmarking 102
BKK16-300 Benchmarking 102BKK16-300 Benchmarking 102
BKK16-300 Benchmarking 102
 
HW03 (1).pdf
HW03 (1).pdfHW03 (1).pdf
HW03 (1).pdf
 
Our journey with druid - from initial research to full production scale
Our journey with druid - from initial research to full production scaleOur journey with druid - from initial research to full production scale
Our journey with druid - from initial research to full production scale
 
Data mining with weka
Data mining with wekaData mining with weka
Data mining with weka
 
Stock Price Prediction using ML Techniques
Stock Price Prediction using ML TechniquesStock Price Prediction using ML Techniques
Stock Price Prediction using ML Techniques
 
CNCF opa
CNCF opaCNCF opa
CNCF opa
 
PERFORMANCE ANALYSIS and PREDICTION of NEPAL STOCK MARKET (NEPSE) for INVESTM...
PERFORMANCE ANALYSIS and PREDICTION of NEPAL STOCK MARKET (NEPSE) for INVESTM...PERFORMANCE ANALYSIS and PREDICTION of NEPAL STOCK MARKET (NEPSE) for INVESTM...
PERFORMANCE ANALYSIS and PREDICTION of NEPAL STOCK MARKET (NEPSE) for INVESTM...
 

Recently uploaded

一比一原版(UC Davis毕业证书)加州大学戴维斯分校毕业证成绩单学位证书
一比一原版(UC Davis毕业证书)加州大学戴维斯分校毕业证成绩单学位证书一比一原版(UC Davis毕业证书)加州大学戴维斯分校毕业证成绩单学位证书
一比一原版(UC Davis毕业证书)加州大学戴维斯分校毕业证成绩单学位证书
atedyxc
 
一比一原版(UCSD毕业证书)加利福尼亚大学圣迭戈分校毕业证成绩单学位证书
一比一原版(UCSD毕业证书)加利福尼亚大学圣迭戈分校毕业证成绩单学位证书一比一原版(UCSD毕业证书)加利福尼亚大学圣迭戈分校毕业证成绩单学位证书
一比一原版(UCSD毕业证书)加利福尼亚大学圣迭戈分校毕业证成绩单学位证书
atedyxc
 
一比一原版(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单学位证书
一比一原版(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单学位证书一比一原版(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单学位证书
一比一原版(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单学位证书
atedyxc
 
SAUDI ARABIYA | +966572737505 |Jeddah Get Cytotec pills for Abortion pills
SAUDI ARABIYA | +966572737505 |Jeddah Get Cytotec pills for Abortion pillsSAUDI ARABIYA | +966572737505 |Jeddah Get Cytotec pills for Abortion pills
SAUDI ARABIYA | +966572737505 |Jeddah Get Cytotec pills for Abortion pills
Abortion pills in Riyadh +966572737505 get cytotec
 
ASSESSING HRM EFFECTIVENESS AND PERFORMANCE ENHANCEMENT MEASURES IN THE BANKI...
ASSESSING HRM EFFECTIVENESS AND PERFORMANCE ENHANCEMENT MEASURES IN THE BANKI...ASSESSING HRM EFFECTIVENESS AND PERFORMANCE ENHANCEMENT MEASURES IN THE BANKI...
ASSESSING HRM EFFECTIVENESS AND PERFORMANCE ENHANCEMENT MEASURES IN THE BANKI...
indexPub
 
一比一原版(Concordia毕业证书)康卡迪亚大学毕业证成绩单学位证书
一比一原版(Concordia毕业证书)康卡迪亚大学毕业证成绩单学位证书一比一原版(Concordia毕业证书)康卡迪亚大学毕业证成绩单学位证书
一比一原版(Concordia毕业证书)康卡迪亚大学毕业证成绩单学位证书
atedyxc
 

Recently uploaded (20)

Managing personal finances wisely for financial stability and
Managing personal finances wisely for financial stability  andManaging personal finances wisely for financial stability  and
Managing personal finances wisely for financial stability and
 
certified amil baba ,black magic specialist in russia and kala jadu expert in...
certified amil baba ,black magic specialist in russia and kala jadu expert in...certified amil baba ,black magic specialist in russia and kala jadu expert in...
certified amil baba ,black magic specialist in russia and kala jadu expert in...
 
Production and Cost of the firm with curves
Production and Cost of the firm with curvesProduction and Cost of the firm with curves
Production and Cost of the firm with curves
 
L1 2024 Prequisite QM persion milad1371.pdf
L1 2024 Prequisite QM persion milad1371.pdfL1 2024 Prequisite QM persion milad1371.pdf
L1 2024 Prequisite QM persion milad1371.pdf
 
amil baba kala jadu expert uk amil baba kala jadu removal uk amil baba in mal...
amil baba kala jadu expert uk amil baba kala jadu removal uk amil baba in mal...amil baba kala jadu expert uk amil baba kala jadu removal uk amil baba in mal...
amil baba kala jadu expert uk amil baba kala jadu removal uk amil baba in mal...
 
Retail sector trends for 2024 | European Business Review
Retail sector trends for 2024  | European Business ReviewRetail sector trends for 2024  | European Business Review
Retail sector trends for 2024 | European Business Review
 
一比一原版(UC Davis毕业证书)加州大学戴维斯分校毕业证成绩单学位证书
一比一原版(UC Davis毕业证书)加州大学戴维斯分校毕业证成绩单学位证书一比一原版(UC Davis毕业证书)加州大学戴维斯分校毕业证成绩单学位证书
一比一原版(UC Davis毕业证书)加州大学戴维斯分校毕业证成绩单学位证书
 
一比一原版(UCSD毕业证书)加利福尼亚大学圣迭戈分校毕业证成绩单学位证书
一比一原版(UCSD毕业证书)加利福尼亚大学圣迭戈分校毕业证成绩单学位证书一比一原版(UCSD毕业证书)加利福尼亚大学圣迭戈分校毕业证成绩单学位证书
一比一原版(UCSD毕业证书)加利福尼亚大学圣迭戈分校毕业证成绩单学位证书
 
一比一原版(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单学位证书
一比一原版(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单学位证书一比一原版(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单学位证书
一比一原版(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单学位证书
 
The Pfandbrief Roundtable 2024 - Covered Bonds
The Pfandbrief Roundtable 2024 - Covered BondsThe Pfandbrief Roundtable 2024 - Covered Bonds
The Pfandbrief Roundtable 2024 - Covered Bonds
 
Slideshare - ONS Economic Forum Slidepack - 13 May 2024.pptx
Slideshare - ONS Economic Forum Slidepack - 13 May 2024.pptxSlideshare - ONS Economic Forum Slidepack - 13 May 2024.pptx
Slideshare - ONS Economic Forum Slidepack - 13 May 2024.pptx
 
project ratio analysis of bcom studies .
project ratio analysis of bcom studies .project ratio analysis of bcom studies .
project ratio analysis of bcom studies .
 
NO1 Top Vashikaran Specialist in Uk Black Magic Specialist in Uk Black Magic ...
NO1 Top Vashikaran Specialist in Uk Black Magic Specialist in Uk Black Magic ...NO1 Top Vashikaran Specialist in Uk Black Magic Specialist in Uk Black Magic ...
NO1 Top Vashikaran Specialist in Uk Black Magic Specialist in Uk Black Magic ...
 
SAUDI ARABIYA | +966572737505 |Jeddah Get Cytotec pills for Abortion pills
SAUDI ARABIYA | +966572737505 |Jeddah Get Cytotec pills for Abortion pillsSAUDI ARABIYA | +966572737505 |Jeddah Get Cytotec pills for Abortion pills
SAUDI ARABIYA | +966572737505 |Jeddah Get Cytotec pills for Abortion pills
 
MARKETING PLAN COFFEE SHOP IN HO CHI MINH CITY
MARKETING PLAN COFFEE SHOP IN HO CHI MINH CITYMARKETING PLAN COFFEE SHOP IN HO CHI MINH CITY
MARKETING PLAN COFFEE SHOP IN HO CHI MINH CITY
 
amil baba in australia amil baba in canada amil baba in london amil baba in g...
amil baba in australia amil baba in canada amil baba in london amil baba in g...amil baba in australia amil baba in canada amil baba in london amil baba in g...
amil baba in australia amil baba in canada amil baba in london amil baba in g...
 
Satoshi DEX Leverages Layer 2 To Transform DeFi Ecosystem.pdf
Satoshi DEX Leverages Layer 2 To Transform DeFi Ecosystem.pdfSatoshi DEX Leverages Layer 2 To Transform DeFi Ecosystem.pdf
Satoshi DEX Leverages Layer 2 To Transform DeFi Ecosystem.pdf
 
ASSESSING HRM EFFECTIVENESS AND PERFORMANCE ENHANCEMENT MEASURES IN THE BANKI...
ASSESSING HRM EFFECTIVENESS AND PERFORMANCE ENHANCEMENT MEASURES IN THE BANKI...ASSESSING HRM EFFECTIVENESS AND PERFORMANCE ENHANCEMENT MEASURES IN THE BANKI...
ASSESSING HRM EFFECTIVENESS AND PERFORMANCE ENHANCEMENT MEASURES IN THE BANKI...
 
20240514-Calibre-Q1-2024-Conference-Call-Presentation.pdf
20240514-Calibre-Q1-2024-Conference-Call-Presentation.pdf20240514-Calibre-Q1-2024-Conference-Call-Presentation.pdf
20240514-Calibre-Q1-2024-Conference-Call-Presentation.pdf
 
一比一原版(Concordia毕业证书)康卡迪亚大学毕业证成绩单学位证书
一比一原版(Concordia毕业证书)康卡迪亚大学毕业证成绩单学位证书一比一原版(Concordia毕业证书)康卡迪亚大学毕业证成绩单学位证书
一比一原版(Concordia毕业证书)康卡迪亚大学毕业证成绩单学位证书
 

FEMIB slides.pdf

  • 1.
  • 2. Roadmap ● Traders test trading strategies on historical data (backtesting) ● Successful strategies from backtesting are reused in future trades ● A new technique called "forwardtesting" is proposed ● Our Forwardtesting involves testing strategies on prediction by DNNs ● Neural networks outperform traditional statistical methods in forecasting future market trends ● We select a profitable strategy through forwardtesting results profits compared to traditional backtesting
  • 3. THE DATASET (Historical data) ● The dataset contains 10 years of OHLC prices (2537 days) ○ from October 30th, 2011 ○ to November 30th, 2021 ● ANF and EOG stocks listed on NYSE not appear suitable for a passive B&H strategy
  • 4. THE DATASET (Outliers & Synchrony between TS) ● trend anomalies on the assets: ○ observing the monthly trend of the closing price ○ financial returns through the TSOD library ● test of uncurrelation: ○ Pearson Coefficient 0.28 ○ Dynamic Time Warping ○ 209.95
  • 5. THE DATASET (Stationarity Test)) ● Stationarity is rarely observed in practice in this field, but still needs to be established ○ Augmented Dickey Fuller (ADF) test is used by analyzing the p-value and critical value at various confidence intervals ○ The number of lags in the ADF test is automatically selected through the Akaike Information Criterion (AIC) ○ P-values above the selected threshold indicate that the time series is not stationary ● Stationary characteristic of a time series refers to the constancy of statistical properties like mean, variance, and covariance over time
  • 6. ARIMA model Forecasting ● Settings: num. of AR terms p, num. of non-seasonal differences required for stationarity d,and the num. of lagged forecast errors in the prediction equation q. ● Stationarity is rarely observed in practice in this field, but still needs to be established ○ Augmented Dickey Fuller (ADF) test is used by analyzing the p-value and critical value at various confidence intervals ○ The number of lags in the ADF test is automatically selected through the Akaike Information Criterion (AIC) ○ P-values above the selected threshold indicate that the time series is not stationary
  • 7. Prophet model Forecasting ● Prophet captures non-linear trends: ○ yearly | weekly | daily seasonality ● EOG qui il testo Inserisci qui il testo ● Robust to: ○ missing data ○ variations in the trend ○ outlier handling ● Components: ○ trend | seasonality | holidays
  • 8. Deep Neural Networks Forecasting ● forecasting objective (i.e., n = 30 days) ● MLP geometry: ○ with 5 input neurons ○ with 1 output neuron ○ two hidden layers: ■ 10*t and 5*t neurons ● MLP hyperparameters: ○ dropout 0.2% ○ ReLU act.function ○ L1loss function ○ optimizer Adam
  • 9. Deep Learning-based Trading System with Forwardtesting ● TEMA for ANF stocks ● ADX for EOG stocks ● Experiment: ○ 100$ of budget ○ Profit and Risk metrics: ■ #trades ■ Sharpe Ratio ■ Sortino Ratio ■ Expectation Ratio ■ Calmar Ratio ● set of entry and exit trading rules using 12 technical indicators (SMA, EMA, MACD, BBs, William R, RSI, ATR, TEMA, ADX, etc…)
  • 10. Conclusions & Future Work ● A new stock market trading system is proposed ● Deep neural networks are utilized to improve previous works ● Technical indicators are selected using a forwardtesting approach ● A neural network predicts probable future trends to guide trades ● The approach outperforms traditional backtesting methods ● Profits equal to or higher than those obtained through backtesting are achieved
  • 11. Conclusions & Future Work ● The approach will be tested on other stock markets, including cryptocurrencies and defi-tokens ● Refined feature selection and balancing strategies will be used in testing ● More complex neural networks will be explored to further improve forecasting.