Algorithmic trading leverages real-time market feeds, sophisticated analytics, and direct links to electronic networks to capitalize on even the smallest inefficiencies in the market.
The requirement for near-instant analysis and response to continuous streams of market data has encouraged several software vendorsStreamBase, Apama, Truviso, and Coral8, to name a fewto develop products that support techniques such as complex event processing (CEP) and event stream processing (ESP). These products apply business rules, generate events, and execute code in real time as new messages arrive, and can process hundreds of thousands of messages per second.
While these products have become invaluable in the execution of algorithm trading systems and monitoring of execution strategies, extracting information from the large complex datasets that are generated by these trading styles and identifying underlying market movements is critical to gaining a competitive advantage. Current vendor software offerings typically provide dashboards that prove to be too simplistic to satisfy real-world demands. Further, the ability of banks to extend the vendor-offered dashboards and integrate with their existing trade visualization infrastructure has been inhibited by the use of technologies (Adobe Flex, for example) that are not a part of the typical GUI developer's toolkit.
When it comes to building GUIs, Java and .NET dominate investment banks. The broad deployment of Windows to the trader's desktop has resulted in the Windows look-and-feel being considered by many as a standard part of the user experience. This drives developers towards the use of Visual Studio 2005, .NET 2.0, and WinForms as the core development platform for the creation of smart client GUIs. WinForms has proven itself as a platform for developing today's desktop applications. However, for developing next-generation visualization applications, we need to look towards .NET 3.x and Windows Presentation Foundation (WPF) technology.
WPF is the .NET technology for building GUIs. It offers declarative programming (XAML), rich composition and customization, and easy deployment. The framework uses Click-Once functionality already available in the .NET 2.0 stack. Depending on the hardware available, there's also the added bonus of hardware acceleration. In short, WPF combines the best of DirectX, WinForms, Adobe Flash, and HTML in a single environment and both the GUI designer and GUI developer can share a common set of XAML files.
Adopting WPF now also has strategic advantages. WinForms as a technology is unlikely to see any further significant development post .NET 2.0, so investing in this technology to underpin the next-generation of smart-client GUIs would be a soon-to-be legacy investment.
Why use WPF for CEP/ESP visualization? Traders today have essentially outgrown the data grid. The frequency of data updates, the size of trading portfolios, and the many analytical results that traders and/or portfolio managers need to keep track of means that the data grid is just not expressive enough. An algorithmic trading solution could offer them a view of their trading volume using a grid. However, identifying the latest updates on a grid usually involves flashing the background color of a cell to help provide a visual clue to tradersnot exactly the most elegant solution, given today's 256-MB+ video cards that most PCs carry. Enter WPF.
An improvement over earlier Windows programming environments is WPF's retained graphics system. It cuts down on the number of redraws a UI element should incurobviously an advantage given the possible high throughput a CEP/ESP UI may want to visualize.
What benefits does WPF offer over WinForms? Apart from the advantage of WPF (XAML) being a declarative programming language, WPF reduces the need to create new controls due to the usage of Styles. A style enables the creation of a reusable representation of a desired control appearance and behavior. WinForm controls each have a particular shape and border. It offers the concept of controls that attach to a shape defined in an external template. Dependency properties are another feature that, once used, you wonder how you ever coded without them. Triggers, events, and data binding within WPF all help to take UI engineering to another level.
If you are building new UIs today, have a serious look at WPF. The WPF argument is further strengthened with the release of Visual Studio 2008. You need only to look at the gaming industry to recognize how powerful this platform can be for graphical applicationsa potential we should leverage in financial markets.