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)

1
vote
1answer
33 views

Online courses or C++ books combined with Finance (alternatives to Duffy and Joshi)

I am trying to find a book for our study group that teaches the bare minimum C++ needed for financial applications. I am trying to teach it in a project based manner. In case, I don't settle on one ...
5
votes
1answer
82 views

Bloomberg & R: Accessing multiple securities with getBars() in R

I am attempting to access 1 minute trade data for 50 securities using Bloomberg API (rblpapi). Following is the code I got from the CRAN: ...
1
vote
0answers
112 views

Trouble verifying roll rate model

I found this paper on roll rate analysis via a google search. I would post a link, but every page is stamped with "CONFIDENTIAL" at the bottom (humorous since it is easily found). In a nut-shell, ...
3
votes
3answers
124 views

Real-time Tick Data API for the Italian Stock Market

Hello community. I am looking for a service that is able to provide real-time tick data (time&sales) for the contracts traded in the Italian Stock Market (Borsa Italiana). The service should ...
1
vote
1answer
43 views

Getting quote stream via fix-api 4.3

I'm new to FIX api,so far i did following (on QUICKFIX) logged on to quote-session subscribed to market data sent "single-message" quote-request for an instrument (EUR/USD for example) ...
7
votes
2answers
94 views

Are there any integrated framework that I can back-test and paper/live trading in one place?

I'm trying to start working on a fully automated algorithmic trading system, and I'm a little struggling with the framework to use. The requirements I have in my mind are: Needs to support ...
1
vote
0answers
14 views

How to enter to economics/finance sector [closed]

Although my question is a general question, I would appreciate your suggestions or help me to find a proper "stack exchange" in order to ask my question: I am a Ph.D student in (Pure)Mathematics and ...
4
votes
1answer
74 views

What is the best / most used / recommended C++ non-blocking networking library for low-latency / real-time development?

I'm coming from Java and there we use the EPoll selector implementation that comes with the JDK for non-blocking / asynchronous networking TCP and UDP development. Therefore you don't have to make ...
0
votes
0answers
18 views

DOL (Department of labour) API does not showing most recent results when requested instead shows unauthorized

I have recently been experimenting with backtesting swing trading FX strategies using quandl economic data and now that the time to deploy these models has arrived I have signed up for a developer ...
0
votes
0answers
48 views

backtest asset allocation strategies

I've searched the site but haven't found an easy way to backtest my personal portfolio allocations. Suppose I want to know the total return for the following portfolio from Jan 1, 2009 to Dec 31, ...
3
votes
2answers
37 views

Dealing with a constraint which is the square root of a quadratic form

I'm trying to maximize my portfolio, but don't know how to deal with the constraint which is on the form max $2u^Tx-x^T \Sigma x$ Subject to $e^Tx = 1$ $u^Tx - m (x^T \Sigma x)^{1/2} >= c $ ...
0
votes
2answers
47 views

Java platform/lib widely use in industry

I am currently switching from Java dev to quant and for my self-study I want to code a few auto-trading algorithms to get my hands on the subject. Are there any must know platforms/libs that I should ...
1
vote
1answer
61 views

Strategies to merge bid, offer and trade price time series into a single price time series?

I'm doing intraday analysis on low volume stocks. There are just a few trades every day, but a whole host of bids and offers. In order to reduce the sparsity of the time series data I'd like to ...
0
votes
0answers
69 views

Problems calculating RSI

For the last few days I've been trying to calculate an RSI that matches a reliable source. Yahoo finance, E-trade, and TDA all give identical values, which I am unable to replicate. I have tried ...
3
votes
0answers
93 views

What is the best open source automated trading platform or options?

I would like a custom C++ Automated Trading Platform for Futures like Multicharts, or similar automated trading platform that I can put on my servers so its secure and fast. I have found this ...
2
votes
1answer
74 views

Are there any opensource C# libraries for calculating bond duration and other FI Analytics?

I'm doing some Fixed Income analytics work and wanted to know if there where any opensource C# libraries that I could use in order to avoid writing functions for generic calculations like YTM and ...
0
votes
1answer
61 views

What is the formula that determines when VIX futures expire?

Or a source that will allow me to just get the list of dates into a program, I'm trying to do this in python but I want it to be able to figure out the next expiration automatically, or something like ...
1
vote
0answers
99 views

Historical volatility on bloomberg API

Is there a way to obtain the historical volatility of a stock from the bloomberg API? I would be looking for the data in the HVT table. Actually 3-months historical volatility from now would be ...
0
votes
0answers
20 views

How to get currency denomination of security from yahoo finance API

I'm trying to write a portfolio program and it would be nice if it could auto detect what the currency denomination of the ticker is without needing user input.
3
votes
0answers
71 views

Downloading IB futures data and then making a datapump to another program

I never have programmed before in my life but I wouldn't mind learning if I knew what i needed to do in order to solve my problem. I use neuroshell for day trading and use it extensively for trading ...
0
votes
0answers
66 views

How is a second-sensitive MACD calculated?

I am trying to get the specifics on the calculations of a MACD line that is calculated every second, as can be seen by using Bloomberg or Interactive Brokers or something of the like. I am assuming ...
2
votes
1answer
165 views

How to download efficiently intraday data with Bloomberg API?

I'm downloading intraday bar data using Bloomberg API and C#. I have adapted the official Bloomberg c# "IntradayBarExample” to suit my needs. However downloads are really slow, I found this post ...
1
vote
0answers
57 views

Looking for most current Financial API that is fast and accurate for NYSE NASDAQ AMEX OTC and PINKs

Looking to build a real time data feed, stock monitor window. Pretty much the same as equityfeed.com market viewer window, just with a few addedfeatures and or different filter columns with more up ...
1
vote
2answers
84 views

Normal Inverse Gaussian distribution - any consensus on an accurate quantile function?

I am making use of the Normal Inverse Gaussian distribution in my work to model underlying interest rate implied volatility risk drivers. What is particularly nice about this distribution for my ...
1
vote
1answer
241 views

How to answer this interview programming question about drawdowns?

I saw this question as an interview, and to be honest, I have no idea what it's even asking for: Write a function (in R or Python) that finds the stock drawdown which will trigger a rebalance, ...
0
votes
0answers
7 views

Is there a free Source for currency forward rates into Excel? [duplicate]

Is there a free (or at least very cheap) service/api out there I might be able use to get yesterday's closing currency forward rates (and spot) into excel/csv without having to copy paste values from ...
0
votes
0answers
34 views

BLS v2 API took 20+ minutes to publish data where is immediate data available?

First, I should state that I built a Java program that uses HTTP Components to keep in sync with server time for my broker. Once 7:29:59 comes around the program ...
1
vote
1answer
82 views

QuantLib: New Instrument derived from VanillaOption + PricingEngine that must work for both VanillaOption and the derived class

The derived class is a Vanilla Option on a Future and I need to specify the expiry of the underlying future which is in general different (later) than the expiry of the Vanilla Option. I have ...
0
votes
0answers
59 views

Real Time/Historical weather data

I am looking to incorporate weather data into my algorithmic models. What is a good source to find historical + real time weather data by zipcode or region? Any help will be appreciated! Preferably an ...
-1
votes
1answer
56 views

Finding Discount Bond Matrix in LMM Model C++

I am working on a 1 Factor Libor Market Model (LMM) in C++ and I working my implementation of the formula to find my Discount Bond matrix via the following formula: In the case of my model alpha is ...
1
vote
1answer
97 views

How to price touch options using quantlib?

I am new to quantlib and I want use it to to price a touch option (single/double). I searched on google for example code but I could not find anything. Hence, I am ...
1
vote
0answers
156 views

How to add buy/sell market on a long/short Bollinger Bands graph in python?

I am using python, pandas, matplotlib to do the following: I have plotted some stock data ...
2
votes
2answers
80 views

How to perform portfolio optimization with user-defined expected return and variances using R?

I found some functions for Markowitz mean variance portfolio optimization in R such as portfolio.optim in tseries package. ...
2
votes
2answers
85 views

Is there an implementation of VAR-EGARCH model in R or Stata?

I am writing my undergrad honor thesis and want to run a multivariable VAR-EGARCH model. Is there any package in R or formulas in Stata 14 that allows me to implement directly? If not, could you ...
3
votes
2answers
104 views

What programming skills are needed in quantitative finance? [closed]

I’m considering a career in finance when I complete my PhD in Mathematics in 2016. My only major programming experience was a C++ course during my MPhys in the 2007-8 academic year, although since ...
4
votes
2answers
149 views

Implementation of Ledoit Wolf shrinkage estimator within R package tawny

I want to implement the shrinkage intensity given by Ledoit and Wolf, see here page 13. They define $y_{it}$ with $1\le i\le N$ and $1\le t\le t$ be the return on stock $i$ at time $t$. Moreover, ...
3
votes
1answer
92 views

QuantLib C++: Monte Carlo Engine with SequenceStatistics

I'm trying to implement a Monte Carlo PricingEngine that stores multidimensional statistics. I have done the following: Defined a Monte Carlo Trait that among other things stores as the ...
1
vote
0answers
50 views

How to handle missing data in time series in R?

I have 5 years stock closing price of a company with some missing values in between (I having 1443 data points). When I create timeseries object in R with frequency 365 it creates 1834 data points, R ...
1
vote
1answer
46 views

What is wrong in my non-linear estimation sample code?

I am trying to reproduce the code and plot you see here on pages 8,9 and 10 which was coded in MATLAB, but I'd like to convert it to R code. I believe I converted the MATLAB code below to R syntax ...
1
vote
0answers
71 views

What are the best online platforms to hire a quant? [closed]

I have already written the base of a trading algorithm, however there are some optimisations that I would like to add that might be best programmed by more experienced quantitative programmers. This ...
3
votes
1answer
94 views

QuantLib: Is the StochasticProcess class adapt for a HJM type of modelling?

I would like to use the following model in QuantLib: $\frac{dF(t,T)}{F(t,T)} = \sigma_se^{-\beta(T-t)}dW_{t}^{1} + \sigma_L\left(1-e^{-\beta(T-t)}\right)dW_{t}^{2}$ This is a reformulation of the ...
-1
votes
1answer
158 views

Is the code of my binary call option pricer (using explicit finite difference, backward scheme) correct? [closed]

I am using explicit finite difference (backward scheme) to price a binary call option. Here is my MATLAB code: ...
4
votes
2answers
245 views

How to trade a Ratio?

I came across a ratio plotting of Corn And Soybeans contracts, notice it's in a historical low, an intuitive question came to my mind, how should I trade this ratio (or relationship)? It's unlike flat ...
2
votes
0answers
40 views

Rollapply: what does by.column do? [closed]

I have read the description of by.column for rollapply in the manual but i couldn't understand how to use it. see below: x=matrix(1:60,nrow=10) ...
1
vote
0answers
120 views

How to extract sentiment from Yahoo finance message board?

Does anyone know if it is possible to write a software to pull Yahoo message board sentiment for a specific stock? Any API from Yahoo or anyone has done it before?
1
vote
0answers
31 views

Jacobian for Newton method for American options by front fixing

In this paper Penalty and front-fixing methods for the numerical solution of American option problems a front fixing method based on Newton is described for an American put option is described. I am ...
2
votes
1answer
84 views

Why is my Euler discretization error increasing with number of steps?

I'm trying to see how the Euler discretization error behaves with respect to the number of steps. To do this I'm simulating a geometric brownian motion and comparing it with it's 'exact' solution. ...
1
vote
0answers
61 views

QuantLib C++: Friendship dilemma between derived class from PiecewiseYieldCurve and Bootstrap class

I derived a class template, OISCurve<Traits,Interpolator,Bootstrap>, from ...
0
votes
0answers
23 views

free and reliable stock ticker API [duplicate]

I am looking for an API that will give me (somewhat real time) stock quotes for free for a website. I have heard about using yahoo finance URL download but (to the best of my knowledge) yahoo could ...
2
votes
1answer
122 views

Get institutional holdings of stocks programmatically

First of, I'm not sure if this is the right place for this question, but a search on Google for another programmatically related question regarding stocks led me here, so here it goes. Is there any ...