BackTesting vs WalkForward

Discussion in 'Automated Trading' started by ButterMilk, Aug 14, 2010.

  1. Pardon my ignorance iagainsti,

    but indicators, lagging, leading or otherwise, would be components in your trading system - and you would always test against real historical price data.

    tell me this is always the case, or tell me when this would not be the case - I am curios?
     
    #21     Aug 16, 2010
  2. redwraith

    redwraith

    Buy when price goes up, sell when price goes down? Are you using price patterns or something?
     
    #22     Aug 16, 2010
  3. The only indicator I use is price. Then optimize around buy points and stop losses, etc.

    In other words, I don't use oscillators, MA's, Fib's, etc. I'm not smart enough to make use of them, I guess. Whenever I try, I end up chasing my tail or see horrendous whipsaws, etc.
     
    #23     Aug 16, 2010
  4. Thank You iagainsti!
     
    #24     Aug 16, 2010
  5. iagainsti,...sure your smart enough to know how to these indicators, but like most of use (myself included) it takes a little coaching.

    If you haven't done so already, consider these two web sites - I particularly like FM Labs, consider purchasing their code - they did a good job.

    http://stockcharts.com/school/doku.php?id=chart_school

    http://www.fmlabs.com/reference/default.htm
     
    #25     Aug 17, 2010
  6. Backtesting and forward testing are pretty much exactly the same if you are simulating a set system (the forward data will yield the same results when it becomes backtest data). The reaction to the data doesn't change just because it hasn't happened yet or is coming in slower (or least it shouldn't if your backtest is coded accurately).

    The only time you really need to worry about backtesting vs forward testing is if your system is changing, learning or optimizing during your backtest, then an additional forward testing or out of sample period without optimization is suggested to guard against over fitting.

    Though if by forward testing you are referring to 'live testing' which actually executes small lot orders on the market, in my experience thats extremely different from simulated testing (often the killer of new systems), and will give you the best predictor on how your system will perform in the long run.
     
    #26     Aug 17, 2010
  7. This is a common misconception. Curve fitting leads to a great predictor if you are trying to predict the 'curve' you are fitting to.

    Example: Predicting whether a fruit is an apple or orange based on color. System if color == orange => then not apple. Would be considered a highly curve fitted system to the given sample set (since it is technically possible to get an orange apple). Though in reality it offers a very good predictor.

    I think what you are worrying about is known as over fitting. Which is where you optimize or fit to a sample set beyond the point of useful predictive knowledge, like in the above example, because in the first sample, say (A,A,O,O,O,A,A), your system believes that all future sample sets will be palindromes, which does not offer useful predictive knowledge of the solution space.

    Wouldn't any system using any element of knowledge outside the current state of the market (ie. knowledge of the past), be considered to be using 'lagging indicators' in a sense, since past knowledge can not exactly predict the future? I'm curious how you can design a system which only uses current market state (outside of stat arb, but even then you will want to model past arb opportunities). Even if you had current price and price triggers to trade, those price triggers will have some element of knowledge of the past (range, offsets, direction).
     
    #27     Aug 17, 2010
    Axon likes this.
  8. walterjennings,...your knowledge of trading optimization seems excellent. Did you conclude this through your own studies, or did you derive it from folks like Robert Pardo? I am curious about your source!
     
    #28     Aug 17, 2010
  9. Mostly schooling, my main base of knowledge coming from a statistical machine learning course taught by Shai Ben-David(if you are interested in looking up some of his publications), along with various other math/stat/a.i courses. Though my specific implementation have obviously been tweaked away from common theory over years of practice, I wouldn't consider myself anything close to an expert compared to some of the people I know.
     
    #29     Aug 17, 2010
  10. Thank You "walterjennings",...This was useful.
     
    #30     Aug 17, 2010