The process of evaluating a strategy, theory, or model by applying it to historical data.

learn more… | top users | synonyms (1)

0
votes
0answers
36 views

How to backtest Value at Risk Models using Conditional and Unconditional tests?

I am trying to carry out backtesting on a number of Value at Risk figures i obtained using var/covar, historical, and monte carlo simulation. The two methods im using are the Kupiec test ...
6
votes
1answer
165 views

R Backtesters: Quantstrat vs SIT

I am learning R, and want to start using a backtester. I have spent about a day reading all I can about R backtesters, and it seems there are 2 main contenders: quantstrat, which uses the packages ...
1
vote
1answer
41 views

How to get the the final % return in backtesting?

I'm learning how to do backtesting in Python using Pandas. I'm learning how to use Moving Average Crossover. I've generated signals to buy or to sell already. But I'm not sure where to go from there? ...
4
votes
1answer
178 views

Up and Down days in GBPUSD and a Filter

I want to study if the odds of an up or down day in a forex pairs is 50-50. I just count the total number of up and down days in X years and compare it with the total days. The results are very ...
3
votes
1answer
55 views

Why the diff of signal is called positions and what does it mean in backtesting?

I'm trying to learn Backtesting 101. I found this example which is very simple but I do not quite understand some of the terms. I understand Moving Average algorithm which is to measure trends or to ...
3
votes
2answers
118 views

Limits on Short selling

When back testing an algorithm that relies upon short selling certain stocks, how to limit the short selling so that the back-test results still remain reliable? What kind of controls are generally ...
3
votes
0answers
72 views

Strategy Testing

Firstly I am a newbie so I will apologise in advance if this is in the wrong forum. My question concerns testing for an equity trading strategy and I would appreciate any comments as to whether my ...
3
votes
1answer
54 views

How to find funds with long history to use in backtest?

Is there a way (website/code) to find funds/etfs for a given asset class and how much data history is available (yahoo finance or other) ? It could be as simple as a list of funds by asset class and ...
2
votes
4answers
771 views

Backtesting with Simulated Historical Data?

The trading strategies that are going to backtest well are the ones that pick the winners from the past. For example, if a trading strategy simply bought apple stock it would backtest extremely well. ...
0
votes
0answers
13 views

how to choose a price adjustment, a roll date and a data center for my trading strategy?

I have many doubts about Which roll date and price adjustment should I use. I need to backtest like 50 diferents futures. 6 index(mini sp500, Nikkei 225…), 10 Agriculture (soybean, Oat, Corn….),3 ...
5
votes
4answers
667 views

Backtesting - can you buy/sell at open and closing prices?

In backtesting (nasdaq stocks), I make the assumption that I have the ability buy/sell each day at the opening and closing prices. Is this realistic?
1
vote
0answers
27 views

Significance testing of average returns from Sharpe ratio

I'm aware that one way to do significance testing on a strategy is based on the sampling distribution of its Sharpe (see, e.g., Lo, 2002 and Opdyke, 2008). However, it appears to me that there's ...
1
vote
1answer
38 views

Historical index components (FIGIs) from bloomberg?

In order to run strategy simulations, I am trying to build a database of historical equity data using Bloomberg. I can pull the ticker symbols corresponding to the components of an index at any point ...
1
vote
2answers
145 views

How to estimate probable seeling pricegiven OHLC data for backtesting?

I'm relative new to this, so I might be asking something that doesn't make sense. Here is my scenario: I have intraday day at 1 minute intervals. This data has ohlc data and I want to compute for any ...
3
votes
3answers
305 views

What is an acceptable Sharpe Ratio for a prop desk?

What should be the value of a Sharpe Ratio for an intraday quantitative strategy to be accepted by a bank or hedge fund's prop desk? Let's assume the returns are daily changes in account equity, close ...
1
vote
1answer
160 views

Is there a good backtesting package in R?

My model exports a vector that have for each day b-buy s-sell or h- hold it's look like this: sig [1] b b s s b b b s s b s b s s b s b s s s s b b s s b b b b b b s b b b b b b b I want to ...
5
votes
1answer
293 views

Backtesting on historical option data

I have downloaded some daily historical option data for a timespan of 10 years and want to perform trading backtests with them. Data are European index options, on ODAX. My question is about realistic ...
4
votes
2answers
2k views

Resequencing of MsgSeqNum in FIX 4.2

I am trying to achieve the following functionality using QuickFIX for FIX 4.2 Send a couple of orders and make sure they’re filled. Then disconnect. Change the incoming (from Broker) sequence number ...
16
votes
3answers
4k views

Papers about backtesting option trading strategies

I am looking for all kinds of research concerning option trading strategies. With that I mean papers that publish results on different option trading strategies properly backtested with real-world ...
11
votes
1answer
334 views

What mathematical models did Harry Markopolos run to prove that Bernie Madoff 1% a month gain was a Ponzi scheme?

http://www.cbsnews.com/news/the-man-who-figured-out-madoffs-scheme-27-02-2009/ Asked how long it took him to figure out something was wrong, Markopolos said, "It took me five minutes to know ...
2
votes
0answers
81 views

R quantstrat backtest with dollar based position sizing

I am attempting to tweak a quantstrat based backtest but have run into an issue. The maxPos limits are share based, and I would rather use a fixed dollar amount instead. So I've tried generating a ...
0
votes
0answers
34 views

optimal look back period for cointegration analysis on daily prices

I'm running some cointegration tests on 2 stock pairs and was wondering, generally speaking, what would be the optimal look back period to test considering I am using daily prices and the average ...
1
vote
1answer
132 views

What is the logic behind this backtesting code in R

I am new to R and I have found this simple backtesting code and can you explain me what is happening here. ...
2
votes
1answer
663 views

How to fully replicate ADX + DI Indicators in Excel? [closed]

For black box testing, I was hoping that I could replicate the ADX + DI+ and DI- indicators that are provided in trading platforms such as ThinkOrSwim, ScottradeElite etc. However, I noticed that ...
10
votes
3answers
2k views

How to simulate slippage

I'm backtesting a trading strategy, using free OHLC data from yahoo or google. I'm simulating friction by lopping a flat percentage (say 0.5%) off my returns for each day that I make a trade. Whats ...
5
votes
1answer
234 views

Getting ETF data from google finance

I hope this is on-topic. I want to set-up a set of investment rules and back-test it on a mix of asset-classes. Thus I thought that using ETFs for the back-test would be a good idea (time series could ...
4
votes
0answers
214 views

How to optimize return in a moving average crossover algorithm

Moving average crossover strategy is a widely used strategy in algo trading. Is there a way to optimize return in a moving average crossover stratergy. I have used this site to backtest MA crossover ...
13
votes
6answers
11k views

Are there any good tools for back testing options strategies?

There are all kinds of tools for backtesting linear instruments (like stocks or stock indices). It is a completely different story when it comes to option strategies. Most of the tools used are ...
8
votes
0answers
182 views

Here is an approach for measuring Data Snooping; is it new?

I came up with an approach for measuring data snooping, or overfitting. My question is whether this approach was published and expanded-on already, or is it new? My approach relies on the observation ...
-1
votes
1answer
43 views

Monthly Return Net of Fees [closed]

How can I calculate the monthly return net of fees if the fee is annual?For example, if every year there is a 20% incentive fee, is there a formula to adjust the return of each month to compensate for ...
4
votes
1answer
72 views

Methodology for handling short american options in a back test

Given that an American option can be exercised at any time, how does one handle algorithmically shorting an American option in a back test? I am not sure what the best practice is to simulate the ...
5
votes
2answers
5k views

t-statistics for the mean return, using Newey-West standard errors

I have seen that in several papers, where the aim was to evaluate the performance of a certain investment strategy, they use t-statistics to test for significance in the results. However, this seems a ...
2
votes
1answer
55 views

importing columns of returns data into python from excel/csv [closed]

I'm fairly new to the quant finance space, and I was hoping to get some guidance. Say I have a csv/excel file with columns of daily returns data for various asset classes or securities (one column per ...
4
votes
2answers
758 views

Volatility of a rolling window strategy

What methods can be applied to determine the volatility of strategy using a rolling window? Using normal standard deviation would bias the results as the returns will be highly correlated. Although, ...
2
votes
1answer
124 views

Calculation of Returns and Risk Metrics for L/S Portfolio

I am trying to build a test for a long/short portfolio. I am aiming for market neutral and have put together a long portfolio as well as a short portfolio (see below). However, I am not sure if I am ...
4
votes
1answer
124 views

Question about historical volatility ranking

I have seen this strategy example, which uses garch in a regime switching context: https://systematicinvestor.wordpress.com/2012/01/06/trading-using-garch-volatility-forecast/ The author classifies ...
4
votes
1answer
369 views

How do you estimate the capacity of a strategy from historical data?

What are some good ways to estimate the capacity of a strategy from historical data (including full market depth)? Obviously, a naive approach is that you want the strategy's returns to exceed its ...
1
vote
1answer
88 views

Daily or weekly data?

I am trying to test a strategy but do not know if I should use daily or weekly data? I have tried researching this & have found that daily data will bring " too much " noise compared to lower ...
2
votes
1answer
142 views

Simulating Stock's close, high and low prices

I am testing a model in which I need to simulate closing, high and low prices (i.e. 3 dimensions of prices) of any given stock. Using the simple Geometric Brownion Motion equation I can easily ...
4
votes
1answer
110 views

How to compute daily compounded backtest returns closer to real-world results?

I often run quick tests of trading strategies in my analytics suites by: multiplying a vector of signal (lagged, {-1,0,1}) with a time series of daily percentage returns doing a cumulative product ...
4
votes
1answer
226 views

Overlapping Value-at-Risk Backtest Data an Issue?

My understanding of VaR model back testing is thus: ~~ t: Calculate daily VaR using look back data over n past days t+1: Compare daily return against VaR, record breach if one occurred, repeat ...
5
votes
3answers
925 views

Expected Shortfall (CVaR) Backtesting

I am writing my thesis on VaR and ES risk measurements and have encountered some issues with how to best test the accuracy of ES estimates. My understanding of the topic is that backtesting ES ...
2
votes
0answers
142 views

Are there any software libraries for backtesting FX algorithms against tick data?

I've read question, however it doesn't appear as if any of those libraries work for FX data. A Google search for python forex backtesting turns up this project, ...
4
votes
1answer
1k views

Learn backtesting using MATLAB

What are some good ressources (books, articles, ...) to learn backtesting of investment strategies using MATLAB ? It can be strategies related to fixed-income, equities, derivatives, ... whatever. ...
0
votes
1answer
102 views

Backtesting software with custom data input

I was considering to develop a custom backtesting platform for myself. However, I see that it would require some significant time and effort, and the result might not be as initially expected. So I ...
5
votes
1answer
842 views

Backtesting with fundamentals

Recently I've read some books about quantative approach to fundamental investing: - What works on Wall Street - James O'Shaughnessy - Quantitative Value - Wesley Gray, Tobias Carlisle - Quantitative ...
2
votes
0answers
66 views

How to compare market values with model values after calibration?

After calibration the G2++ model for interest (with swaption volatilities), I want to statistically test the quality of the calibration by comparing market to model values. What is the best way to ...
2
votes
0answers
75 views

Adjusting for your own orders in future backtests

I was asked this question in an interview and despite thinking about it for a while, I haven't been able to come up with a good answer. Suppose you have a strategy you are running where at certain ...
1
vote
2answers
223 views

Long/Short Backtesting Set up

I am going to be backtesting a Long/Short equity strategy and need some guidance on how best to deal with the short book. I was thinking that for each portfolio I would go long 50 equities and go ...
33
votes
8answers
8k views

What broker/feed/APIsetup allows for recording the most accurate data (cheaply)?

I'm currently using IB's Java API and getting feeds through them. However the real-time feed is updated only every 250ms and the historical feed only every second. I'm primarily looking for ES data ...