Questions tagged [algorithmic-trading]

Algorithmic trading is the process of taking in inputs such as market data, current news, and producing orders without human intervention.

Filter by
Sorted by
Tagged with
41
votes
14answers
30k views

Except Zipline, are there any other Pythonic algorithmic trading library I can choose?

Except Zipline, are there any other Pythonic algorithmic trading library I can choose? Especially, for backtesting?
19
votes
2answers
6k views

Regime-Switching Model for detecting market shifts

I'm always wondering whether anyone has utilized regime-switching models successfully in forecasting or trading. Academia has long discussed this topic in-depth, such as using Regime Switching ...
18
votes
4answers
830 views

Why do Human traders make money?

Over the years I met a couple of dozen of (human) traders who I'd consider good (being in the business for several years, generating a reasonably steady income). I had chances to chat with some of ...
18
votes
3answers
4k views

Papers about risk management in algorithmic trading?

I am currently doing my research for my master thesis, which will clearly focus on the question of risk managment in algorithmic trading systems. I have done research about this topic and found some ...
14
votes
4answers
5k views

Why are there still manual market makers in options

Why are manual market makers still predominant in options markets? Why haven't algorithms replaced these market makers, as they have for liquid stocks for example?
14
votes
3answers
10k views

Which algorithms do robo-advisors use?

Some pundits claim that there is a revolution in portfolio management under way: The rise of the robots, a.k.a. robo-advisors. The most well known are Betterment.com, FutureAdvisor, Schwab Intelligent ...
11
votes
4answers
5k views

Is it really possible to create a robust algorithmic trading strategy for intraday trading?

I'm an engineer doing academic research for my master thesis in the area of quantitative finance, basically the purpose is to study the possibility to create an intraday-trading algorithm. I've tried ...
11
votes
3answers
843 views

Which features to include in an algorithmic trading dashboard?

I have been hacking around with algorithmic trading as a hobby project to build my data analysis skills, coding skills, and learn more about financial markets. As part of this project I am interested ...
9
votes
5answers
583 views

Is there a name for, or any research on, a system where you try to predict future price by finding a similar price history in the past?

Allow me to explain. You look back from some period to the present. Say a week ago to now, using a per-minute view. You then crawl through your database of past price data, and you try to find a ...
9
votes
2answers
14k views

What kind of return can an average algorithmic trading firm achieve today?

What kind of rate of return can an average, equities-focused algorithmic trading firm expect to achieve today? I come from a background of control and optimization, working in the industry in China, ...
8
votes
4answers
2k views

Is this how stock trading works?

I was told to move this question here from Money Stack Exchange, where some people have already provided some feedback. This is a very basic question about the Stock Exchange, and I was looking for ...
8
votes
7answers
880 views

Learning and applying Quantitative Finance successfully as an individual instead of a team

In the past few months, I became really interested in using machine learning techniques in the realm of quantitative finance and trading. I made a few rudimentary models and I immediately realized how ...
8
votes
7answers
1k views

Proof that no trading system always wins

I am pondering on the existence/impossibility of a trading system (or algorithm) that ALWAYS ends up winning money, no matter how the price of a futures moves. In a context where one can go long or ...
8
votes
3answers
6k views

How to distinguish between different types of algorithmic trading

Algorithmic trading involves the use of algorithms to optimally execute trading instructions. Then there are algorithms which initiate trades, based on various quantitative strategies (e.g. pairs ...
8
votes
2answers
342 views

Defining an objective function for machine learning task of trading

A simplified example. Given: asset's price time series fixed distances to stop and target. A function of these inputs has two possible output values: $1$ if price is likely to hit the target ...
8
votes
1answer
879 views

Does Chan use the wrong state transition model in his Kalman filter code?

In his book, Algorithmic Trading: Winning Strategies and Their Rationale, Ernie Chan shows how to use a Kalman filter to improve the returns of a cointegrated portfolio. Recall that the state equation ...
8
votes
2answers
687 views

Why does algorithmic trading account for a significantly higher percentage of trades in the USA than in Europe or Asia?

I saw this study Why does algorithmic trading account for a significantly higher percentage of trades in the USA than in Europe or Asia? Is that because US-based exchanges offer more edge to high-...
8
votes
1answer
1k views

Optimal Executions for Minimizing Slippage

There has been a considerable body of work for finding trading strategies that minimize the slippage wrt arrival price. For instance, the following are on of the most well known papers: [1] Robert ...
8
votes
1answer
902 views

Efficient integration of tick data feed with signal generation

The goal is to design the integration of processes generating trading signal doing analytics on a stream of asynchronous tick data retrieved using the native Python TWS API of Interactive Brokers. Two ...
7
votes
6answers
4k views

FIX- what exactly do repeating groups represent?

I am trying to find out what is the purpose of "repeating groups" in FIX and what exactly do they represent? Are they all related to the same order and if so, why do you need repeated tags? If they ...
7
votes
5answers
2k views

Please advise on the choice of an automated trading framework

I'd like to start automating my trading strategies. I'm not looking for a fast and easy solution, therefore the programming language is not important for me, I am ready to spend an extra year to ...
7
votes
2answers
5k views

Quantitative Finance Programming Language

Since couple of weeks, I started to do my research on quant finance. During this time, I could discover a lot of stuff and with that stuff, a lot of questions came to my mind. A lot of news or ...
7
votes
2answers
670 views

Recover full tick data from missing tick data

Due to some economics/regime problem, I can only have access to non full-tick data from an exchange. To make the problem precise, a full tick data $X$ is a series of $(t_i,p_i,v_i)$ for $0 \leq i \...
7
votes
2answers
629 views

What are Sell Imbalance-Only Orders?

I am reading the 2014 SEC filing against Athena, a HFT firm. (http://www.sec.gov/litigation/admin/2014/34-73369.pdf) At point 29, they describe the behavior of Athena moments before market closing ...
6
votes
3answers
907 views

Position sizing in algorithmic trading

Good morning, I have a question, regarding position size in algorithmic trading. I have a strategy that every day generates signals for buying or selling positions on different stocks. I'm looking ...
6
votes
2answers
5k views

Programmatically detect RSI divergence

How can I programmatically detect bullish and bearish RSI divergences? A bullish divergence occurs when the underlying security makes a lower low and RSI forms a higher low. RSI does not confirm the ...
6
votes
1answer
800 views

Mathematical theories of (sub)-optimal trading strategies under “idealized” assumption - price is random process known to trader

The question is NOT about real trading, but about simplified mathematical models for trading. One of the main problems in trading is that asset prices are not correctly described by the some random ...
5
votes
2answers
8k views

Orderbook Arbitrage

The order-books of trading exchanges are often hidden as so-called "Dark Pools". The measure was taken to avoid apparent market manipulation strategies executed by traders back then. Which such ...
5
votes
3answers
2k views

Understanding Cover's Universal Portfolio Algorithm

I am trying to implement the Universal Portfolio algorithm strategy inspired by the paper by Professor Cover from Stanford. At the moment I am trying to understand the underlying logic of the ...
5
votes
4answers
365 views

Backtest overfitting - in-sample vs out-of-sample

Recently, I read a great paper by De Prado et al. on backtest overfitting problem in Quantitative Finance titled Pseudo-Mathematics and Financial Charlatanism: the Effects of Backtest Overfitting on ...
5
votes
1answer
1k views

Calculating most profitable arbitrage orders on multiple market with fixed and variable fees

If I have multiple markets (let's say 5, but the solution should be generic) trading the same stock/commodity/whatever, and the markets differ in both variable fees (which are in % of the trade order) ...
5
votes
2answers
712 views

Cointegration and Ratio Pair Trading

I'm having some confusion doing Engle-Granger Cointegration test and then trade the ratio. Methodology: Run an OLS fit for A and B price time series without a constant. Therefore, $\hat{Y} = \gamma \...
5
votes
0answers
339 views

Algorithmic Trading Model Calculation and Stale Data

I'd like ask everyone a more concurrency programming but definitely quant-finance related question. How do you deal with staleness of data in market hours as quote ticks are streaming and your model ...
4
votes
1answer
309 views

approach on trading algorithm using machine learning [closed]

let's say I am supervising a algorithmic trading project using machine learning. I don't have involvement in the technical side but am involved in the high level planning. the style is likely ...
4
votes
2answers
2k views

How to incorporate fundamental analysis in quantitative trading algorithm? [closed]

I want to write a quantitative stock trading program based on fundamental analysis. It would crunch through prices, financial reports to look for value stocks. It can support backtesting of strategy ...
4
votes
1answer
423 views

What is a good source to learn the different nuances of electronic orders and their nature?

Today I was speaking with someone involved in high frequency trading. They were mentioning hidden orders, queue positions (which can be lost in the orderbook based on certain order modifications), ...
4
votes
1answer
242 views

Arithmetic Brownian Motion in Market Making papers

We often consider high-frequency market maker and suppose that the reference price is the arithmetic Brownian Motion: $dS_{t} = \sigma d W_t$ What is the difference $t_n - t_{n-1}$ in this case? Is ...
4
votes
1answer
332 views

What are the consequences of violating Hansen-Jagannathan bounds?

Note I have added much more detail to this question I have decided to add the detail without altering the original text since a number of those of you offering assistance asked for clarification. ...
4
votes
2answers
3k views

How to filter and normalize market data obtained from distinct sources (FIX 4.4, bloomberg, etc) in an algorithmic trading system?

I'm wondering if some of you known how to resolve this requirement: I have to define the architecture of an algorithmic trading system (but I'm not an architect, so I'm trying to do my best). I have ...
4
votes
0answers
2k views

Meaning of cross sectional rank

This paper mentions the concept of rank which is defined as cross sectional rank. For e.g. one of the alphas (#3) is (-1 * correlation(rank(open), rank(volume), 10)) 10 is just the number of days ...
4
votes
0answers
370 views

Calculating index arbitrage

I have a days-worth of level 2 market data. I am calculating S&P500 index arbitrage. I have a few questions about the calculation: 1) Should I be summing all the bids and asks from the stocks ...
3
votes
3answers
353 views

Basics of trading strategy development

I am Computer engineer and I know programming in python, go-lang, C++, I am interested in trading, I know how to make system to get data, send orders, back-test, fault-tolerance system, etc I have ...
3
votes
2answers
7k views

Build a customizable trading engine in python [closed]

I am planning building fully customizable backtesting trading engine in python from scratch as a open source project, the main features i am considering is, It should be fully customizable from top ...
3
votes
2answers
351 views

definition of mid price in literature

In literature, the mid-price is often used along with the terms "fair value", "true value" among others. I take it alot of the times it means the same thing because the mid-price doesnt necessarily ...
3
votes
3answers
526 views

How is market buy order executed when meeting both market sell order and limit sell order?

Currently, we all know how market buy order is executed when meeting only limit sell order for time-priority rule.
3
votes
1answer
307 views

Algorithmic Trading: Normalization and Selection of Technical Indicators for Artificial Neural Networks [closed]

I study on algorithmic trading for a while based on technical indicators. I started to learn about neural networks and want to use technical trading indicators in this approach. However, I am not ...
3
votes
1answer
603 views

What's the rationale behind having several orders on each each side for market makers

I've been browsing market making codebases and I've noticed most of them tend to create multiple orders on each side. Originally I thought having orders on each side is an advanced approach but here'...
3
votes
1answer
865 views

Does Ito/Malliavin calculus have any applications helpful for direction based trading?

I'm an aspiring computer scientist who want to move into algorithmic trading at some point. At the moment I'm mostly focusing on courses in machine learning/data analysis etc. but I've noticed that ...
3
votes
2answers
1k views

Quant Interview Course [closed]

I there any course on for quant that covers all the factors such as logical reasoning, puzzles, statistics, probability, time series analysis, portfolio management, options, machine learning, and ...
3
votes
1answer
389 views

Scaling (Data prep) & Feature selection for the financial Data for LSTM Models

Overview I'm training an index e.g. FTSE100, where I have 8 years of past data (daily). I also have a list of its constituents. For each stock, I have the following features: ...