DNN-ForwardTesting: A New Trading Strategy Validation using Statistical Timeseries Analysis and Deep Neural Networks

by   Ivan Letteri, et al.

In general, traders test their trading strategies by applying them on the historical market data (backtesting), and then apply to the future trades the strategy that achieved the maximum profit on such past data. In this paper, we propose a new trading strategy, called DNN-forwardtesting, that determines the strategy to apply by testing it on the possible future predicted by a deep neural network that has been designed to perform stock price forecasts and trained with the market historical data. In order to generate such an historical dataset, we first perform an exploratory data analysis on a set of ten securities and, in particular, analize their volatility through a novel k-means-based procedure. Then, we restrict the dataset to a small number of assets with the same volatility coefficient and use such data to train a deep feed-forward neural network that forecasts the prices for the next 30 days of open stocks market. Finally, our trading system calculates the most effective technical indicator by applying it to the DNNs predictions and uses such indicator to guide its trades. The results confirm that neural networks outperform classical statistical techniques when performing such forecasts, and their predictions allow to select a trading strategy that, when applied to the real future, increases Expectancy, Sharpe, Sortino, and Calmar ratios with respect to the strategy selected through traditional backtesting.


page 11

page 12

page 13

page 14


Application of a Shallow Neural Network to Short-Term Stock Trading

Machine learning is increasingly prevalent in stock market trading. Thou...

Can We Learn to Beat the Best Stock

A novel algorithm for actively trading stocks is presented. While tradit...

Deep Learning for Asset Bubbles Detection

We develop a methodology for detecting asset bubbles using a neural netw...

High-performance stock index trading: making effective use of a deep LSTM neural network

We present a deep long short-term memory (LSTM)-based neural network for...

Evolving Chart Pattern Sensitive Neural Network Based Forex Trading Agents

Though machine learning has been applied to the foreign exchange market ...

Trading via Selective Classification

A binary classifier that tries to predict if the price of an asset will ...

Stock Trading Using PE ratio: A Dynamic Bayesian Network Modeling on Behavioral Finance and Fundamental Investment

On a daily investment decision in a security market, the price earnings ...

Please sign up or login with your details

Forgot password? Click here to reset