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)

2
votes
2answers
166 views

How do you handle order tracking (without unique Lot ID's)

Hypothetical Trade: I buy 10,000 shares of ASTC using a broker API. The order is filled in 4 similar lots; ...
3
votes
3answers
239 views

How to most optimally perform currency conversions when backtesting on portfolio level?

I am currently expanding my own strategy profiling and testing platform which partly consists of a portfolio backtesting module. The backtest engine processes tick based data (quotes for currencies, ...
-2
votes
1answer
283 views

How to look for fractals/harmonics patterns in time series?

I want to build trading systems based on two things: 1)Fractal Theory 2)Harmonics Pattern I have read the book : The Misbehavior of Markets: A Fractal View of Financial Turbulence By Mandelbrot ...
-4
votes
1answer
110 views

Is there an API to perform request about stocks and financial derivatives? [closed]

Is there an API to make a request such as: all the companies which thier P/E ratio is greater than 50 ? I know I can crawl google finance and have it locally on my ...
1
vote
0answers
93 views

RCaller & RQuantlib error in java

I am receiving the following error: ...
1
vote
1answer
182 views

Need to match my bond price calculation to that of Bloomberg, currently failing hard

I have a fixed-coupon bond with the following characteristics: ...
2
votes
2answers
720 views

How can you convert the CUSIP of a bond issue to the CUSIP of the company's stock/

As part of a research project I ran a query on the Mergent FISD database using the WRDS website. The output included the CUSIPs of numerous bond issues (>10000). I am using this data to run event ...
1
vote
1answer
387 views

LIBOR Rates available in CSV, XML etc

Is there a website that offers current LIBOR rates for all tenors for free in machine readable formats?
3
votes
4answers
1k views

IB TWS & API, without IB account?

I'll be starting a MFE grad program in Fall, and some of the classes have a lab that use the IB TWS & API. I'd like to play around with it for fun this summer. Unfortunately, I don't have an IB ...
3
votes
1answer
136 views

Are there any good benchmarks for performance of vanilla option pricing code?

I've seen parsec (http://parsec.cs.princeton.edu/index.htm), which has a PDE pricing component, but the distribution is enormous and I haven't bothered to try to download it for review. I'm ...
2
votes
1answer
345 views

How does the CME set margin requirements on commodity Futures

I am trying to model margin requirements on various commodity futures, however it doesn't seem that the CME has released the formula they use to set these performance bonds. I am sure that they use ...
3
votes
2answers
1k views

How to implement Maximum Diversification in R?

I am trying to code up the optimization problem for Max Diversification Portfolios. The main problem I am having is properly translating the objective function in to code and port it in to the ...
1
vote
0answers
505 views

portfolio optimization with a loop

I am attempting to minimize the variance of a 3 stock portfolio using optimization within a loop. What I have done is calculated the stock returns and cov matrix from dates 1980-01-01 to 1989-12-31 ...
0
votes
3answers
487 views

Why C is still in use especially in area of numerical optimization (instead of C++)? [closed]

Why C is still in use especially in area of numerical optimization (instead of C++) ? C and C++ aren't fully compatible so mayby you know some differances that make the difference ?
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 ...
3
votes
4answers
553 views

How much does a Grid Computing software cost?

So far, I have been performing computations either on my own computer, or using an in-house scheduler that basically chooses a one of the employees' available workstations to run tasks in the ...
5
votes
1answer
761 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 ...
3
votes
4answers
1k views

What is the industry standard Quant Finance modeling library for F#

If it exists, has been agreed on, and F# programmers have used it extensively, I would like to know what is the industry standard Quant Finance library for F#. What typical finance scenario(s) have ...
6
votes
4answers
3k 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 ...
1
vote
1answer
66 views

How to attribute income that incurs a double liability in a P&L?

I'm a developer writing a system for a startup. Without giving away too much of the business model, here are the basics of how it works: The web site has two forms of "currency": tickets and ...
2
votes
3answers
1k views

Is MATLAB-generated code good enough for use in live trading?

I know that MATLAB has mechanisms for generating code, but I've never used them. Have you? If you have - is it good enough (=fast enough, I guess) to be used in live trading systems? Anything one ...
1
vote
3answers
629 views

Treasury Bond Yield Curves in R

Does anyone know if I can access interest rates series from the treasury using R? I tried yahoo! Finance and it doesn't seem to have this kind of information.
-1
votes
1answer
528 views

Is it possible to “steal” financial data on publicly traded companies off the internet? Legally, I mean, what is the truth about “data” as a property

What constitutes "stealing" when it comes to publicly posted financial data? I think there are three instances of this that we can individually vet: a.) you physically broke into a location or ...
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 ...
5
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 ...
5
votes
2answers
450 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. ...
4
votes
3answers
317 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 ...
1
vote
1answer
647 views

FIX Heartbeat message not sent

I am using FIX4.3 and QuickFIX/n v1.0.0 for its implementation. I came across a situation where i had subscribed for Market Data and was successfully receiving Snapshot message then suddenly all ...
0
votes
2answers
143 views

FpML class generation gives error

I am creating classes out of 5.1 FPML specification but I get following error. ...
0
votes
0answers
148 views

Looking for FpML best practices

We want start using FpML within our organisation; where message will be sent using FpML. What are best practices to do this ? If anyone who have used Tools as well as; i want to use FpML for ...
10
votes
2answers
678 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 ...
2
votes
0answers
92 views

Option symbol conversion [closed]

Maybe more of a programming question, Is there a Ruby gem to facilitate conversion of an option symbol notation from one form to another? For example, one source provides TZA1220J18 but an API for ...
4
votes
1answer
710 views

Risk-Parity Portfolio Optimization using Extreme Optimization in C#

I'm trying to create a risk-parity portfolio in C# using the Extreme Optimization routines. I'm mostly trying them out to see if I like them or not before I buy them (I'm a student so money is ...
7
votes
4answers
834 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 ...
2
votes
1answer
2k views

How do I model GARCH(1,1) volatility for historical indexes in Matlab?

I'm currently working with historical index data from Yahoo Finance and would like to plot the GARCH(1,1) volatility of these indexes. I'm working with the Datafeed and Finance Tollboxes in Matlab ...
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 ...
3
votes
2answers
2k views

GJR-GARCH Model In R

Any idea how to estimate GJR-GARCH models in R? Is there any particular library like fGarch that supports such models?
3
votes
1answer
344 views

Cross Bid and Ask prices for Forex trading

I am using ITCH protocol to get the Market Data information for Forex and trying to implement LOB on it and what i have noticed is that Bid and Ask prices are crossing very often. Should that be ...
4
votes
3answers
1k 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 ...
2
votes
2answers
931 views

Resequencing of MsgSeqNum in FIX 4.2

I am trying to achieve the following functionality using QuickFIX for FIX 4.2 Send a couple of orders and make sure they’re filled. Then disconnect. Change the incoming (from Broker) sequence number ...
5
votes
1answer
762 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 ...
2
votes
1answer
1k views

How to build an execution trading system with CQG API?

I am currently using CQG for spread trading and have a spread trading strategy in CQG chart. I am trying to automate my spread trading strategy in CQG, but CQG told me to look at CQG API samples to ...
3
votes
1answer
2k views

C++ training from scratch to quantitative trading? [closed]

I have been trading for decades, and I have a solid knowledge of technical analysis but also VB as professional programmer. I would like to start learning C++ from scratch, then specialised in C++ ...
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 ...
9
votes
7answers
5k 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, ...
5
votes
3answers
418 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 ...
6
votes
1answer
372 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 ...
7
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 ...
13
votes
5answers
2k 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 ...
8
votes
1answer
581 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 ...