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
2answers
29 views

Obtaining intra-day values of the EUR-USD exchange

I need for my project the values of the EUR-USD exchange (both intra-day and ticker). I've been playing around with the Yahoo's YQL API and at this moment I can obtain the current value of the ...
0
votes
2answers
64 views

What is the current lowest possible latency for TCP communication?

I have two machines over a 10Gb network that need to communicate with each other through a TCP connection. In terms of technology, what is the current lowest latency possible for this to happen? What ...
-1
votes
0answers
35 views

API for paper trading service

I have recently created an HFT algorithm and before attaching it to a real trading service I would like to test with paper money. The API for the paper trading would need to be compatible with C++ and ...
-1
votes
0answers
28 views

RESTful trading API

Looking for providers or software layers of a RESTful trading api. I would like to read option chain data (amongst other things), do some calculations server side, and send orders back to the broker ...
2
votes
0answers
53 views

Calibration of Heston version of CIR

I'd like to calibrate a variant of Heston model for interest rates which is describe by this couple of SDE \begin{aligned}dr_t&=a(b-r_t)+\sqrt{r_t}\sigma_t dW_t^1 \\ ...
4
votes
3answers
102 views

Technical analysis - Calculating Aroon Indicator Serie

I'm trying to build a class to create Aroon series. But it seems I don't understand the steps well. I'm not sure about what purpose I have to use the period parameter. Here is my first attempt: ...
0
votes
0answers
67 views

Java Implied Volatility Solving with Newtons Method

Hi I am currently working on implementing my newtons method to guess implied volatility and I have the same code as you do. However, my vol result goes to infinity and I have not figured out why my ...
1
vote
1answer
158 views

Downloading Data from Interactive Brokers using IbPy

I am trying to download data from Interactive Broker using the code below and I am able to create the connection with the Trader Work Station (I get a "True" after ...
1
vote
1answer
65 views

What is an appropriate algorithm to use for tax loss harvesting?

I've been reading into how Betterment and Wealthfront have architected their tax loss harvesting algorithms, but they stop short of providing any real examples. Essentially, they both reduce to: ...
1
vote
2answers
238 views

The future language of quant programming? [closed]

Im just about to begin the programming aspect of my education towards being a Quant. I know what languages are currently being used and how popular they are. However, I have several good friends ...
2
votes
3answers
149 views

Dou you have an example of implementing Engle-Granger 2-step cointegration?

Does anyone know where to find an example of implementing Engle-Granger 2-step cointegration? Python's ideal, but any language will do. I've skimmed and read many articles, but understand little ...
0
votes
1answer
97 views

Using multiple regression to determine coefficient that feed into another multiple regression problem

Ok so it is a bit of a complicated problem so I hope I explain this well. I currently have a multiple regression formula where I input 3 items and the output is expected growth. Each of these input ...
2
votes
1answer
71 views

Why annualized return and cumultive return aren't equal over 1-year period with Performance Analytics package in R?

I use Performance Analytics package in R to compare annualized and cumulative return of a portfolio. My expectation is that both should be equal over a period of 1-year but results tell me I'm wrong. ...
3
votes
1answer
123 views

Do you have a good application example of Approximate Dynamic Programming?

Have you ever tackled a finance problem with Approximate Dynamic Programming? I have only used dynamic programming for simple examples like a optimal extraction in mining. Do you have canonical ...
0
votes
0answers
47 views

How to get get weekly returns from daily data

Good day I would like to get weekly returns data from daily data , I want to use the Wednesday-to-Wednesday approach – the returns (rt) are computed from the Wednesday closing prices Pt , i.e., rt = ...
0
votes
0answers
57 views

Fund Allocation Logic

I am writing a program which automatically calculates the trade allocations. Imagine we have a 3 funds, Fund A, B and C. They current asset allocations (so-far-percentages) are 10%, 20%, 70% ...
0
votes
1answer
53 views

Q regarding amortization of 500,000 loans

I am brand new to this forum. I asked this question on the main StackOverflow site and it was suggested that I ask here. My task is to find a method to quickly calculate the monthly cash flow on ...
0
votes
1answer
125 views

Bloomberg equity option volatility data

Using the Bloomberg open API, I am trying to program a C++ script that is able to download option volatility data from Bloomberg. I currently do not have access to Bloomberg, but in the coming week I ...
0
votes
0answers
23 views

Does anybody know how to use jquantlib with eclipse?

I'm currently beginning to work on my masters project in QF and I wanted to use jquantlib for my work. I've searched the internet quite a bit but couldn't find good understandable info on how to work ...
3
votes
1answer
142 views

Do you have a validation set for Libor Market Model implementation?

I'm trying to calibrate a Libor Market Model (LMM) in Matlab with my user-defined function, not their package. I already fitted the market volatilities using SABR but failed to simulate the ...
1
vote
1answer
173 views

API for after and pre market data

Is there an API or APIs similar to the Yahoo! or Quandl APIs, that give the same access to pre and after market data? I know I can scrape the Nasdaq or Yahoo! Finance sites to get a pre/after market ...
1
vote
1answer
67 views

Median value for geometric brownian motion simulation

I'm trying to simulate stock prices using GBM. I am using the following formula, and MATLAB function, to determine the stock prices: $\nu = \mu - \frac{\sigma^{2}}{2}$; $S = S0*\text{[ones(1,nsims); ...
1
vote
1answer
296 views

examples of c++ code with application to quant finance [closed]

I've some intermediate knowledge in C++. However, the knowledge is more of a theoretical nature and not applied to quant finance problems. I'm looking for good sources, code examples books blogs ...
1
vote
2answers
261 views

What Matlab packages to I need as a Risk Analyst?

What toolbox are more suitable for a risk analyst. I found this: Optimization toolbox Global optimization toolbox Econometrics toolbox Financial toolbox Statistics toolbox And also I have as a ...
0
votes
0answers
33 views

Web Based Market Profile Code

I am looking for someone who knows of or has access to web based charting code using Market Profile. Does this exist out there? I would prefer the source code so I can make changes to it. Any ...
2
votes
2answers
140 views

C# - Using Black Scholes Newton returns NaN occasionally

First caveat: I'm a programmer doing this for a client, and my knowledge of options probably has holes in it. So be a little forgiving here. =) The Issue: When I run Black Scholes Newton against ...
4
votes
3answers
319 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 ...
6
votes
1answer
209 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 ...
0
votes
0answers
104 views

Book chart plotting library identification

can you help me identify how those charts are constructed? To your knowledge, is it generated from Python, R, Java, C++? What packages can you identify? I've tried the ggplot2 library in R and I have ...
0
votes
5answers
386 views

API-based equity screeners?

I know there are APIs from different brokers that allows you to trade and also obtain information about specific companies, but I wonder if there are equity/asset screeners that are API-based and can ...
6
votes
2answers
684 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 ...
3
votes
3answers
157 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
142 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: ...
0
votes
1answer
98 views

Choosing broker to run with Zipline

Which brokers offer Python integration/API? Which brokers offer R integration? I'm starting on trading, and I want to learn about algorithm trading. So I would like to know what brokers offers these ...
0
votes
3answers
2k views

Which library shall I use for time series analysis in Java?

I'm looking for a library to do some time series analysis in Java but I can't find anything suitable. I've found plenty of libraries such as Math3 of JSAT but there's much I can you for my problem. ...
0
votes
1answer
59 views

Contribute to Finance related projects [closed]

I am currently a student and in the future would like to work as a software developer for a financial institution such as Bloomberg, Factset etc. I was looking to contribute to some open source or ...
2
votes
2answers
390 views

How to calculate the volatility matrix with multiple stocks

calculating the volatility for a single stock is straightforward. However, I'm not sure whether my approach for calculating the volatility matrix for multiple stocks is correct: I assume a log-normal ...
0
votes
0answers
69 views

How to display stock prediction results?

I'm not sure if this is a question for "Quantitative Finance" or "Personal Finance & Money" so forgive me if this one is irrelevant for this site. The Situation So I wrote a program (in vb.net ...
5
votes
1answer
457 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: ...
0
votes
1answer
320 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 ...
2
votes
2answers
270 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
2answers
314 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 ...
1
vote
1answer
157 views

Plot Evolution of portfolio weights over time in R [closed]

Is there any function for plotting the evolution of portfolio weights over time in r?. I have a matrix of portfolio weights from an equal weighting strategy at rebalancing times and want to plot ...
1
vote
1answer
1k 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
4answers
1k 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 ...
0
votes
0answers
31 views

Are there any Spanish language resources for getting quotes?

In English, there is MetaTrader from http://www.metaquotes.net. Is there any similar platform or program available in Spanish for backtracking and running your trading algorithms? How about ...
1
vote
3answers
104 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 ...
0
votes
1answer
35 views

GNP/GDP and modelling [closed]

Is GNP a continuous, static or a dynamic model ? What about GDP ? What I do know is that it has yearly discrete values. However, when it is modeled, it becomes a continuous graph. So what exactly is ...
2
votes
0answers
105 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.
3
votes
2answers
323 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?