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)

3
votes
4answers
554 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 ...
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 ...
3
votes
2answers
747 views

Covariance for arbitrarily large portfolios

I am implementing a method in Java to calculate the variance, covariance, and value at risk for a portfolio, which should be flexible for use with any number of assets in a portfolio. I am struggling ...
3
votes
2answers
686 views

Free and tested optimization, statistical and visualization packages for C#

I am about to implement a variation of the LIBOR-Market-Model (complete with Least-Square-Montecarlo, calibration, pricing etc.) and decided to implement it in C#. The implementation will involve ...
3
votes
1answer
2k views

Mersenne twister random number generator in Java for Monte Carlo Sim.

I am using the Mersenne twister random number generator in Java for a Monte Carlo Simulation. I need a uniform distribution of values between -1 and 1. My code is below (I am importing ...
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
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
812 views

open-source implementation of orderbook from FAST?

I'm looking for c/c++ implementation of OrderBook. I need implementation to reconstruct market data from FAST. I don't need to do "matching" because it already did by exchange, I only need 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++ ...
3
votes
3answers
248 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, ...
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 ...
3
votes
3answers
121 views

Convergence of GBM mean after simulation?

As a follow up of my previous question, I am now simulating the GBM step by step for $n$ steps. I am using the following implementation for the simulation: $$S_{t+1} = S_t \exp \left[ ...
3
votes
1answer
101 views

What is wrong in this GBM simulation?

I am trying to generate a few samples of GBM using the following very simple MATLAB code: ...
3
votes
1answer
238 views

How to manage evaluation date changes in QuantLib while using ImpliedTermStructure Class

I will not attach the whole code 'cause it would be just a huge waste of space and it would be not useful for this question's purpose. What I am going to attach here is a snippet code and its output, ...
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 ...
3
votes
1answer
347 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 ...
3
votes
2answers
292 views

Trend estimation techniques

What is the best way (most common) to discover if a stock is trending or not? (Despite drawing a line). A hurst exponent? A linear regression maybe?
3
votes
3answers
772 views

Library for interactive financial charts

For my recent project I am looking to build a software capable of visualizing financial charts in a dynamically and interactive matter. The workflow is as follows: I gather data from my data ...
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 ...
2
votes
3answers
657 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.
2
votes
1answer
409 views

How to sum interest rate curves in QuantLib

C++ code taken from Bonds.cpp and slightly amended: ...
2
votes
1answer
225 views

QuantLib error with qlPiecewiseYieldCurveData() on qlPiecewiseYieldCurve() with ZeroYield and ForwardRate

I'm using QuantLibXL to build a discount curve, a zero yield curve and a forward curve of the EURIBOR rate (QuantLibXL is downloadable here). I've built an object of class ...
2
votes
2answers
947 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 ...
2
votes
2answers
98 views

IP API Active X for Excel refresh rate

I have been working on the EXCEL DDE sample worksheet and works fine and now I would to upgrade to ActiveX instead of DDE as I heard it is more robust but I found the refresh rate of ActiveX is even ...
2
votes
1answer
2k views

Duration of a floating rate note

I have the following C# code for calculating the modified duration of fixed coupon bonds: ...
2
votes
1answer
329 views

How to simulate stock prices with stochastic time change subordinated arithmetic Brownian Motion?

the idea is to simulate price returns thus to be normally distributed i 'am trying to use subordinated arithmetic brownian motion subordinated to time activity (volume) stock prices are following GBM ...
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; ...
2
votes
1answer
3k 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 ...
2
votes
1answer
234 views

What features does q /KDB provide for HFT use?

It appears q/KDB is being using for Time series analysis for HFT. What are some of the advantages of using ...
2
votes
1answer
487 views

IB API quotes and speed

The title says it all. I trade futures options exclusively and wanted to see if anyone had insight into the quote speedsrobustness coming into the API. I'm using the Excel DDE right now just building ...
2
votes
2answers
354 views

What Forex Services support the ForexConnect API?

I need API access to get ForEx tickers and order books for currency pairs. From what I can tell there is a .Net API called ForexConnect which I can use to get this data. Now where can I get this data ...
2
votes
3answers
2k views

What is the difference between the Interactive Brokers demo account and a personal paper trader account?

I'm interested in testing my trading strategy using the Interactive Brokers API for Trader Workstation. A demo account is provided to play with TWS for free, but if I fund a real account I will be ...
2
votes
2answers
756 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 ...
2
votes
1answer
353 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 ...
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 ...
2
votes
3answers
110 views

What is the Most Efficient Way to Calculate the Internal Rate of Return IRR?

I have built a program that prices financial assets and it does this in part by calculating the IRR. The problem is that it does not run as quickly as I would like it to. I currently use the ...
2
votes
0answers
56 views

Which are the popular free/open-source charting controls?

Recently i've tried SciChart and VisiBlox - beautiful charting tools. Is there any free or open-source tools for visualizing charts on C#? Thank you for answers.
2
votes
0answers
175 views

Which method is implemented by Excel's YEARFRAC for ACT/ACT?

I know the algorithm used by Excel to calculate the YEARFRAC(startDate, endDate, basis) for basis=1. Excel calls the method "act/act". A Java re-implentation of Excel's algorithm can be found at ...
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 ...
1
vote
2answers
224 views

Is node.js being used in systematic trading software?

I have a project where I would like to track some tick data and create some indicators to follow it. I am thinking of using Node.js for this project, but I would like to know from those in industry if ...
1
vote
2answers
201 views

For a interdays trading backtest system, should I put day open, close, high, low, volume separately into array?

I think there are two possible ways: 1. day open, close, high, low, volume separately into array, then I have 5 arrays to work with my calculation 2. Put all of these into one array or linklist to do ...
1
vote
1answer
404 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?
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 ...
1
vote
1answer
185 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: ...
1
vote
1answer
227 views

robust open source Kalman filter library in C++

I would like to know if anyone has experience with a good open source kalman filter implementation in C++ that I could use. I require an implementation that supports computation of likelihood similar ...
1
vote
3answers
64 views

Obtaining Expense Ratio Data

I have a list of tickers (~11,500) in a .txt/.csv file and accompanying fund data from yahoo finance. I'm wondering if there is a reasonably easy/accessible way to use this list to obtain expense ...
1
vote
4answers
2k views

C# Broker API for FX Trading

I am looking for a broker who provides a free trading API for FX. The goal is to develop at-home algorithms in C# (possibly Qt) to run on a fake portfolio, and then later on real money with ...
1
vote
1answer
665 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 ...
1
vote
2answers
1k views

Black Scholes and Monte Carlo implementations in Java [duplicate]

Possible Duplicate: Is there an all Java options-pricing library (preferably open source) besides jquantlib? Can anyone recommend a library with an implementation of Black Scholes and Monte ...
1
vote
1answer
156 views

Excel to Java for Interactive brokers

I have a working excel workbook connected to Interactive brokers DDE API. I am struggling to upgrade to a more robust environment like Java. I tried to change it to ActiveX for Excel but the ...