Skip to main content

A Feasible Idea-Proposal for an Algorithmic Trading App supplemented with Deep Learning features.


Algorithmic Trading is a method of executing orders using automated pre-programmed trading instructions accounting for variables such as time, price, and volume to send small slices of the order (child orders) out to the market over time.
This concept and practice of Algorithmic Trading has been evolving over the past few years, and is now a continuous evolution on its own.

By now, there are a host of Algorithmic Trading Tools & Software in the global market. Even Algorithmic Trading Apps have started evolving, as expected. Few useful links are provided below.
9 great tools for Algorithmic Trading
An Algorithmic Trading App from Trade Smart
STREAK - An Algorithmic Trading App from Apple

After navigating through the above links, one might still wonder on how many of these tools, software, and apps are actually equipped with Deep Learning features. 
It is very much possible and obviously true that continuous research and development is in progress, in order to achieve the extra mile in Algorithmic Trading with Deep Learning.

Deep Learning methods are prophesied to revolutionize the field of AI and represents a step towards building autonomous systems. We live in an era where we are creating unbelievable amount of data everyday. Neural networks hold the ability to scale problems that were previously unsolvable, causing a huge wave of interest in this field.

One of the primary goals of the field of artificial intelligence (AI) is to produce fully autonomous agents that interact with their environments to learn optimal behaviors, possibly improving over time through trial and error.
Currently, deep learning is enabling many other machine learning algorithms, for example reinforcement learning to scale to problems that were previously intractable, such as learning to play video games directly from pixels. Deep Learning has penetrated a lot of fields, including finance. However its reach in high frequency trading is limited, specifically due to the computational constraints and primitive problem modeling methods.
There has been a lot of other machine learning algorithm tried and tested in the field of high frequency trading. There has been a lot of work done specifically in terms of feature engineering in High Frequency Trading, focused on simpler models like linear regression, multiple Kernel learning, maximum margin, traditional model-based reinforcement learning etc.
However, due to the computational complexity of Deep Learning models, lesser work has been done in terms of incorporating such recent and more complex models and instead more focus is made towards extracting useful features from the current trading book state and recent trading behavior.
The common feature values like bid-ask spread, percentage change in price, weighted price etc. and some specialized features like order imbalance are among many others that can used in our proposed model.

We aim to create a Pipeline which uses information about the past trading behavior and current snapshot of the order book to predict price movement in the near future. We will then aim to use this information for making decision in the market for maximum profitability.


Complete Pipeline 
(Refer to above block diagram for a better understanding of flow of the Pipeline)

The complete pipeline will be broadly divided into three sections :

  1. Pre-Training - The model needs to be trained beforehand using the data available from the market activity of previous days. The trained weights are saved and used to initialize the model before taking it live.
  2. Prediction - Features are created on the run and the model predicts price movement of the stocks using these features at every tick. Bid and Ask orders are placed in or withdrawn from the market using this information.
  3. Online Training - Running parallel to the predictions, we need to accumulate the feature values and corresponding ground truth values which we will get in the near future. Once a mini-batch is formed, the weights are updated by tuning the model using this batch and the same process of accumulating data starts again.

This is just a brief note on just one of the many module features in the Deep Learning supplement that can be injected in an Algorithmic Trading model.
The ability to give precise and fast prediction for the price movement of stocks is the key to profitability in High Frequency Trading. Deep Learning methods can have a lot of potential in the field of High Frequency Trading. 
Once modeled, we need to further analyze the model’s performance based on it’s prediction accuracy as well as prediction speed across full-day trading simulations.

Comments

Popular posts from this blog

Maintain a balanced distance from everything and everyone !!

Maintaining a balanced distance from everything and everyone is the most needed resolution for successful life and relationship. Just like our planet Earth, which revolves around the sun continuously at a balanced distance. Earth is neither too close to the sun to be more hotter, nor it is too far from the sun so as to be more freezing.  Accordingly, Earth has the required temperature which is needed for water to stay in liquid form, so as to allow life in so many ways and forms to continue on this planet. Likewise, we humans too should maintain a balanced distance from each other, irrespective of our age or nature of the relationship. If someone tries to get too close to another person, then knowingly or unknowingly one can intrude into others privacy.  Similarly, going too far away from the other, may end the relationship as well.

FLOOD PREVENTION - Automatic Emergency Water Gates Along The Riversides - A probable option ??

Flood due to raging rivers from excessive rainfall is a very common scenario across the globe, because engineering and technology is yet to invent anything till date, to control the weather's wrath. If we can construct huge underground car parking areas, then humans can also construct underground concrete water reservoirs, because that day is not far off, when humans has to accept and realize that preservation of rain-water and river-water, will be much more important than owning fleets of expensive cars. Whenever there is an excessive rainfall in any geographical region with rivers and its tributaries, the river gradually starts flowing above the threshold/danger mark.  I hereby propose to construct automatic emergency water gates along the riversides, at a little lower level as per the danger mark scale. And these automated gates will lead the excess river-water, to the underground concrete water reservoirs (proposed above) through an underground piping system (slanted in a...

Flying Humans... It is already happening !!

Similar to some of my earlier posts in this blog, this idea too is already an existing one. However this concept too is yet to be exhaustively implemented and used in our human society. A jet pack, rocket belt, or rocket pack is a device worn on the back which uses jets of gas or liquid to propel the wearer through the air. The concept has been present in science fiction for almost a century and became widespread in the 1960s. Real jet packs have been developed using a variety of mechanisms, but their uses are much more limited than their fictional counterparts because of the challenges of Earth's atmosphere, gravity, low energy density of available fuels, and the human body not being suited to fly, and they are principally used for stunts. A practical use for the jet pack has been in extra-vehicular activities for astronauts. (Reference Link:  Jet Pack ) Of late, humans have made significant progress in their research on individual horizontal flights. The focus of Gru...