Algorithmic Trading

Monday, August 13, 2012

Bringing Order to Machine-led Chaos

Posted by The Progress Guys

Editor’s Note: the following post is written by Theo Hildyard, Solutions Architect, Market Surveillance at Progress Software was origianally published on TABB Forum.

Tabb.forum_.logo_

Since the May 6, 2010 flash crash the issue of out-of-control machines trading on global stock markets has made headlines over and over. Just last week a US market maker, Knight Capital, nearly blew itself up with a rogue algorithm. The calls for regulation are growing louder and regulators globally are struggling to bring order to an automated marketplace that is increasingly chaotic.

In India, the Securities and Exchange Board is considering imposing speed limits on high-frequency trading. The Hong Kong Securities and Futures Commission's CEO is very keen to regulate HFT and proposes that algorithms are tested annually. Australia's Securities and Investments Commission (ASIC) wants automated trading systems tested. In Europe the Securities and Markets Authority (ESMA) is preparing to crack down on every aspect of automated trading from algorithms to CDS to short selling. And in the US the Securities and Exchange Commission is tightening rules on automated trading systems and programs, with Knight Capital having added to the urgency.

Machines trade anywhere from 25% (Australia) to 70% (US) of the volume on stock exchanges. The opportunity to make money depends upon the speed of your trading systems along with the intelligence of your algos. Algorithmic innovation is critical in order for high frequency trading firms to find an edge. Research done by the AITE Group suggests that the average lifespan of a trading algorithm can be as short as three months. With such a small window of opportunity trading firms must design, test and deploy new algos on an almost continual basis. No wonder there are problems.

When we allow machines to make the decisions for us, it is imperative that we design them to be fail-proof. Testing in a non-production environment should be mandatory, and back-testing should be exhaustive. Poor quality due diligence and quality assurance is producing catastrophic consequences. It is our responsibility to ensure that our machines, or robots if you will, do no harm.

I am reminded of author Isaac Asimov's first law of robotics: "A robot may not injure a human being or, through inaction, allow a human being to come to harm." The 'harm' in Rule #1 is happening to the marketplace. The flash crash wiped a trillion dollars off of US-listed firms' market capitalization. Knight Capital's rogue algo wiped $440m off its balance sheet and forced it to look for backers in order to survive.

If algorithms and trading systems were programmed with Asimov-style parameters, there would be far fewer glitches. But even if you are the most conscientious firm out there, you cannot ensure that your counterparties have also programmed and tested their systems and algos thoroughly. And it remains your responsibility, to your customers, staff and shareholders, to ensure that those counterparties do not do any harm to your bottom line or reputation.

Catastrophe can only be avoided by adding an extra layer of control in the trading process; a layer which monitors counterparties for rogue algos or fat fingered trades. That way you have both belts and braces - control over internal trading systems and awareness of external ones. Yes, there will be a tiny bit more latency. But isn't a small latency hop better than bankruptcy? 

 

Thursday, July 19, 2012

Scooping FX Bubbles Out of a Boiling Pot

Posted by Ben Ernest-Jones

Foreign exchange trading appears to be moving from a beneath-the-radar, bank-dominated activity into the international trading limelight. There has been an explosion of new trading platforms and a wave of newer participants lately, partly thanks to new transparency afforded by Dodd-Frank and partly because of the relentless hunt for alpha. Increasingly automated, FX is also becoming the next go-to asset class for high frequency and algorithmic trading.

It wasn't always that way. As TABB Group's Larry Tabb said in an article in Wall Street & Technology: "FX has always been different. Be it that currency is a bank’s core product, be it that banks control the payments infrastructure, or be it that banks are critical in implementing Central Banks’ monetary policy, the banks have historically dominated FX."

Because FX is mainly traded via single dealer platforms, multi-dealer platforms such as FXall, and interdealer marketplaces, it is fragmented in a different way from equities.  Traditional trading platforms along with a couple of the sturdier newcomers like multi-dealer platforms FXall (which Thomson Reuters is buying) andCurrenex have been the dominant destinations for electronic trading of FX.

But now that the SEC and CFTC have clarified that forex contracts will be determined to be swaps, they will become part of the centrally cleared instrument pool. This means a whole new layer of banks, brokers, and venues are already popping their heads up. FX will soon emulate the expansion, consolidation, and then contraction of destinations experienced by the equities markets. 

There will be more opportunities for market participants to trade, hedge, arbitrage and manage risk. Algorithmic strategies will dominate, attracting more and more destination venues - and then fragmentation will be the mantra. So how are traders going to position themselves to scoop the profitable FX bubbles out? It is not as easy as you would think. In many cases, what appears to be an increase in liquidity is actually an increase in “phantom” orders, as institutions advertise the same underlying liquidity across an increasing number of locations. Trading algorithms will need to be smarter, and tuned over time to counteract this as the landscape changes.

Bank traders are looking for ways to handle the new world order of FX. Because their clients want to be able to trade forwards, swaps, spot and even options on the same system, banks are having to do the once-unthinkable: merge their forwards desks with their spot desks.

In the old days of voice trading, forwards and spot traders ran completely separate books and dealt with (mostly) different customers. Today clients are asking to hedge forwards and spot on the same system at the same time. Some want to trade using forward-to-spot conversions against aggregated spot prices from several platforms and some want to use aggregated forward rates directly. Some want a blending of both. The opportunities for banks are plentiful, if they can harmonize FX products, trading and hedging across trading systems successfully.

Many bank clients have seen what has happened in the equities markets; with high frequency trading and algorithmic strategies becoming problematic and largely vilified. When the world’s largest interdealer brokersaid recently that it would tackle “disruptive” practices by high-frequency traders on its foreign exchange platform it became clear that some of the lesser-loved equities issues were already creeping into FX markets.

The Wall Street Journal says that there are already fears of an FX "boom" reminiscent of the equities venue explosion in 2001. "Some market insiders fear the trend for highly specialized new systems aimed at separate pockets of clients could end up splitting the liquidity that underpins this $4 trillion-a-day market, making it harder to trade," said the paper. Pigeon-holing traders, whether it be by class of trader, asset class or by delivery date, only creates more fragmentation. This could equate to lower volumes (like equities), more volatility (like equities) and an increase in manipulative practices (like equities). Regulators will no doubt be watching, and new rules will be implemented even faster than has happened in equities.

In a discussion at the FX Week USA event in NYC recently one FX trading platform provider said that you need a full market ecology to provide proper efficiency. This means having all market participants operate in the same liquidity pool.  In the end the unique self-regulating properties of the FX markets mean that the market will shift towards what is best for the market - because it can. Preparation for this inevitability will determine who survives. 

Monday, July 02, 2012

Turning Metals into a Goldmine

Posted by Ben Ernest-Jones

"Every man now worships gold, all other reverence being done away," said Roman poet Sextus Propertius sometime around 15 BC.

Metals are hot. The Hong Kong Exchange's extravagant £1.39 billion bid to win the London Metal Exchange (LME) shows just how hot. HKE bought LME, which accounts for 80% of trade in nonferrous metals such as copper and aluminum, in a bidding frenzy against NYSE Euronext, CME and ICE.

From gold and silver to copper and nickel, it seems everyone is interested in buying and trading metals. Once the domain of producers and specialty traders such as Glencore and Marc Rich, investors globally are clamouring for access to this non-traditional asset class.

There is a natural cyclicality to asset classes; they wax and wane in popularity depending upon the opportunities to make money by trading them. Lately, investors have lost heart in stock markets and volumes are plummeting. Commodities such as oil and agriculturals lost their shine when demand in China and other emerging nations dwindled.

With returns shrinking in equities and fixed income market plays, it is no wonder that investors are interested in asset classes outside the traditional. Foreign exchange markets have been extremely active in recent years, for example, and with the current uncertainty over European debt problems demand for "safe haven" currencies is high. Precious metals often fall under that safe haven umbrella, which is presumably why interest has soared of late.

The correlation between gold and currencies such as the US dollar and the Japan yen is well documented, as gold and other metals are often used as a hedge against inflation or against a weak currency. There is also a strong correlation between gold and oil prices, and gold and the stock market historically. So there are plenty of opportunities to use metals for cross-asset-class trading, particularly in high frequency or black box strategies which monitor for anomalies in these correlations.

Luckily, pressure from investors is giving banks and brokers the incentive to break down the barriers to trading metals. Some brokers are adding metals to their foreign exchange trading platforms. We’re seeing an increase in the number of banks that are converting metals futures -  from CME, NYMEX, LME, etc. - into spot prices to stream to clients for trading. It looks like the beginning of a trend.

It is only a matter of time before banks and brokers are aggregating FX, metals, oil, stocks and bond markets for their clients - all onto one trading platform. Then we may finally see true cross-asset class and cross-geography trading. In the meantime metals trading may be the next goldmine for banks.

Wednesday, June 13, 2012

Therapy for Toxic FX Order Flow

Posted by Dan Hubscher

DhubscherAs high frequency and algorithmic trading infiltrate foreign exchange markets some of the problems that dog equities, such as high order cancellations, are arising.

Equities markets, which have seen HFT and algo trading go through the roof, have recently started clamping down on excessive and cancelled orders. As my colleague recently explored, Deutsche Börse, Borsa Italiana, NASDAQ and Direct Edge have all announced intentions to discourage the number of cancelled orders they receive. They will encourage the "good" liquidity, those players with high fill ratios, and punish the "bad".

The IntercontinentalExchange has already seen good results from a policy it implemented last year aiming to discourage "inefficient and excessive messaging without compromising market liquidity." Regulators, too, are taking note; the SEC is considering charging HFT firms for cancelled trades.

A combination of economic incentives and controls makes it happen.  In addition to adjustments to their rebate schemes, exchanges must monitor their market makers in real-time to make sure that they are living up to their quoting obligations. This monitoring can also include spotting the "Stupid Algos" blamed for generating a burden the exchanges cannot bear. 

It was only a matter of time before other asset classes started to see similar problems with excessive orders, and a similar response via a new generation of intelligent “sensing” algos – but with a twist.

FX is increasingly traded by computers.  Consultancy Aite Group said in a report last year that FX algorithms will account for more than 25% of FX trade volume by the end of 2014. And as algorithms take control, the opportunity for a flood of quotes and cancellations increases. Order-to-trade ratios, the number of orders that come in compared with the number filled, FX Algorithm_Toxic Flow Warning_Progress Software create a load on exchanges and electronic markets and they can provide a smokescreen to hide potentially abusive behavior (so-called “quote stuffing”).

We see innovative FX brokers taking measures to rein in unproductive order flow.  Similar to equities marketplaces, FX dealers and brokers are increasingly utilizing tactics that discourage excessive orders, but in a very different way. Because FX is mainly traded via single dealer platforms, multi-dealer platforms such as FXall, and interdealer marketplaces, it is fragmented in a different way from equities. 

So it is the FX brokers that are acting like exchanges and taking the initiative to control toxic order flow with their pricing strategies. Brokers need to see every opportunity and threat hidden in their customers’ flow patterns, and automate their own real-time responses, to stay profitable as markets change. Brokers servicing HFT clients react to predatory algorithms and fluctuating fill ratios by manipulating the spreads they offer.  Traditional customer profiling based on purely historical data is good for strategic decision-making.  But for more tactical decisions with immediate impact,real-time analysis is additionally required. 

A responsive broker can, for example:

  • Mitigate "toxic flow" by detecting predatory patterns in real-time, and automatically widening spreads to those clients
  • Increase business by detecting reduction in flow from “good” clients, and automatically reducing spreads to those clients
  • Preserve the relationship by detecting pending credit breaches, and immediately calling the client

Our customers use the Apama platform to perform their own customer flow analysis.  Both global and regional FX brokers now optimize how they serve their customers based on detailed real-time diagnosis of their flow. Key parameters include P&L on individual trades, an aggregated view of individual trades over time, and the performance of tiered client groups.  Using real-time customer flow analysis brokers (and banks and trading platforms) can figure out which customers are providing the types of order flow that they need. 

Customer flow sits alongside other real-time market trend analytics such as volatility, average daily volume, and depth of book.  For example, flow from a specific customer is high but liquidity is thin - then time of day impacts spreads in addition to customer behavior.  Our customers have also been generating pricing dynamically – adjusting spreads and skews - based on market conditions and customer trading patterns – including HFT patterns.

Dynamic pricing builds on an aggregated order book as source pricing.  A basic pricing service dynamically applies a set spread to the base price generated from the aggregated book.  A more advanced service changes the spread based on any data or rule, for example:

  • Current volatility
  • Depth of book (volume on bid/ask side)
  • Real-time risk parameters such as profit/loss levels
  • News
  • Current vs. target position (changes the spread or skew automatically, and updates the auto-hedger service)
  • Customer tier
  • Historical & real-time customer trading behaviour

Brokers can take input including aggregated FX prices, customer trading patterns, market volatility and hedging activity - all in real time - into the platform. The analysis generates dynamic pricing (spreads/skews) and it can work to incentivize market participants to provide quality - not quantity - orders. 

Toxic order flow, like excessive orders-to-trade, can tax trading systems and create an environment where fraud and market abuse can flourish. Using real-time customer flow analysis to get a handle on your customers' order flow will help to prevent this. Customer flow analysis can be used not only for dynamic pricing, but also for customizing product offerings and enabling banks and brokers to create execution algorithms for their clients to use. By being proactive, FX brokers and banks can avoid the issues that plague equities. And make money along the way.

 

Thursday, June 07, 2012

Twice as Nice – Progress Apama Retains Title of Best Algorithmic Trading Platform

Posted by Dan Hubscher

For the second consecutive year, the readers of Profit & Loss Magazine have named Progress Apama the Best Algorithmic Trading System as part of the Readers' Choice Digital Market Awards. The Digital Markets Awards recognize the efforts of the FX services industry in providing the tools and functionality that make trading FX more efficient.

Progress Award picture
In photo: Timothy Jones, Charlie Little, Ben Ernest-Jones Dan Hubscher (from left to right)

It's a tremendous honor and it means even more knowing that it was determined by your votes. So thank you. Let's see if we can make it three in a row!

 

Friday, May 25, 2012

The Rat Race to Regulate High Frequency Trading

Posted by John Bates

John Bates

 

The following is an excerpt from Dr. John Bates’ recent commentary on Huffington Post, whch discusses the current state of high frequency trading regulation.


Images

As Aerosmith famously sang: "Rats in the cellar... losin' money, getting no affection." Lately, HFTs have been compared to everything from rats in a granary to highway robbers intent on stealing Granny's pension. Bashing high frequency trading firms has become the latest sport in the financial services industry. So much so that the Futures Industry Association has publicly taken exception to the "emotive language" being assigned to HFTs.

"For example, many people don't realize that market abuse -- as well as being morally reprehensible -- comes at a hefty price for the market. So principal trading firms such as our members have a very real economic incentive to fight market abuse and back regulatory reform," said FIA European Principal Traders Association chairman Remco Lenterman. He noted that the industry's critics chose to overlook the value that principal trading firms add to the real economy in terms of lower transaction costs and greater liquidity, according to Finextra.

Read the full post from Dr. Bates here

 

Thursday, April 05, 2012

Today in Event Processing

Posted by The Progress Guys

Solving the Cross-Market Surveillance Conundrum”, from Theo Hildyard, offers his thoughts and insights on the World Exchange Congress, where he discussed the MiFID directive. Although MiFID was created to protect customers in investment services, the market has been manipulated and abused since the directive was first announced in 2007. Based on his conversations with other attendees at the April event, Theo gives his thoughts on how to better regulate and protect the market. 

2

Friday, March 30, 2012

Today in Event Processing

Posted by The Progress Guys

In his most recent post, Dr. John Bates discusses the technology glitch that caused BATS share price to plummet within minutes of its first IPO. Comparable to an “own goal” blunder, Dr. Bates refers to the malfunction as a wakeup call, urging exchanges and trading destinations to perform extensive back-testing and market simulation to prevent such a problem from occurring in the future. 

1
Check out his full commentary here

 

Thursday, March 29, 2012

Today in Event Processing

Posted by The Progress Guys

In “Therapy for Toxic FX Order Flow”, Dan Hubscher discusses the challenges that equity markets are facing due to high frequency and algorithmic trading in foreign exchange markets.  He explains that the rise in high order cancellation has resulted in the discouragement of cancelled trades through increased controls, as well as incentives for those who have high fill ratios. 

6

Read Dan’s full commentary here.

 

Thursday, December 01, 2011

Today in Event Processing

Posted by The Progress Guys

Dr. John Bates lists his top 9 predictions for the financial markets in 2012. No. 1: a financial institution will take a billion dollar hit and particularly focuses on the effect of regulations. To find out what else is in store for regulation, fraud and market manipulation, check out the full post

5