My work in the field of Artificial Intelligence - Episode 4 (2015-2017)

in #ai4 years ago (edited)

I have had long passion to use AI for stock trading and investments. So as the opening sentence suggests I devised two different methodologies - one for short term trading and another for long term investment. In this post I will discuss about my research and findings about short term trading.

I started doing my research since 1994 on and off around this subject. But since 2006 I seriously started coding around my ideas to test the accuracy. I kept doing it along with my job till 2015. And then in 2015 I decided to leave the job and implement my idea. Below are the details of the methodology that were implemented.

Description of the Technology

Predicting stock direction for reduced risk in trading of stock market is of extreme importance in the field of trading and investing. Having worked in this field, as part of my hobby, and reading relevant literature over last 20+ yrs– I have hypothesized that market players with sufficient liquidity, if have some market moving information, then they will discount that information in options and may further fudge it by spreading their activity over different strike prices-in turn affecting implied volatilities and microstructure dynamics of options market. If that is true then one can do real time calculations for implied volatilities (bid, ask, call, put) across all strike prices along with corresponding market microstructure dynamics (bid-ask spread, bid-ask-trade frequency, sizes etc) again across all strike prices and use that to predict entry and exit points through use of artificial intelligence. This would have higher probability of predicting correct entry/exit points that would provide better return with reduced return volatility against say just buy-and-hold.

Having made that hypothesis – I subscribed to E-Signal Stock Market Data Service, wrote code in dot net and python, used AWS lambda functions and S3 service for parallel computation across all strike prices.

Below picture lists out all the technologies/resources that were used

Below picture shows the data fields generated and used

Below picture shows the data representation and flow through various data analysis and AI programs

Development took me nearly 18 months and then I ran this service for one full year June’16 – May’17 for NIFTY and BankNIFTY indexes of NSE, India. I selected these two as liquidity for options of these two instruments is good enabling me to execute signals as market order through automated trading service of say e.g. Zerodha.

Based on one year analysis - The profitability for BankNIFTY was better than NIFTY and together was better than buy and hold with reduced return volatility.

All the signals were relayed to twitter and Facebook for validation by third party.

Key Observation

  1. Overnight adverse movements could not be predicted and caused reduced return
  2. Higher the volatility of the underlying -better are results

Both the above observations suggests that if we use the methodology for a market that runs 24/7 and has higher volatility then that would help us generate higher returns. Therefore, crypto markets could be right place to deploy it. However, the options market in crypto world are in nascent stage, currently offered by Deribit, and have very low liquidity.


How do Informed Investors Trade in the Options Market?✩
The Information Content of Implied Skewness and Kurtosis Changes Prior to Earnings Announcements for Stock and Option Returns
Trade-Size and Price Clustering: The Case of Short Sales
My work in the field of Artificial Intelligence - Episode 3 (2004-2009)
and many on Artificial Intelligence during my last 20+ years research in this field.

Future Plans

I am currently looking for investors and collaborators to commercialize it and to deploy it to newer markets like Crypto. Please get in touch if it interests you.

Codes for AWS functions used in the project are shared in the github


These data analysis can be useful with the help of AI but in sudden adverse effects can not be judge through.

Visit my   youtube channel to get information in tech, gadgets, food and travel...

Posted using   Supersteemian Android Application

particularly overnight stuff. During market crash or rise can be picked up with some accuracy

Yeah I think so....

Happy Republic Day Prathameshbhai

Visit my   youtube channel to get information in tech, gadgets, food and travel...

Posted using   Supersteemian Android Application

Same to you. bro

Magic Dice has rewarded your post with a 47% upvote. Thanks for playing Magic Dice.

The low volume on Deribit is a real buzzkill, But it's definitely better than BitMex in many ways. I believe that the low volume will not be a problem in the near future as many Bitmex users are slowly moving to deribit, The only thing I didn't like about it is that you can close a position with a click like in Bitmex, hope they add that option soon...

I have liked their interface and information they have provided. However, they still have to provide historical data through their api for this type of research. I am waiting for that and liquidity to improve before I start.

@parmeshtyagi I also love AI , it will booming area in upcoming years . This era will remember technology . All the best for your research i hope you will achieve your goal .
according to me you are also from india . please visit once my page and give your support .

The best time to test your AI software is during depression(bear) period,it will help you to improve your AI software

Posted using Partiko Android

And why do you think so??

Depression periods are the times, when most of the retail traders lose their money

Posted using Partiko Android

Coin Marketplace

STEEM 0.19
TRX 0.08
JST 0.023
BTC 27266.17
ETH 1843.42
USDT 1.00
SBD 2.27