# All Questions

21k views

I have a very basic data question: how to get a list of all common stocks traded on NYSE, NASDAQ and AMEX? I would need to be able to get the approximate list of common stocks as is available in ...
114 views

### Disclosure of the liquidity provider identity in ITCH

If you look into the description of Nasdaq ITCH data, you see two types of order entries in the book: Message of Type A and F. Under type F, you will see the identity of the market participant (MPID). ...
793 views

### Usage of Random forests in Quantitative analysis of stocks

I have a question about Random forests and how they could be utilized in trading? I heard Random forests are used for classification, is that accurate? If so, could someone give an example of what ...
7k views

### Any known bugs with Yahoo Finance adjusted close data ?

Yahoo Finance allows you to download tables of their daily historical stock price data. The data includes an adjusted closing price that I thought I might use to calculate daily log returns as a ...
3k views

### Central Index Key (CIK) of all traded stocks

Is there a way by which I can get a list of CIK of all registered stocks at the SEC?
250 views

### Components of an index in a specific date

Objective: Get a list of all the companies that were ever part of an index (e.g.: FTSE100) in a given period of time (scale: years/decades). Method I have in mind: 1) Create an empty list k. 2) Get ...
45 views

### How to interpret CME's specification regarding grains options expirations?

Looking at the contract specifications for Soybean Meal and Soybean Oil (same for Corn, Wheat, and other major stuff I checked) serial options on CME I see the following expiration rule: the last ...
153 views

### How to compute greeks using the adjoint Monte Carlo approach?

Assume I have a stochastic ODE $$dS = a(S)dt + b(S)dW,$$ with Euler approximation $$\hat{S}_{n+1}=F_n(\hat{S}_n)=\hat{S}_n+a(\hat{S}_n)h+b(\hat{S}_n)Z_n\sqrt{h}.$$ This allows me to create sample ...
2k views

### Predicting Price Movements on a Betting Exchange

On a betting exchange the price (the odds that an event will happen expressed as a decimal, 1/(percentage chance event occurring) of a runner can experience a great deal of volatility before the event ...
171 views

### Is Cubic spline Interpolation on swaption Volatility arbitrage free?

If I use interpolation technique such as cubic spline to estimate volatility of Swaption with different strike,(with a given forward rate, swap and option maturity) will this be arbitrage free? What ...
59 views

### Liquidity and Prices

Do fewer transaction costs and higher liquidity relate to lower market prices? Are there any good resources that deal with these topics in more detail?
198 views

### Is there a difference between crossing network and ECN

Is there a difference between a crossing network and an ECN? The wikipedia page for Crossing Network says that ECN is a type of crossing network. But crossing network has the smell of a semi-legal ...
5k views

### What is the best data structure/implementation for representing a time series?

I was wondering what is best practice for representing elements in a time series, especially with large amounts of data. The focus/context is in a back testing engine and comparing multiple series. ...
6k views

### How to calculate stock move probability based on option implied volatility and time to expiration? (Monte Carlo simulation)

I am looking for one line formula ideally in Excel to calculate stock move probability based on option implied volatility and time to expiration? I have already found a few complex samples which took ...
172 views

### Liquidity seeking algorithms open source implementation

Are there any free online liquidity seeking algorithms? Possible an open source implementation? Not looking for anything state-of-the-art, but just to get an idea how they work.
282 views

### Normality assumption in Sharpe ratio

I have read that the Sharpe ratio imposes a normality assumption, but I fail to see how. Standard deviation is statistic for any type of distribution. Anyone have any ideas?
72 views

### How does a cross trade pose a problem to the retail investor

How does a cross trade pose a disadvantage to the retail client. In this explanation It says: ...
3k views

### Earnings and valuation data sources online

Are there any free/cheap sources for historical data on company earnings and valuations? I can get historical price data from Google and Yahoo, and it looks like I can get about five years of ...
40 views

### Rational expectation meaning

What does rational expectation (RE) mean in agent-based modeling context? What are the relationships between RE and expectation and outcome?
65 views

### Inferring signals in absence of sign of principal components (PCA)?

PCA seems to be very popular in dimension reduction applications and for extracting the top PCs which explain the data. One such application in futures is on the term structure to obtain the level, ...
297 views

### Is there a contradiciton between option prices being martingales and the use of options for speculation?

It seems like there is a contradiction between the fact the option pricing is risk-neutral and the large amount of option trading that is done for speculation. Since the option is risk-neutral, a ...
58 views

### Clarifying the way in counting number of weeks for calculating historical weekly volatility in Bloomberg

I would like to confirm the way to counting number of weeks for calculating historical weekly volatility in Bloomberg. Given an option with issue date from 14/1/2014 to 13/1/2019, is the proper way to ...
71 views

### Approximating the PDE price of an option with a binomial model

I'm trying to replicate, with a binomial model, the price of an option obtained with a PDE. It doesn't really work, so I was wondering, if there are some caveats when doing that. The PDE model use a ...
231 views

### Calculate Daily Returns for Sharpe Ratio

For the purposes of Sharpe ratio, I calculate a trading strategy's daily returns using realized P/L only: $$\frac{K(t + 1) - K(t)}{K(t)},$$ where $K(t)$ is the cash balance after market close on day ...
109 views

### Expected payoff and weighted average price

Settings Let you're trading a security whose probability to be equal to $S_{T}$ at time $T$ follows a p.d.f. like the ones in the picture below. (That is just an example found with Google images, ...
327 views

### Is there any open-source library, implementing “exchange” to be used for algorithms running on the same computer?

Question: Is there any open-source project/library, which can act as a "local exchange" for agents (algorithms), running on the same computer? Clarification: by "local exchange" I mean, that the ...
287 views

### Optimizing Principal Component factor weightings over time

I was given the returns of a cross-asset class portfolio of ETFs and I conducted PCA to obtain factors on dates from T-n, T-3, T-2,..., T. What I would like to do is decompose the market moves from ...
2k views

### Why are options trades supposed to be delta-neutral?

I'm reading Natenberg's book, and he says that all options trades should be delta neutral. I understand that this prevents small changes in the underlying price from changing the price of the option, ...
119 views

### What is the realized volatility's estimation error?

Given an estimation procedure and real data, how would one compute the mean squared error? What value represents the "true" realized volatility in the case of calculating the Mean Squared Error in ...
79 views

### Where can I find monthly/weekly historical data for gold and silver [duplicate]

Preferably in monthly or weekly denomination, for at least 20 years. Preferably in Excel format, but csv, or other format is fine too. I try to google but couldn't find anything, maybe I just wasn't ...
99 views

### What R-packages for SOCP problems are there?

Currently, I am looking deeper into the topic of second-order cone programming. Could you suggest packages that solve SOCP-problems in R? With your answer, please provide a short description of ...
1k views

### Volatility-Based Envelopes

I am following an article by Mohamed Elsaiid (MFTA) about Volatility-Based Envelopes - a quite new technical indicator he has introduced, that is being used by Bloomberg. My goal is to get a simple ...
228 views

### How can I calculate the Cumulant-Generating Function in Matlab?

Let $M(h)$ be the moment-generating function, then the cumulant generating function is given by $$K(h)=\text{ln}M(h)=\\ =\kappa_1h+\frac{1}{2!}h^2\kappa_2+\frac{1}{3!}h^3\kappa_3+\ldots$$ where ...
109 views

### Correlation between idiosyncratic residuals and forward returns

The classic mean-reversion strategy is to calculate an "expected return" (alpha) by computing the raw return for each security and then remove the part which you think is market driven. Statistically ...
389 views

### Open source equity/bond index data

I have been using the tseries package of R (get.hist.quote) to get historical quotes for various indices from yahoo finance. I am interested in DAX, VDAX, EB.REXX ...
1k views

### Mass Market Data Source

My current project requires large amounts of historical and real-time market data (1m or 5m bars for various products, mostly US futures for as far back as available). This data will be analyzed by ...
4k views

### Free market data (delayed or snapshot)

I know there are similar questions but I don't think there are any identical ones. Basically, I'm looking for one of these two things. Delayed market data feed. A tick by tick feed, but delayed by ...
732 views

### Market Data For Project

I'm looking to find a service that will allow me to download historical data on stocks, bonds, options, futures, indices, etc and also to pick up new files either on a daily or weekly basis. I've been ...
2k views

### Cointegration tests

I'm trying to figure out how to perform cointegration tests in R between 2 time series. I'm using po.test from the package ...
50 views

### FTAP in the model independent case, paper by Schachermayer

I have a question about the following paper by Beatrice Acciaio, Mathias Beiglböck, Friedrich Penkner, Walter Schachermayer. At the very beginning of the paper, on page 3, there are two definitions ...
136 views

### Penny jumping in the direction of the price

Reading through examples of legal front running, I'm struggling to understand how "penny jumping" (http://www.wikinvest.com/wiki/Front-running) can be profitable. Suppose stock ABC is trading at a ...
94 views

### Calculating deltas of call options?

From a continuous standpoint, I understand why an ATM call has delta = 0.5 and for ITM call, the delta approaches 1 since each move in the underlying corresponds to same unit of value change in call ...
382 views

### T-note returns from T-note yields … derivation of Damodaran's formula

Damodaran's historical data on 10-year T-note returns (found here) uses the following formula to calculate the 1-period total return on a T-note ($R_1$) given the 10-year constant maturity ...
48 views

### Under an EMM, does there necessarily exist a replicating portfolio?

In general, under an EMM, does there necessarily exist a replicating portfolio for every derivative? I believe the answer to this is false. A simple example is a discrete time, trinomial model. ...
42 views

### VIX Future risk modeling [duplicate]

I am very new to VIX futures and need to validate the risk model for these instruments. Could someone help me with how i can calculate the volatility on these instruments. Thanks.
1k views

### Value-at-Risk of the sum of two dependent lognormal random variables

Hy I posted this question first at mathflow.net they suggested me this page, which I was not aware of. Question: Let $(X_1,X_2)$ be a multivariate normal random vector ($X_1$ and $X_2$ need not be ...
172 views

### Multifractal Model, Generating Sample Paths with Correlations between Assets

I have studied option pricing using Geometric Brownian Motion to generate sample paths. Because of the normal distribution, it is easy to create a covariance matrix and get correlated asset returns. ...
285 views

### FIX binary decoder

Not sure if this is the right question board for this - It sounds like CME is switching their MDP platform from FAST to Simple Binary Encoding and it will be going to production soon. Does anybody ...