Questions tagged [hft]

HFT stands for High Frequency Trading; it is the use of algorithm to trade stocks, options and other securities in very short time (can be nanoseconds to few hours)

High Frequency Trading (aka HFT) is a rather specific and special style of speculative trading, based on quantitative models that benefit from extremely fast order execution or on an immediate removal of a pending orders and having rather short position-holding times.

NYNEX analyses of HFT pattern structures

While media have illustrated HFT traders as evils for the market, serious quantitative analyses, incl. the research papers from former FED's market oversight-body consultants, have brought the very opposite view on HFT's-role, both during flash-crash events and during regular market operations.

Similarly, there were documented cases, when an erroneous algorithm-trading engine have caused damages exceeding hundreds of millions USD before the fault has been detected and isolated.

It is also fair to state, there are markets, where HFT can benefit from an advantage in a fast order-execution/-cancellation, whereas there exist also a principal market organiser, where no such advantage is ever available (by design), as a corner-stone principle of the market that strives to eliminate an unfairness in "buying" such advantage and thus creating an unequal-access to the same market.

56 questions
2
votes
0 answers

How to catch connection events?

I am really confused about chronicle's connection interface. I couldn't find any test code or source code about it. I want to catch disconnection and on-connection events. My setup looks like (vanilla chronicle 3.6.2.); Two identical process,…
cengizkrbck
  • 704
  • 6
  • 21
2
votes
2 answers

HFT strategy coding on hardware

Hardware accelaration and embedded programming has mostly been used so far to parse datafeed and/or to route orders to exchange. Have there been attempts to write simpler HFT strategies such as equity market-making in hardware? Have they been…
bsobaid
  • 955
  • 1
  • 16
  • 36
2
votes
2 answers

Stata: how to get observation value 5 minutes ahead with gabbed time data

I got high frequency data from a limit order book in Stata. Time does not have a regular interval, and some observations are at the same time (in milliseconds). For each observation I need to get the midpoint 5 minutes later in a separate column. So…
Starelite
  • 43
  • 6
1
vote
1 answer

Why is market volatility (σ) not squared in Avellenade-Stoikov Hummingbot?

In avellaneda-stoikov, https://blog.hummingbot.org/2021-04-avellaneda-stoikov-market-making-strategy/, σ^2 is an input for both the reservationPrice and optimalSpread. Hummingbot also mentions the market volatility in their docs. However, when I…
1
vote
1 answer

crypto HFT architecture

This architecture is designed to minimize latency with the help of busy-spinning and CPU affinity locks(meaning each producer/consumer thread running in only one core), preventing a thread from wandering between CPUs and losing time on context…
dopller
  • 291
  • 3
  • 13
1
vote
2 answers

How to use the Chronicle-Network Library for service communication (APIs)?

I have two services that are deployed in the two different VMs. I want to call one service from other to get some data via APIs. That should need to have an ultra-low latency call. For that how can I used the Chronicle-Network…
Reg Reg
  • 49
  • 4
1
vote
1 answer

What s the Windows exact equivalent of WaitOnAddress() on Linux?

Using shared memory with the shmget() system call, the aim of my C++ program, is to fetch a bid price from the Internet through a server written in Rust so that each times the value changes, I m performing a financial transaction. Server…
user2284570
  • 2,891
  • 3
  • 26
  • 74
1
vote
1 answer

Why does JVM performance improve with more load?

We are seeing a behavior where the performance of the JVM decreases when the load is light. Specifically on multiple runs, in a test environment we are noticing that the latency worsens by around 100% when the rate of order messages pumped into the…
Rv_menon
  • 13
  • 2
1
vote
1 answer

Not in scope: type constructor or class ‘Test.Framework.TestSuite’ when trying to create unit tests

I'm writing a small library in Haskell, and want to have tests to accompany it. For testing I intend to use HFT, and the project as a whole is managed by stack. stack test fails for some reason with the following output: [1 of 2] Compiling Main …
Michail
  • 1,843
  • 1
  • 17
  • 21
1
vote
1 answer

Market Data Replay

I'd like to create an application that is able to replay historical tick by tick multi-level book changes. My question is how does one potentially go about doing this? The immediate problem I am facing is how to simulate actual data volume burst?…
user1234440
  • 22,521
  • 18
  • 61
  • 103
1
vote
1 answer

Select a range of 5 mins by date and time using R

I have a time series data of format Ask Bid Trade Ask_Size Bid_Size Trade_Size 2016-11-01 01:00:03 NA 938.10 NA NA 203 NA 2016-11-01 01:00:04 NA 937.20 NA NA 100 …
Abhishek
  • 95
  • 1
  • 6
1
vote
1 answer

Strategy for assigning cores to threads (CPU Isolation) for HFT application

We are developing a Java based HFT application which requires a tick-to-trade performance less than 10 micro-sec. Details below: Number of cores : 6 No of application threads : 5 Threads' functions & utilization Thread 1-3 - capture exchange ticks…
1
vote
1 answer

Optimizing incoming UDP broadcast in Linux

Environment Linux/RedHat 6 cores Java 7/8 10G Application Its a low latency high frequency trading application Receives broadcast via multicast UDP There are multiple datastreams Each Incoming packet size is less than 1K(fixed size) Application…
Neha Sharma
  • 153
  • 1
  • 5
1
vote
1 answer

how to prevent series of integers to have the same value to often

I have "online" series of integers number, so every several milliseconds I have new number. Frequency is not specified - sometimes I have many numbers, sometimes I have no numbers. In reality this numbers are so called "true price" of the stock. I…
Oleg Vazhnev
  • 23,239
  • 54
  • 171
  • 305
1
vote
0 answers

optimize lock-free code of passing stock market index to other threads

I am calculating stock market index which changes so ofthen that I've decided to give it separate "core" (one of 24 virtual available cores) of my server (running 2 * E5-2640) cause anyway so far I have only 5% of CPU load so I have a lot of free…
Oleg Vazhnev
  • 23,239
  • 54
  • 171
  • 305