# All Questions

0answers
34 views

### Testing my Simple Algorithms on Tradier [duplicate]

I was looking for a broker who provides Stock and Options trading API. The idea is to develop some straight algorithms in C# pr Python to run on my portfolio. Connected to Tradier. Simple API with ...
4answers
592 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 ...
1answer
69 views

### How to convert trasaction log to bid-ask ticks

I have data from exchange in transaction log format that indicating: price volume timestamp That element indicating that timestamp transaction was made on price of size volume. My question is how ...
0answers
76 views

### combining sharpe ratio with CAPM?

I have used sharpe ratio to build a portfolio, the trouble is some of the asset returns do not meet the CAPM threshold. Would it be reasonable for a portfolio application to not add any assets to the ...
0answers
32 views

### Binary options and European option is similar?

European options and binary (digital) options is similar? How apply the Black & Scholes formula on binary option?
1answer
125 views

### Portfolio risk decreased by increasing share of riskiest asset?

In Parker's The Economics of Entrepreneurship he explains how certain theoretical models predict seemingly bizzare things (e.g. people becoming more risk-averse resulting in them taking riskier jobs) ...
0answers
14 views

### Index Price Simulation Volatility Bands

I am building a simple stochastic model for learning purposes in excel. I took daily data for the SPY since 1/1/1993. I computed the daily log returns and found that the SPY has had an average daily ...
0answers
37 views

### I want to optimize an equity portfolio for the four central moments can anyone help me with the problem formulation

Basically i am confused as to which formula to use for portfolio skew and kurtosis and how to use the same in the optimization problem. I would also like to know the options available regarding the ...
1answer
57 views

### the law of comparative advantage and exchange rate

I'm reading Steven N. S. Cheung 's "Economic Explanation" (2001). In vol 2 ch 2 section 2, he mentions Comparative Cost, or "the law of comparative advantage". after quoting the britain/spain ...
0answers
40 views

### Cross validation of a garch model

Suppose I divide a time series into 10 sequential time windows, where each window contains 1000 data points. I want to do test 5 different garch models using cross validation. So for each model, I ...
0answers
37 views

### Mapping Futures Data Into Mantas

Can anyone please help me figure out how to map 'Futures Data' into Oracle Mantas. I believe 'Futures Data Feed' will have a different 'Format' from the one acceptable to 'Mantas' risk management.
2answers
668 views

### How to calibrate Hull-White from zero curve?

I am interested in calibrating a Hull-White model to the market. I do not, however, have data on anything except the market zero curves, as all derivatives are being traded OTC. My plan is to ...
1answer
89 views

### How to explain the path dependency in binomial tree model to price options?

I'm new to quantitative finance, so I'm confused with the so-called path dependency in binomial tree model. Originally I thought the path dependency exists because in binomial tree model, we will ...
4answers
269 views

### compute sharpe ratio for options?

Calculating sharpe ratio for shares is a straight forward task: (average returns - risk free ) / standard deviation. However i remain baffled as to how to tackle the task for options, can someone ...
1answer
101 views

### Synthesize a futures spread option

Is it possible to synthesize a futures spread option using only the options on the spread's underlyings? If so, how? If not, is there another way? As an example, please show me how to synthesize ...
0answers
55 views

### Dividend Index Futures

My question is dealing with the proportionality between Dividend Index Futures prices and Index prices. Indeed, we in the past we used to do a simple regression between these variables and use the ...
0answers
46 views

### Bloomberg Open Symbology: Pricing Sources for major North American exchanges

I'm trying to figure out how to get a list of symbols out of Bloomberg Open Symbology based on the stock exchange. If Pricing Source symbol for the Toronto Stock Exchange is "CT", would filtering to ...
0answers
57 views

### Analysing FX Data

When analysing currencies, the data always comes in pairs so it is hard to normalise a multivariate time series of data e.g. if I have GBPvsUSD, EURvsUSD and CADvsUSD then changes in the US economy ...
1answer
107 views

### Interpretation of cross-correlation matrix when one sample distribution is not normal

I am looking at the variance of (log) price changes in securities vs. the amount of social media discussion about them. I'm not interested in building a model. I'm just looking to see if there is a ...
1answer
123 views

### Liquidity diversification

The liquidity diversification can be measured by the liquidity score, defined here as the ratio between the pure market P&L CVaR and the market+liquidity P&L CVaR. I have tried to reproduce ...
3answers
429 views

### How to simulate stock prices using variance gamma process?

I want to simulate stock prices with the variance gamma process. The model is given by: $S_T=S_0 e^{ {[}(r-1)T + \omega + z{]}}$ where $S_0=$ starting value $T=$ Time ...
1answer
39 views

### what's the difference between Peak-Load pricing and price discrimination?

i just don't get it. Peak-load pricing wiki page gives example: in public goods such as public urban transportation, where day demand (peak period) is usually much higher than night demand ...
3answers
675 views

### How to estimate real-world probabilities

In the world of finance, Risk-neutral pricing allow us to estimate the fair value of derivatives using the risk free rate as the expected return of the underlyings. However, the behavior of ...
2answers
122 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 ...
2answers
344 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 ...
2answers
436 views

0answers
55 views

### UAC- Unbiased Average Correlation for a Matrix of stocks

Once I have computed a correlation matrix for a portfolio of stocks, how do I calculate the UAC for the correlation matrix? ie, how do I strip out any auto correlation among the names?
2answers
161 views

### Mitigating gateway delay

A trading system has $n$ colocated uplinks to TCP order entry gateways $g_1, \dots, g_n$ on a given exchange. Each gateway $g_i$ has a different order entry delay function $d_i(t)$ as a function of ...
1answer
50 views

### Parameters for numerically fitting t-distribution to log-returns

I am fitting the t-distribution to log-returns numerically (not using R, MATLAB, Stata, etc.), but rather using general programming. Assuming the log-return values are $r_t$, and the $t$-variates are ...
1answer
55 views

### converting US tickers into Reuters RIC [duplicate]

I have a large list of US equity tickers such as: "GIRO", "ITUB", "BITA" etc and I would like to convert them into their corresponding RIC codes. Do you know how can I do it? I have access to ...
0answers
132 views

### R or Matlab code for Multi-Barrier-Options (3 or more underlyings)

I am looking for R or Matlab code examples of multi-barrier-options (or multi-barrier reverse convertibles) with at least 3 underlyings. Do you have such code or can you point me to a place where I ...
0answers
83 views

### Option pricing using fourier transform

I am trying to compare option price given by Carr and Madan method using fft with value generated by BS model and find out the error between the two method. I want to plot this error graph(3d graph as ...
0answers
84 views

### Bond Convexity Treasuries Futures

I know long duration bonds, on a a single bond basis, exhibit convexity however do treasury futures prices and the 10 yr yield exhibit the same property? Below is a plot of continious ten year ...
3answers
211 views

### Consensus on Cauchy distribution for stock prices

What is the general consensus for using a Cauchy distribution to model stock prices? I can't find much after researching online and wonder if it has been tried and discarded. My motivation is to find ...
0answers
198 views

### Algorithm to fit AR(1)/GARCH(1,1) model of log-returns

I am fitting numerically an AR(1)/GARCH(1,1) process to index and stock log-returns, $r_t=\log(P_t/P_{t-1})$, where $P_t$ is the price at time $t$, and thus far am not clear on where the observed log ...
1answer
242 views

### Non-intuitive correlation between S&P sector indexes and economic indicators

I am trying to understand how changes in economic indicators like Unemployment Rate, Inflation Rate, and Consumer Sentiment affect the portfolio values. For that I want to measure the correlation ...
1answer
145 views

### How to sum interest rate curves in QuantLib

C++ code taken from Bonds.cpp and slightly amended: ...
0answers
83 views

0answers
88 views

### What is the stochastic differential of a general semimartingale?

By using the canonical representation of a semimartingale in Eberlein, Glau and Papapantoleon's "Analysis of Fourier Transform Valuation Formulas and Applications", on page 3: H = B + H^c + h(x) ...

15 30 50 per page