# Questions tagged [codes]

The tag has no usage guidance.

17 questions
Filter by
Sorted by
Tagged with
1 vote
52 views

### replicating momentum strategy - Formation Periods

I am trying to replicate the momentum strategy of the study by Jegadesh and Titman (1993) onyl using data from the past 10 years.I am trying right now to calculate the formation period returns. But I ...
• 11
955 views

### VBA Black Scholes Implied Volatility

I keep getting a Implied Vol. = to my initial guess, My code is as bellow ...
165 views

### Does anyone have codes that would solve the multi-period Kyle model?

Whenever I begin working on something new, I like to find existing examples of how things are done so that I can double check at least the basics before moving on to more complicated problems. I am ...
• 2,436
145 views

### Pricing options by IFT under the Heston and Nandi (2000) model: odd behavior

I am working on option pricing using GARCH models and, currently, I am coding the pricing of options under the Heston and Nandi (2000) model. This model admits a quasi analytical formula for pricing ...
• 2,436
1 vote
3k views

### Macaulay or modified duration in Python

i was wondering to ask, is there any function in pyhton, that calculates macaulay or modified duration, when time to maturity is not a whole number, for example time to maturity is 1514 days, and you ...
• 11
1 vote
57 views

### How many decimals of accuracy can I expect from FDM and MC (both valuation and risk)

I have implemented some Monte Carlo and FDM code. I can then get greeks by bumping. I am comparing to to exact formulas of price + greeks, and am wondering how many decimals of accuracy I can expect ...
• 11
1 vote
1k views

### Implementing the Sharpe's return-based style analysis on Python

I am trying to implement the Sharpe's return-based style analysis on Python. The problem is formulated as follows: ...
• 649
4k views

### Mapping I/B/E/S to Compustat via 6-digit CUSIP

I am trying to link Thomson Reuter's I/B/E/S dataset with Compustat. Both I obtained via WRDS. The only halfway useful info I could find was on a two year old forum post, which suggests to go through ...
• 237
1 vote
115 views

### Financial instrument code crossreference

Is there some source to have a XREF of various instruments codes as used by different providers ( IE Reuters Bloomberg others ) as well as ISIN, are there some sources/strategies already in place?
739 views

### Code for quasi-Gaussian model (Cheyette model)

I'm looking into the quasi-Gaussian model with linear local volatility as explained by Andersen and Piterbarg (Interest Rate Modeling, Volume 2). I'm trying to calibrate this model and implement it. I ...
• 141
1k views

### Matlab code for equally weighted portfolio

I have daily returns of 10 stocks. I need to construct an equally weighted portfolio that goes long in the 3 highest returns and short in the 3 lowest returns. The portfolio needs to be re-balanced ...
7k views

### Is there a website that lists replication code of financial papers?

There are lot of questions on this website related to the replication of the empirical part of financial papers. I noticed that some (honest) authors provide on their personal website some ...
• 2,552
1 vote
283 views

### Monte Carlo simulation of Multifractional Brownian Motion in MATLAB

Code under is taken from http://en.literateprograms.org/Monte_Carlo_simulation_(Matlab) ...
• 11
3k views

### How can I convert Yahoo Ticker Symbols into ISIN Codes?

I have a list of all Yahoo Ticker Symbols and I want to convert them into ISIN Codes. I have been researching and found out that finance.yahoo in the US does not ...
• 141
9k views

I am looking for a Python code that scraps a website to download historical firm data such as market capitalization, dividend-yield, and so on. I have a code that downloads the current firm data from ...
• 493
2k views

### Is Reuters Instrument Code (RIC) case-sensitive?

Someone in my organization claims that RIC codes are case-sensitive. So for example: SPXi201420000.U does not refer to the same instrument as ...
• 123