Click here to Login

                                                   In-Sample return for Walk Forward Analysis?


Praveen Baratam
2016-08-31 15:47:08

How is the Cumulative In-Sample return for Walk Forward Analysis calculated?

Example WFA Report -

In the above report the "In-Sample Annual Return" for all the periods is greater than 35% but the cumulative annual return used for the calculation of Walk Forward Efficiency is 13.7%

How is this possible? How is the Cumulative In-Sample Annual Return (Depicted in Red in the above link) calculated?

Am I missing something?

2016-09-01 11:03:42


The cumulative in-sample return is calculated by taking the sum of profits/loss for every in-sample then annualizing the result using the sum of the trading days in all in-samples as period.
Please send support an example that can help us reproduce this so that we can analyze it and explain what is going on.

2019-05-08 20:44:06


This seems to be a bug with the Cumulative Annual Return. I'm using contiguous, non-overlapping out-of-sample periods (from 4/1/2014 - 5/1/2019), and the Average Annual return per oos period is 28%, but the Cumulative annual return is 9% - Cumulative return should be close to 28% (despite some divergence due to laws of compounding).

2019-05-09 09:57:23


This can happen. If you have a year with 90% return and another one with -45% return then the average annual return would be 22.5% while the cumulative return is 4.5%.

No more messages


No html code. URLs turn into links automatically.

Type in the trading objects you want to include: - Add Objects
To add a trading object in your message, type in the object name, select it and then click on "Add Objects"


Trading Items
Market cap, ROE, ROA and Forward PE for U.S. Stocks - Fundamental...
Ignore Orders for Recently Purshased Securities based on Return
10-bar moving average return for S&P 500 stocks
Extensive Fundamental Data for U.S. Stocks
Average Daily Return per Year/Month Table

How-to Lessons
How to get fundamental data for U.S. Stocks
How to screen for stocks having a high correlation with the Dow J...
How to get stocks for a particular index using the global script
How to download EOD quotes for active and valid stocks only
How to add future bars to plan for market scenarios

Related Forum Threads
Custom Fitness Functions for Walk Forward Testing
Equity Curve and Trades list for out-of-sample Walk Forward test
In-Sample and Out-Of-Sample Dates for Optimization
Walk Forward Testing
Walk forward info

Blog Posts
How to Display the Year-to-Date Excess Return in a Pivot Table
Select the best ETFs combination to maximize your return and redu...
How to Select the Best Market Indicator for your Trading System
How to download the history of dividend payments for stocks in th...
10 New Ways to Download Historical Stock Quotes for Free

Create an account
Affiliate Program
Contact Us
Trading Forum
How-to Lessons
About Us
Terms of Use

Copyright 2024
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Follow us on Google+
RSS Trading Items

Trading financial instruments, including foreign exchange on margin, carries a high level of risk and is not suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in financial instruments or foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with trading and seek advice from an independent financial advisor if you have any doubts.