How One Very Naughty Algorithm Ruined Everyone's Day....

 
Thread Tools Search this Thread
Special Forums News, Links, Events and Announcements Complex Event Processing RSS News How One Very Naughty Algorithm Ruined Everyone's Day....
# 1  
Old 10-05-2010
How One Very Naughty Algorithm Ruined Everyone's Day....

John Bates
10-05-2010 04:31 PM
The chaos theory says that small differences in initial conditions can yield widely diverging outcomes. Thus it was that on May 6th when a mutual fund in Kansas entered a rather large ($4.1bn) sell order in E-mini S&P 500 futures contracts on the CME, the reverberations were felt throughout the marketplace. The order sparked a totally human panic on a day when fear was in the air and sentiment was leaning toward the bearish. The fire was then fueled and fanned by algorithmic trading strategies and high frequency trading, causing an unprecedented drop within minutes.

 

As regulators said following the flash crash: "a complex web of traders and trading strategies" links the fragmented multitude of markets here in the U.S. And, like dominoes, when one goes the rest follow. That a large sell order for E-mini S&P 500 contracts on the CME, executed by an aggressive broker's algorithm, had such a devastating knock-on effect throughout the whole of the marketplace is telling. At first, high frequency trading programs absorbed the liquidity but, as prices dove, they changed their tack and began to sell as well. Liquidity was choked off. As traders tried to make sense of the situation, it because clear that the rest of the market was a-tumbling.

 

The futures contract - technically an ETF - is a stock market index futures contract based on the S&P 500. And the S&P 500 after all is made up of 500 individual equities shares. Panic, although a human emotion, can also spread in the electronic sense. In this case when the ETF algos ‘panicked', the 'emotion' spread across other asset classes in an instant. Inconsistent and inhomogeneous trading rules across the various destinations worsened the effect. As trading halted on NYSE other destinations kept churning, but liquidity was already strangled.

 

The post-crash joint report by the SEC and CFTC notes that on the morning of the flash crash there was a decidedly unsettled feeling in the market. The European debt crisis was top of the list, and risk indicators included higher premiums on credit default swaps for debt from Greece, Portugal, Spain, Italy, and Ireland and a weak Euro. The VIX shot up by over 30%, the fourth largest single-day increase. Prices on gold futures rose 2.5%, while yields of ten-year Treasuries fell nearly 5% as investors engaged in a “flight to quality", said the report.

 

Clearly it wasn't a good day to sell; but we all make mistakes. The report highlights just how easy it is to make a well-intentioned trading faux pas that can wipe hundreds of billions of dollars off the market within minutes.

 

Lessons have been learned and they will help to prevent another flash crash. I have some to add:

 

  • Perform comprehensive pre-trade analysis, including by backtesting algorithms under a wide range of circumstances using realistic market simulation - If the mutual fund in question or its executing broker - had done a thorough back-test of its trading strategy, using some of the dire indicators and conditions present, it might have thought twice about selling so aggressively - possibly preventing the crash.
  • "Light up" the algorithmic trading process. Visibility during the trading process is crucial. Market monitoring and surveillance technology exists than can monitor the markets for anomalous behavior and alert the parties involved if it is spotted. Red alerts should have been going off in the broker, with real-time risk analytics highlighting impending problems. Also, the regulators should have been able to see an “early warning” and respond from a NORAD-style monitoring HQ.
  • Homogenize trading rules across all exchanges and ECNs. When one halts trading they all halt - for the same reason and for the same amount of time.
 

Gary Gensler, chairman of the CFTC, said following the report that perhaps both brokers and customers need to be obligated  "to monitor and make non-disruptive trading judgments." As Mr. Gensler noted, high volume is not necessarily an indicator of real liquidity. The more visibility we have into trading, the more responsive we can be and the more likely we are to avoid another flash crash.

 



Source...
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Julian day to dates in YEAR-MONTH-DAY

hello, I have many files called day001, day002, day003 and I want to rename them by day20070101, day20070102, etc. I need to do it for several years and leap years as well. What is the best way to do it ? Thank you. (1 Reply)
Discussion started by: Ggg
1 Replies

2. UNIX for Dummies Questions & Answers

Move the files between Current day & a previous day

Hi All, I have a requirement where I need to first capture the current day & move all the files from a particular directory based on a previous day. i.e move all the files from one directory to another based on current day & a previous day. Here is what I am trying, but it gives me errors.... (2 Replies)
Discussion started by: dsfreddie
2 Replies

3. Shell Programming and Scripting

Script to check if last modified day is previous day

Hi, I would like to write a script that checks if a file ('counter') was modified the previous day, if so erase its contents and write 00000000 into it. For e.g. if the file 'counter' was last modified at 11.30pm on 24th May and the script runs at 12.15am of 25th May, it should erase it's... (1 Reply)
Discussion started by: hegdepras
1 Replies

4. Shell Programming and Scripting

Code creates day 32 instead of 1st day of next month.

I am using the code below modified from a post I saw here regarding having the script write out future dates. The problem is that instead of making 8/1 it makes 7/32! Please help! yy=`date +%Y` mm=`date +%m` dd=`date +%d` echo "Today is : $yy $mm $dd" #!/usr/bin/ksh date '+%m... (5 Replies)
Discussion started by: libertyforall
5 Replies

5. Solaris

May i know the day to day activities of a Solaris system administrator?

Recently i have attended a telephonic interview. As i dont have work experience in solaris i was not able to deliver correct answer for this question. Your answer will help for the people like me who is looking to become Solaris System administrator. (4 Replies)
Discussion started by: Sesha
4 Replies

6. Shell Programming and Scripting

Script to find previous month last day minus one day timestamp

Hi All, I need to find the previous month last day minus one day, using shell script. Can you guys help me to do this. My Requirment is as below: Input for me will be 2000909(YYYYMM) I need the previous months last day minus 1 day timestamp. That is i need 2000908 months last day minus ... (3 Replies)
Discussion started by: girish.raos
3 Replies

7. Solaris

/var size is increasing day by day

Hi experts, I am facing a big problem. i use solaris 9. i found size of /var is increasing day by. snapshot of a yester moring- /dev/vx/dsk/var 15G 14G 1.1G 94% /var snapshot of a yesterday everning- /dev/vx/dsk/var 15G 14G 824M 95% /var I am... (11 Replies)
Discussion started by: thepurple
11 Replies

8. Shell Programming and Scripting

Write a shell script to find whether the first day of the month is a working day

Hi , I am relatively new to unix... Can u pls help me out to find out if the first day of the month is a working day ie from (Monday to Friday)...using Date and If clause in Korn shell.. This is very urgent. Thanks for ur help... (7 Replies)
Discussion started by: phani
7 Replies

9. Linux

HELP! my drive is now ruined by Linux.

I had my Windows and my precious files in the other drive partition. I used Drive Partition for installing Linux in its new drive. But why Linux did not detect this drive when I boot from CD-ROM? My DOS and Windows drive is not anymore detected in my system after I cancelled Linux from... (1 Reply)
Discussion started by: antonio20031009
1 Replies
Login or Register to Ask a Question