This page has been archived and commenting is disabled.
Guest Post: Deconstructing Algos, Part 4 -Phase Space Reconstructions Of CNTY Busted Trades Suggests High Speed Gang-Bangs In The Market
Submitted by The World Complex
Deconstructing Algos, Part 4: Phase Space Reconstructions Of CNTY Busted Trades Suggests High Speed Gang-Bangs In The Market
Today we consider the algos picked up by Nanex on June 21, 2011 in CNTY using the data appended here.
The figure shows the action in Century Casinos over 10 seconds on June 21. The range is pretty impressive, far more than boring old gold stocks which take weeks to months to trade over such a range.
As promised, I present below phase space portraits (using the methodology described here) from various intervals during the trading day. As you will see, they represent a new art form--flash impressionism! But first, to cleanse our digital palates, let's look at the phase space portrait of a boring, non-algofied commodity stock. I present to you the phase space portrait for the entire trading day (July 28, 2011) of Denison Mines (DML-T) with a lag of 100 ms.
Not terribly thrilling, is it? In fact as we have seen previously, a lag of 100 ms shouldn't produce anything of interest. For stocks not under the influence of algos, you usually need a lag of several days to show real structure, although with lags of minutes to hours you might notice blips in the phase space portrait of stock price.
Now, let's get down to business. First in our gallery of flash impressionism is the two-dimensional phase space portrait of CNTY data over an interval that includes some algo activity.
Timewise, virtually all of the plot takes place in the straight segment (the tail in the backwards Q). The big loop and the little tangle at the lower left all take place during 12:17:24. The straight segment would represent normal trading activity with a 100 ms lag (apart from the wide range in price over approximately 90 s of trading). All the rest is highly unusual.
Next up is a reconstruction of 2 s of trading.
The big bowl of spaghetti above all happened within 2 s. Let's leave out interpretation for a moment and head on down the gallery. Next is another boring straight segment, where I have plotted the individual states (busted trades) instead of the trajectory.
This is what you'd expect for a stock investigated at the 100 ms scale. A straight line. The volatility (from $3 to $8 in only eight minutes) is a little higher than I'm used to . . .
Then we get back to a really neat bit of flash impressionism from 2 s of busted trades. It looks a little different from the bowl of spaghetti, mainly because it covers an episode of steadily climbing prices.
The algo hits a wall. And then one second later we get this.
This last algo again differs in architecture from the bowl of spaghetti.
There are other short intervals of frantic action, but we will look at only two more.
So what is going on here? Is there a single algo? Two duelling algos? Something more?
The key difference is the "blocky" character of the last several graphs. That" blockiness" arises in phase space from repeated trades at a single price. The blockiness is absent in the bowl of spaghetti as one entity moved the share price around (was this a test?). The blockiness that followed was the result of numerous followers blasting away at the same price.
I think (but cannot prove) that the initial strange behaviour in the share price was noticed by other algos, which began to look for short episodes of volatility in the share price to exploit it for very short term gains. The initial bowl of spaghetti was manipulation from a single algo--a signal (perhaps unintentionally) for other algos. The blocky trajectories are the follow-on gang-bang of the stock as the other algos join in.
The next step is to see if similar activity shows up in other stocks. Is this sort of thing prevalent in the market?
Longer term, I need to develop methods for automatically adjusting the lag in response to the scale of the variability of the price action.
- 7351 reads
- Printer-friendly version
- Send to friend
- advertisements -











Has anyone wired an etch-a-sketch to do some trading?
dag, Basquiat was doing this type of image analysis in the 80s.
flash impressionism is a great term...some of these diagrams are reminiscent of representations of brownian motion...i haven't really thought about this much but it seems to me that if these can be represented mathematically then the functions must be self referential...they are beautiful in any case
All joking aside: Are you plotting price against the volume for each stock? Why are the X and Y axes in the same denominations?
If so, the blocky algo patterns would seem more "normal" as the machines would pepper in the same prices at increasing or decreasing volumes OR pepper in rising or falling prices at the same volumes. This would seem inherently more methodological at higher rates of exchange that computers would allow. And I suspect , the work of one algo working systematically thru the prices (attempting trigger stops or just snapping up pennies differences in prices). The curvey lines seem more biological, as if several human bidders are seeking an equilibrium without knowing what the other humans are doing. However, within the space of milliseconds, human activity is instinctively not possible. So, competing algos, makes better sense. But again, how do they nail each other within that tiny fraction of time?? Something else is happening perhaps? I hope ZHgers will brain storm this phenomenum, it is fascinating!
We now return to our regularly scheduled program...
I haven't yet. I plan to map the size of the trades over each of the states in the state space, so you would have a contoured density map overlying the flash impressionistic painting. Some of the blocky trades actually have a lot of volume pouring through at a single point, so the blocky figure might look light a street map with a few skyscrapers. But I'm still learning how to handle and process the data.
TerraHertz below pointed out an excellent opportunity to get some Q and A time with an HFT programmer. It is just fascinating to read the comments. But the guy is getting so much shit from heated comments that I fear he wont be participating too long. Better get over there and pose some questions...
http://developers.slashdot.org/comments.pl?sid=2357190&cid=36936764
this is all fascinating stuff...but at the sake of appearing simplistic...should we briefly revisit the two variable function paradigm? dependent/independent variable? what are we looking for? imo these price functions are the result of a supposedly independent intelligence pursuing profit...never mind that a machine is the middle man...someone has to program them...a worthy solution presupposes a well defined premise...
@Stares straight: "All joking aside: Are you plotting price against the volume for each stock? Why are the X and Y axes in the same denominations?"
This is a way to observe some complexity behavior and phase on a single variable in time. So the plot being X and Y, X is price in time n=0 and Y is same price in time n=-1.
It is the same data variable on both axis, with the only difference being each sample is 100ms apart.
Xn=Xn, Yn=Xn-1
Xn-1=Xn-1, Yn-1=Xn-2
so on...
http://web.mit.edu/rigobon/www/Robertos_Web_Page/Teaching_files/BM.pdf
http://users.physik.fu-berlin.de/~kleinert/files/eins_brownian.pdf
Are you sure these aren't early Picasso sketches?
I for one, salute the brave new world under skynet's control.
I think Skynet is doing a bang up job. Terminators next?
I bid $10,000 on the large-nosed man with the thin chin.
I thought it was Inspector Cluso with a huge erection.
The third one down I have named, "Big Dog Humping Bernank in Lateral Fetal position"
(I think you can detect a pattern in my thoughts)
I bid $15,000 for Big Dog Humping Bernanki.
...When you finally wake up (put on the sunglasses) you will realize that your freedom is? a facade...
Movie They live where he sees the real world, the other reality
http://www.youtube.com/watch?v=Zqi5KGljJZk
Algo Rorschach
Somtimes it seems that ZH is a sinking lifeboat in the middle of the ocean. Yes its nice to see a boat of sanity, but if we are all drowning i couldnt think of a better class of people to drown with.
Cue Violins!
zero hedge = in the end we all die
but at least you will die in peace knowing the truth
... on a long enough time line. $ = money. $ = time. $ = sin wave. $ = time cube. $ = time cloak.
There is much one can do if you have enough data points and know the math. 10,000 points or more are best, but if you have even 1000 during a particular time period, ther are many measures that might give some insight into the algo.
i think i see pinky and the brain in one of them
Re bbq on whitehou...: ZH will be the ONLY lifeboat floating around when the dust settles here (sorry about that metaphor) with everybody and their brother trying to climb in. Paddle guys! Paddle!
Yes SEC, this is fair price discovery. Move along.
When you blast through rock to drive 2-3 MS optical performance between trading exchanges, thats another sign of efficient markets evolving.
Co-location is simply for efficient cloud computing enhancements to better serve the common man.
Behold. Gangs of New York 21st century style.
From the movie… “Airplane”
Steve McCroskey: Johnny, what can you make out of this?
[Hands him the weather briefing]
Johnny: This? Why, I can make a hat or a brooch or a pterodactyl -
"Did I leave the iron on?"
Thinking patterns...
Here's your chance to have a chat with some people who program the HFT algos. Thread at slashdot started by an HFT programmer, with a few others chiming in.
http://developers.slashdot.org/comments.pl?sid=2357190&cid=36936764
"I am an HFT programmer"
Plus another discussion of the same topic here:
http://news.ycombinator.com/item?id=2828538
and a trade article on that same site, same topic:
http://adtmag.com/articles/2011/07/29/why-hft-programmers-earn-top-salaries.aspx
Yeah those graphs are not the images I was hoping to see after the jump.
A couple of those look like a self-portrait Kurt Vonnegut once did. (A very nice touch, he was the inventor of Ice-9).
I notice most of these raids have the same appearance.
Note the raids in NLY and AGNC Friday.
Seen way too many of these to beleive that they are naturally occuring events, like flatus.
Is this just Lagrange and Hamilton, or strangely more attractive, like Lorenz?
ahh...lagrange and hamilton i understand...these were two equivalent formulations of the least action principle...the philosophy was the same...only the math was different...see the brachistocrone problem...imo what is the same is the idea that action (the difference in energies in a system) is a quantity that should be (and is) minimized as the system evolves mechanically through time...newton's mechanics is equivalent but more cumbersome (less elegant)...im not sure what you mean by the lorenz reference...i remember his physics as a geometric interpretation of special relativity...i think there is a fundamental disconnection between the theories as both lagrange and hamilton ascribed to the newtonian (non relativistic) concept of time and lorentz (as i remember it) is decidedly relativistic
He's asking if they're strange attractors or not, which is a decent question given the interactions between them. I'd like to see them modeled in 3D, showing the time sequeneces and interactions more accurately - i.e. so we can tell if the interferences are parasitic or negatory [i.e. Are the secondary / tertiary algos feeding off the first, blocking it, or merely aping it, and leading to odd interactions?] What is the MS delay on each algo? (because, if you can figure the MS delay, you can likely figure out the geographic location of the source - ding ding ding).
tldr;
If algos start interacting in a chaotic fashion, then no HFT programmer has a fucking chance of determining the outcome - which is precisely what everyone is worried about.
http://www.chaoscope.org/
Too soon to tell. The nat gas flash crash looked like Lorenz.
http://worldcomplex.blogspot.com/2011/06/flash-crash-nat-gas.html
Inflatable Products
Name Card Holder
Wholesale Raincoat
Wholesale Playing Card
Promotional Gifts
Wholesale Glove
Lady Beauty Care
Mouse Pad
Wholesale Mat
Baby Products Suppliers
Promotional Products
Business Gift
Safety Products
Wholesale Mirror
Wholesale Pen
Wholesale Flashlight
Computer Accessories
Hair Products
Arts Crafts
Reflective Safety Vest
Safety Suppliers
Wholesale Vuvuzela
Wholesale Mug
Wine Set
Wholesale Radio
Wholesale Candle
Poncho Raincoat
Wholesale Clap Hands
Promotional Gifts
Beauty Equipment
Recorder Pen
Wholesale Pedometer
CD Holde
Garden Decorations
Wholesale Tellurion
Wholesale Umbrella
Wholesale Poncho
Wholesale Lighter
Wholesale Cup
Silicone Products
Wholesale Massager
Wholesale Swimming Products
Wholesale lable
Wholesale Keyboard
China Wholesale