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
0
votes
0 answers

Market Making on simulated marketplace

I've built an simulated Electronic Exchange with its own orderbook, completely isolated from the real financial markets. I want to use my creation for a game with a few friends, but I have to provide liquidity. I've been looking around the internet…
0
votes
0 answers

Hummingbot - Spot vs Margin Order

How in hummingbot can I differentiate between placing a spot order and a margin order? I've looked through the sample scripts and source code but didn't find any option to set a desired leverage (or even turn it on). Such option is available for…
SunStorm44
  • 99
  • 6
0
votes
0 answers

How to adjust the graph for time-frame of 1 hour in Python from yfinance data

I am trying to replicate the following graph: enter image description here And I downloaded the data, however I do not know how to get this timeframe for 1 hour (13:30 to 14:30). I also do not know how to create a midpoints from this data. This is…
Patrycja
  • 1
  • 1
0
votes
0 answers

How to send more than one response to a client with openhft

I have a question about openhft chronicles. How can I save connection of client and server (or client's tid on server to connect to the client later) after sending response from server and send to the client additional response with additional…
Dmitry
  • 1
0
votes
0 answers

Why is tpqoa's stream_data freezing after fetching just one tick from Oanda?

I'm trying to use tpqoa to build my own automated bot to trade on Oanda. But the stream_data method keeps freezing after just getting one tick. Attached is the screenshot of my Jupyter Notebook, which has been frozen for almost an hour. Why is this…
0
votes
0 answers

Split range of times into 5 mins intervals in Excel

I'm new to programming and data analysis in general, and need some help with a large dataset file (43 GB). It is a list of High Frequency trades fro a stock containing two columns I'm intrested in: Time (in UTC format including milliseconds, e.g.…
0
votes
0 answers

"ValueError: x and y must have same first dimension, but have shapes (78,) and (1,)" when trying to plot exponential average graph

I am relatively new to python and trying to graph stock prices and 2 exponential moving averages but when I try to graph the exponential moving average it throws out an error. Error Occurs: '''Calculate MA''' ShortMA = df.Close.ewm(span=12,…
0
votes
1 answer

Create a report with an query

I have a problem. Consider the following fact and dimension tables in a ROLAP system that collects values of harmful substances measured in foods that are sold in supermarkets. Fact table: • Contaminants (TimeID, ShopID, FoodID, substance,…
Test
  • 571
  • 13
  • 32
0
votes
0 answers

Multiple chronicle maps in same application causing long GC pauses

I'm creating multiple chronicle maps just to avoid contention between threads. I have 10 threads that need something from the cache. With a single cache I observed continuously increasing putAll() [putting 2016 double[3][2] arrays) with each putAll]…
P K
  • 69
  • 7
0
votes
1 answer

Does the Aeron C Media Driver support Clustering capabilities?

Previously I read in docs that the C Media Driver is in development and doesn't support Aeron Cluster like the Java Media Driver does. Is this still the case? Is it a goal for C Media Driver to be on par with Java Media Driver?
0
votes
1 answer

Time series Matrix multiplication for portfolio return calculation using R

I have a high frequency trading dataset of 10 stocks between 11:00 am to 11:30 am, which I have aggregated to 30 sec interval. Subsequently I have calculated the return of these 10 stocks. How to I perform matrix multiplication of the below time…
Abhishek
  • 95
  • 1
  • 6
0
votes
2 answers

How to set a used defined value to all the columns in a data frame

I have a data frame of the format Time Ask Bid Trade Ask_Size Bid_Size Trade_Size 2016-11-01 09:00:12 NA 901 NA NA 100 NA 2016-11-01 09:00:21 NA NA 950 NA NA 5 2016-11-01…
Abhishek
  • 95
  • 1
  • 6
0
votes
1 answer

Time Series data aggregation and NA handling 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
0
votes
2 answers

MATLAB how to filter timeseries minute bar data so as to calculate realised volatility?

I have a data set looks like this: '2014-01-07 22:20:00' [0.0016] '2014-01-07 22:25:00' [0.0013] '2014-01-07 22:30:00' [0.0017] '2014-01-07 22:35:00' [0.0020] '2014-01-07 22:40:00' [0.0019] '2014-01-07 22:45:00' …
user3845799
  • 45
  • 1
  • 5
0
votes
1 answer

R: converting data to an xts object

I had a .csv file containing highfrequency data for SIZ5(silver futures) and I am trying to bring it to an xts object so I can use some of the functions in the "highfrequency" package. I loaded the data on R using the read.csv function. After doing…
UtdMan
  • 151
  • 2
  • 12