Quant Mashup - Quant Insti Parabolic SAR - An Introduction [Quant Insti]In the market, it is crucial to spot the trend, but it is equally important to detect when the trend ends. Getting out of the trade is more difficult than entering the trade. In this blog, we will talk about one such technical indicator, the Parabolic SAR indicator, which helps in identifying when(...) Introduction to Support Vector Machines [Quant Insti]Support Vector Machines were widely used a decade back, but now they have fallen out of favour. The below data from google trends can establish this more clearly. (Source: Google Trends) Why did this happen? As more and more advanced models were developed, support vector machines fell out of favour.(...) Pairs Trading Basics: Correlation, Cointegration And Strategy [Quant Insti]Pairs trading is supposedly one of the most popular types of trading strategy. In this strategy, usually a pair of stocks are traded in a market-neutral strategy, i.e. it doesn’t matter whether the market is trending upwards or downwards, the two open positions for each stock hedge against each(...) Scikit Learn Tutorial: Installation, Requirements And Building Classification Model [Quant Insti]Scikit-learn is one of the most versatile and efficient Machine Learning libraries available across the board. Built on top of other popular libraries such as NumPy, SciPy and Matplotlib, scikit learn contains a lot of powerful tools for machine learning and statistical modelling. No wonder scikit(...) The Hidden Truths About Stop loss In Trading [Quant Insti]A stop-loss order, or stops as is generally said, is an order placed with the broker to sell (or buy) if the stock of a company which you hold, reaches a pre-determined price in order to avoid large losses. In the trading world, the use of stops is seen as an essential part of risk control and money(...) Trading Using Machine Learning In Python [Quant Insti]In recent years, machine learning, more specifically machine learning in Python has become the buzz-word for many quant firms. In their quest to seek the elusive alpha, a number of funds and trading firms have adopted to machine learning. While the algorithms deployed by quant hedge funds are never(...) K-Means Clustering Algorithm For Pair Selection In Python [Quant Insti]From showing related articles at the end of the article you have browsed through to creating a personalised recommendation based on your viewing habits, you would be surprised of the number of times you have been interacting with the K-means algorithm without even realising it. The above examples(...) Neural Network In Python: Introduction, Structure and Trading Strategies [Quant Insti]You are probably wondering how a technical topic like Neural Network Tutorial is hosted on an algorithmic trading website. Neural network studies were started in an effort to map the human brain and understand how humans take decisions but algorithm tries to remove human emotions altogether from the(...) Trading China A-Share Stocks Based On Social Media Data Analysis In Python [Quant Insti]In this article, we will understand how natural language processing, sentiment analysis and social media play a role in the share markets with the help of Python. This would be explained with respect to the trading in China markets A-share stocks. This article is the final project submitted by the(...) Gini Index For Decision Trees [Quant Insti]Decision trees are often used while implementing machine learning algorithms. The hierarchical structure of a decision tree leads us to the final outcome by traversing through the nodes of the tree. Each node consists of an attribute or feature which is further split into more nodes as we move down(...) Intro to Hidden Markov Chains [Quant Insti]In a situation where you wish to determine the returns on investment, one may have all the expertise to do this but without certain information (missing pieces) it would not be possible to derive to a conclusive figure. In practical terms “assume you have the value of all returns of all assets in(...) Random Forest Algorithm In Trading Using Python [Quant Insti]In this blog, we’ll discuss what are Random Forests, how do they work, how they help in overcoming the limitations of decision trees. With the boom of Machine Learning and its techniques in the current environment, more and more of its algorithms find applications in various domains. The functions(...) Top 10 Machine Learning Algorithms For Beginners [Quant Insti]Alan Turing, an English mathematician, computer scientist, logician, and cryptanalyst, surmised about machines that, “It would be like a pupil who had learnt much from his master but had added much more by his own work. When this happens I feel that one is obliged to regard the machine as showing(...) Cross Validation in Machine Learning Trading Models [Quant Insti]The application of the machine learning models is to learn from the existing data and use that knowledge to predict the future unseen events. The model needs to be thoroughly tested and cross-validated to profitably trade in live trading. After reading this, you will be able to: Cross validate(...) Algorithmic Trading Regulations - European Union [Quant Insti]A game of cat and mouse. Technological development more often than not stays ahead of regulators. Each new technological advance or disruption carries risks for the stability of things and advantages for those who are at the forefront. Regulators try to set rules and good practices that limit(...) Random Walk Simulation Of Stock Prices Using Geometric Brownian Motion [Quant Insti]In this blog on random walk simulation, we will learn how to simulate stock prices. Future stock prices are very hard to predict and are dependent on the past trend and volatility. While simulating the stock prices one has to give reasonable weightage to these two parameters. The random walk model(...) RNN, LSTM, GRU For Trading [Quant Insti]In my previous article, we have developed a simple artificial neural network and predicted the stock price. However, in this article, we will use the power of RNN (Recurrent Neural Networks), LSTM (Short Term Memory networks) & GRU (Gated Recurrent Unit Network) and predict the stock price. We(...) Decision Tree For Trading Using Python [Quant Insti]Decision Trees, are a Machine Supervised Learning method used in Classification and Regression problems, also known as CART. Remember that a Classification problem tries to classify unknown elements into a class or category; the output always are categorical variables (i.e. yes/no, up/down,(...) Forward Propagation In Neural Networks [Quant Insti]In this blog, we will intuitively understand how a neural network functions and the math behind it with the help of an example. In this example, we will be using a 3-layer network (with 2 input units, 2 hidden layer units, and 2 output units). The network and parameters (or weights) can be(...) Deep Learning - Artificial Neural Network Using Tensorflow In Python [Quant Insti]In this article, we are going to develop a machine learning technique called Deep learning (Artificial Neural network) by using tensor flow and predicting stock price in python. At the end of this article you will learn how to build artificial neural network by using tensor flow and how to code a(...) Optimal Portfolio Construction Using Machine Learning [Quant Insti]In this post, we will learn about the Stereoscopic Portfolio Optimization framework and how it can be used to improve a quantitative trading strategy. We’ll also review concepts such as Gaussian Mixture Models, K-Means Clustering, and Random Forests. Our objective is to determine whether we can(...) Kalman Filter Techniques And Statistical Arbitrage In China's Futures Market In Python [Quant Insti]This article is the final project submitted by the author as a part of his coursework in Executive Programme in Algorithmic Trading (EPAT™) at QuantInsti®. Do check our Projects page and have a look at what our students are building. About the Author Xing Tao is a Bachelor in Computer Science(...) Using Quadratic Discriminant Analysis To Optimize An Intraday Momentum Strategy [Quant Insti]In this post, we will create an intraday momentum strategy and use QDA as a means of optimizing our strategy. We’ll begin by reviewing Linear Discriminant Analysis or LDA and how it is associated with QDA, gain an understanding of QDA and when we might implement this technique instead of Linear(...) The Unconventional Guide To The Best Websites For Quants [Quant Insti]Technology moves at a startling speed and it has been the same case in the algorithmic and quantitative trading domain. Traders around the world are making use of Machine Learning, Artificial Intelligence, Blockchain, Neural Networks, Deep Learning and similar techniques to execute their trades. One(...) Machine Learning K-Nearest Neighbors (KNN) Algorithm In Python [Quant Insti]Machine Learning is one of the most popular approaches in Artificial Intelligence. Over the past decade, Machine Learning has become one of the integral parts of our life. It is implemented in a task as simple as recognizing human handwriting or as complex as self-driving cars. It is also expected(...) Gold Price Prediction Using Machine Learning In Python [Quant Insti]Is it possible to predict where the Gold price is headed? Yes, let’s use machine learning regression techniques to predict the price of one of the most important precious metal, the Gold. We will create a machine learning linear regression model that takes information from the past Gold ETF (GLD)(...) Covered Call Options Strategy using Machine Learning [Quant Insti]A covered call is used by an investor to make some small profit while holding the stock. Mostly the reason why a trader would want to create a covered call is because the trader is bullish on the underlying stock and wants to hold for long-term, but the stock doesn’t pay any dividend.The stock is(...) Machine Learning Classification Strategy In Python [Quant Insti]In this blog, we will step by step implement a machine learning classification algorithm on S&P500 using Support Vector Classifier (SVC). SVCs are supervised learning classification models. A set of training data is provided to the machine learning classification algorithm, each belonging to one(...) How To Get Funding For Your Trading Strategy [Quant Insti]So, it’s been some time since you’ve been thinking of making more money out of your successful trading strategy. And why should you not? After all, you’ve worked hard for it and there is only a small % of people who are successful in this business. The idea is to add more funds to your trading(...) Trading Using Decision Tree Classifier Part 1 [Quant Insti]The strategy in this blog will cover no normal technical indicators, but some of my own creation. Also, we will see the difference between strategy performance on test and train data along with respect to the changes in the size of the train data and the prediction length. Unlike in my previous(...) Tips To Start Your Own Business In Algorithmic Trading [Quant Insti]You are doing well at work but have always felt that need to cater to the aspiration of doing something more, building something of your own? You are passionate about the chosen field of work. You have already explored different organizations and their work processes extensively. Entrepreneurship(...) Option Chain Extraction For NSE Stocks Using Python [Quant Insti]We are back again with another post on Python. Our last post, “Basic Operations on Stock data using Python” was well received and we are glad to see the number of likes & shares for the post on various quant trading and Python forums. Keep them coming! Financial market data is a very(...) Statistical Arbitrage Using Pair Trading In The Mexican Stock Market [Quant Insti]There are very few algo trading firms/strategies that are operating in the Mexican stock exchange. I believe this should provide great opportunities as there is little competition. Contrary to a more developed market, arbitrage opportunities aren’t readily realized which suggests there might be(...) Dispersion Trading Using Options [Quant Insti]This article is the final project submitted by the author as a part of his coursework in Executive Programme in Algorithmic Trading (EPAT™) at QuantInsti™. Do check our Projects page and have a look at what our students are building. Introduction The Dispersion Trading is a strategy used to(...) Machine Learning In Python for Trading [Quant Insti]At the end of my last blog, I had asked a few questions. Now, I will answer them all at the same time. I will also discuss a way to detect the regime/trend in the market without training the algorithm for trends. But before we go ahead, please use a fix to fetch the data from Google to run the code(...) An Example of Python Trading Strategy in Quantiacs Platform [Quant Insti]Algorithmic trading has seen great traction in recent years and the numbers of students, engineering graduates, and finance professionals looking to explore this lucrative domain has been growing exponentially with each passing year. Are you among the ones looking to learn quant skills and also make(...) Trading Strategy: 52-Weeks High Effect in Stocks [Quant Insti]In today’s algorithmic trading having a trading edge is one of the most critical elements. It’s plain simple. If you don’t have an edge, don’t trade! Hence, as a quant, one is always on a look out for good trading ideas. One of the good resources for trading strategies that have been gaining(...) Upcoming Webinar: How to use Mixture Models to Predict Market Bottoms w/ @BlackArbsCEO [Quant Insti]The webinar will explain Mixture Models and explore its application to predict an asset’s return distribution and identify outlier returns that are likely to mean revert. The webinar will cover Why bother? Motivating experimentation with Mixture Models How do Mixture Models work? (An intuitive(...) Forecasting Stock Returns using ARIMA model [Quant Insti]“Prediction is very difficult, especially about the future”. Many of you must have come across this famous quote by Neils Bohr, a Danish physicist. Prediction is the theme of this blog post. In this post, we will cover the popular ARIMA forecasting model to predict returns on a stock and(...) Making a Career in Algorithmic Trading [Quant Insti]The advent of algorithmic trading in the late last century caused a massive tectonic shift in the way trading took place in exchanges worldwide. Be it trading in stocks, derivatives, Forex or commodities, trading firms worldwide adopted algorithmic trading in a big way. The last couple of decades(...) Machine Learning: An Introduction to Decision Trees [Quant Insti]A decision tree is one of the widely used algorithms for building classification or regression models in data mining and machine learning. A decision tree is so named because the output resulting from it is the form of a tree structure. Visualizing a sample dataset and decision tree structure(...) Essential Books on Algorithmic Trading [Quant Insti]These are some of the questions that popular forums get inundated with from aspiring novice algorithmic traders around the world. A good starting point for a wannabe trader would be to pick up a good book, immerse oneself, and absorb all that the book has to offer. This post details down the core(...) Recommended Quant Readings for you – Best of 2016! [Quant Insti]As 2016 nears its finish line, here we are with the list of recommended reading on our blog with the top-rated blog posts, as voted by you! Enjoy the last few days doing what you love most! Read on. System Architecture of Algorithmic Trading This one is straight out of a lecture in the curriculum of(...) Pairs Trading on ETF - EPAT Project Work [Quant Insti]This article is the final project submitted by the author as part of his coursework in Executive Programme in Algorithmic Trading (EPAT™) at QuantInsti. You can check out our Projects page and have a look at what our students are building after reading this article. About the AuthorEPAT student(...) Sentiment Analysis on News Articles using Python for traders [Quant Insti]In our previous post on sentiment analysis we briefly explained sentiment analysis within the context of trading, and also provided a model code in R. The R model was applied on an earnings call conference transcript of an NSE listed company, and the output of the model was compared with the(...) FX Market Pairs Trading Strategy [Quant Insti]This article is the final project submitted by the author as a part of his coursework in Executive Programme in Algorithmic Trading (EPAT) at QuantInsti. Do check our Projects page and have a look at what our students are building. About the Author Harish Maranani did his Bachelors in Technology(...) Pandas tutorial : Convert tick by tick data to OHLC data [Quant Insti]In this post, we will explore a feature of Python pandas package. We usually find queries about converting tick-by-tick data into OHLC (Open, High, Low and Close) frequently. This can be accomplished with minimal effort using pandas package. The OHLC data is used for performing technical analysis of(...) Python Data Visualization using Bokeh for Algo Traders and Quants [Quant Insti]A picture is worth a thousand words or said a wise woman a hundred years ago. True to every word of the idiom, the beauty of visualization lies in how clearly it might convey multiple messages. Visualization of data is one of the key functions of a data scientist and decoding the visual messages is(...) Connecting FXCM over FIX (QuickFix engine) [Quant Insti]We talked about the defacto standard for message communication in our previous article on FIX protocol. “The Financial Information Exchange (FIX) Protocol is a message standard developed to facilitate the electronic exchange of information related to securities transactions. It is intended for use(...) Algorithmic Trading Basics for New Algorithmic Traders [Quant Insti]With more than 70% of the trading volumes in the US markets being automated, the rise of the algorithms seem more inevitable than ever before. The mechanical jobs are shifting to computers and only those who can tame the machines can rule the trade markets. Equipping oneself with the skills of(...)