For questions about programming languages, implementation, and packages in quantitative finance. Note: question must be specific to quantitative finance and must necessitate knowledge of quantitative finance in order to be on topic.

learn more… | top users | synonyms (9)

29
votes
12answers
30k views

Why is C++ still a very popular language in quantitative finance? [closed]

I had to ask this question after reading the answers to What programming languages are most commonly used in quantitative finance? I understand that C++ programs can be optimized pretty well and are ...
21
votes
5answers
6k views

What is a good broker for HFT?

Currently I trade trough IB. I run my HFT strategies (100 roundtrips per hour) but I think that latency is killing me and my profits are shrinking. I need the fastest possible brokers out there which ...
20
votes
9answers
4k views

How good is managed code for algo trading?

I am currently working in a firm that does algo trading. We do all of our stuff in Java. And we do make money out of it. We have debates all the time whether we would have made more money with native ...
20
votes
11answers
5k views

Is F# used in trading systems?

Similar to this other question about Scala, I'm interested in knowing whether F# is used to any measurable degree in financial circles. Have there been any successful shops using it, any research on ...
18
votes
8answers
3k views

What kind of basic framework or application do you use to run your trading algorithms?

I heard about MetaTrader from http://www.metaquotes.net. Is there any other framework or program available? Do you use different software for backtracking and running your trading algorithms? Thank ...
15
votes
7answers
12k views

Is the Interactive Brokers API suitable for hft?

By hft here I mean anything with holding period less than 5-10mins... Any empirical/anecdotal evidence of using it successfully on even higher frequencies?
13
votes
5answers
3k views

What C++ math libraries are typically used by quants?

Before you mark question as off-topic, please read it - it is, actually, quant-related. Basically, I'm working on an app that spits out a lot of C++ math. When it comes to simple things like ...
13
votes
4answers
4k views

Implementing data-structures in a Limit order book

I'm working on implementing a 'LOB' and I'm being very careful about choosing my data-structures so as to maximize performance. Using F# as an example, I need to consider a List versus Array for ...
11
votes
5answers
526 views

What benefits are there to employing agile software development methodologies for quants?

Perusing the other SE network sites, particularly Programmers, I often find vigorous support for various agile software development methodologies, particularly the various values known as Extreme ...
11
votes
3answers
3k views

Is there an all Java options-pricing library (preferably open source) besides jquantlib?

I am looking for an all-java implementation of black scholes, preferably open source. I found jquantlib and quantlib (C++). Any other recommendations? The jquantlib site seems to be down. I'd prefer ...
10
votes
2answers
696 views

Reference request: Survey article on GPU in Finance

I would like to get and idea of how people use GPUs in finance. I can find some specific papers or books on the subject. GPUs in binomial model, finite difference, monte carlo,... But I couldn't ...
10
votes
2answers
2k views

Drawbacks & Caveats of using (N)Esper for ESP/CEP in trading systems?

Esper and its .NET port NEsper are components that enable Complex Event Processing (CEP) and Event Stream Processing (ESP) engines. They are especially suitable for trading applications. They can, ...
9
votes
7answers
7k views

Is there any thing out there as a substitute for KDB?

thanks a lot for your discussions on the original post. following your suggestions, let me re-phrase a bit : kdb is known for its efficiency, and such efficiency comes at a terrible price. However, ...
9
votes
3answers
1k views

What tools are used to numerically solve differential equations in Quantitative Finance?

There are a lot of Quantitative Finance models (e.g. Black-Scholes) which are formulated in terms of partial differential equations. What is a standard approach in Quantitative Finance to solve these ...
8
votes
5answers
1k views

Is Visual Basic a fast enough for millisecond orders

I have an API that for an order routing platform that is in visual basic. The maximum frequency or orders to exchanges will be milliseconds, where the underlying systems are expected to be able to ...
8
votes
3answers
572 views

Reference on Markov chain Monte Carlo method for option pricing?

I have to implement option pricing in c++ using Markov chain Monte Carlo. Is there some paper which describes this in detail so that I can learn from there and implement?
8
votes
1answer
692 views

How to compute modified-CVaR in the PerformanceAnalytics package?

My objective is to measure the modified-CVAR for a portfolio given its weights and matrix of security returns. Luckily the wonderful package PerformanceAnalytics has an ES() function that does just ...
8
votes
1answer
2k views

Can the J language be used as an effective alternative to Q/Kdb+?

I hear a lot about Q/kdb+. I've never had the opportunity to use it for anything real but have played with it using their trial license and found it intriguing (if not somewhat mind warping). I've ...
8
votes
3answers
6k views

Trading C++ Libraries

Are there any free c++ libraries that would have some of the functions that would be used in developing a trading strategy. For instance, calculating drawdown, Volatility Forecasting, MAE, MFE....etc. ...
8
votes
1answer
596 views

What tools and libraries may be used to model limit/stop systematic trading?

A lot of the tools/libraries out there seem to focus on close to close time series analysis. This is all fine but I typically do not trade close to close, I will use limit or stop orders that may or ...
7
votes
4answers
1k views

Statistical learning libraries

Is there a general (or specialised) FREE library to solve learning problems such that found in the book "The Elements of statistical Learning". As it is often time consuming to write all the ...
7
votes
4answers
1k views

Library to solve optimization problems

I'm working with C# and I start being bored writing optimization algorithm. Do you know of any free library containing this sort of algorithms. In particular I'm cutrently working with Semidefit ...
7
votes
4answers
1k views

What approaches are there to order handling in automated trading?

I am currently developing a commercial automated trading program in which users can write their own proprietary code and develop strategies, like in NinjaTrader, MetaTrader etc. Right now I am working ...
7
votes
4answers
4k views

How to create charts in WPF finance applications?

How to create charts for market data in WPF? Are there any charting controls provided by microsoft or you need to use only third party controls? Which are the popular third party charting controls ...
7
votes
3answers
1k views

What programming language is best suited for implementing DeMark?

Jason Perl's book DeMark Indicators details rules for calculating signals developed by Thomas DeMark. These rules are not complex in themselves, but there is no dirth of ...
7
votes
4answers
941 views

What commercial financial libraries are available to outsource implementation risk?

During our daily jobs as quants, we tend to be willing to develop all the quantitative libraries ourselves. While I know that we need to develop specific algorithms which are the foundations of our ...
7
votes
3answers
340 views

What quant-related functionalities is R lacking compared to commercial software like Mathematica and Matlab?

R that originated as a purely statistical tool has meanwhile blossomed into a comprehensive workbench for different tasks. I am familiar with Mathematica and don't like how it forces a license on ...
7
votes
1answer
3k views

What is the best live options data API?

What is the best/cheapest service to get real-time (as real-time as you can get) on stock options? I'm looking for the fastest update on the ENTIRE market, with a few stocks prioritized, so I need ...
6
votes
2answers
2k views

Fastest news feed APIs targeting high frequency trading?

The Dow Jones elementized news feed API seems to stand out but are there any other machine readable news feeds out there that provide very low latencies that high frequency operations may peruse? I am ...
6
votes
4answers
1k views

Fastest solver possible for portfolio optimization

I am using quadprog in MATLAB for very simple mean-variance optimization, with less than 100 assets. It is quite fast but if I run a strategy with daily ...
6
votes
4answers
2k views

Library of basic indicators

I am looking to start developing a trend following strategy and have been looking to do something in either C# or Java and wondered if there was a library or framework out there that would make ...
6
votes
2answers
349 views

How do Return.portfolio and Return.rebalancing work in Performance Analytics in R?

I have a question about the function Return.portfolio/Return.rebalancing from the Performance Analytics package in R. I take ...
6
votes
1answer
178 views

What is a good Computer Algebra System for financial engineering?

I would like to know if there exists some computer algebra systems adapted to calculate pricing based on particular models, i.e. pricing YoY Inflation Swap under Jarrow Yildirim Model. I know that ...
6
votes
1answer
378 views

NASDAQ TotalView ITCH order reference number number characteristics

I am building a custom hash implementation for storing NASDAQ ITCH order messages. Obviously this is keyed on the order reference number and I am wondering if these numbers are sequential, random or ...
5
votes
2answers
2k views

using quantlib function in my c++ program

I want to include the QuantLib function for option greeks calculations in my own C++ code. My question is: can I just include those functions? I don't want to use the rest of their stuff. I obviously ...
5
votes
4answers
617 views

Are there any brokerages which use URL-based web APIs?

We already have a list of brokerages that provide apis. What about brokerages that provide web apis? For example, Collective2 has a url-based web api for entering trades. Are there any brokerages ...
5
votes
5answers
2k views

Technology stack used in Bloomberg

I figure this perhaps the best place to ask this. What technology stack is used in Bloomberg? I'm C++ developer, and I definitely prefer C++ to C, so I don't want to touch C unless it's strictly ...
5
votes
5answers
1k views

Is there a charting API which allows to replicate Bloomberg chart tool features?

I believe that most of us will agree that being able to compute values is only part of our job, as we would also like to be able to display them nicely in order to better understand or help ...
5
votes
3answers
2k views

What API methods are there to determine a company's market cap?

I'm wondering what API methods there are to determine a company's market cap, i.e. (number of shares issued) * (price per share). I know IQfeed and perhaps Yahoo will do this - does anyone know of ...
5
votes
2answers
506 views

Using QuickFIX in a C project

QuickFIX is a well-known open-source implementation of the FIX protocol. This library has been ported to numerous languages, though for the moment I am concentrating the on C/C++ implementation. ...
5
votes
1answer
843 views

Automated 10-K XBRL data grab using the SEC file structure

I would like to write a program that takes as input a list of CIK/year/quarter entries. The program should iterate through the list and, for each entry, grab XBRL financial data from the SEC website ...
5
votes
3answers
426 views

Means of inferring trading algorithms from competition trade data

I'm analyzing trades from several participants in a trading competition, and I was wondering - are there known mechanisms for analysis and inference of the logic in a set of trades done by one ...
5
votes
1answer
295 views

QuantLib: Black / BSM processes and pricing via volatility surface. Different results?

I start this question with a couple of C++ functions that will be useful to show some results. So start your Visual Studio C++ Express or Ceemple or whatever you want and copy & paste this: ...
5
votes
1answer
818 views

Robust Bayesian portfolio optimization in matlab?

I am working through this paper. I want to implement the robust Bayesian optimization (see pages 6 onward) in Matlab using fmincon. Here is a brief overview of my problem: Let $\alpha$ be the ...
4
votes
3answers
340 views

How do you handle Calendars in a .NET quant system?

I have developed an analytic platform in .NET, but I now have to tackle the problem of data cleaning which first starts by finding holes in time series, before actually looking to find inconsistent ...
4
votes
3answers
2k views

VaR implementation using quantlib?

I am thinking of writing a VaR framework for my existing system, using quantlib to do the bulk of the calculations. Despite several searches, I have not as yet come across a quantlib VaR ...
4
votes
1answer
347 views

Is there any open-source library, implementing “exchange” to be used for algorithms running on the same computer?

Question: Is there any open-source project/library, which can act as a "local exchange" for agents (algorithms), running on the same computer? Clarification: by "local exchange" I mean, that the ...
4
votes
2answers
442 views

Looking for C# library that provides/contains performance analytics

I am looking for a C# .Net library that provides trade performance analytics similar to R-PerformanceAnalytics. Basic return statistics, draw-downs, risk-adjusted returns, risk (variations), ...
4
votes
3answers
139 views

What is an efficient method to find implied volatility?

I have a code that finds the implied volatility using the Newton-Raphson method. I set the number of trial to 1000 but sometimes it fails to converge and doesn't find the result. Is there a better ...
4
votes
1answer
838 views

What is the best solution to use QuantLib within Excel?

Excel is likely the most widespread instrument across all not-only-quants desks; in addition, we have to keep in mind that Bloomberg and Reuters allow to easily import real time data in Excel, and ...