Just how reliable is backtesting?

Discussion in 'Trading' started by nxt7, Apr 14, 2016.

  1. nxt7

    nxt7

    So my backtesting model which is supposed to give atleast a 4.6 win/loss ratio from a sample size that covered 68% of the backtested price data, has been giving me nothing but losses these past few weeks. Good thing it was only minor losses otherwise I would have almost certainly blown up. Has made me question just how much faith one should put in backtesting... Like how do I even find out my model is now completely crap based on recent price data skewing the win/loss ratio way down or that I have to wait months before a successful trade? Obviously I can't
     
    Last edited: Apr 14, 2016
  2. Surgo

    Surgo

    How did you create your model?

    I think a lot of people do backtesting wrong. In machine learning there's a concept of a training set and a test set -- you'd *never* take the results of the model on the training set as any indication of the model's strength. Instead you have to see how well it generalizes to new data. You may have committed a similar error when you created your model.
     
    dartmus likes this.
  3. d08

    d08

    Try to limit the amount of parameters/filters, the more trades you filter out the more unlikely it is to work with forward data.
     
    autotradingalgos and K-Pia like this.
  4. nxt7

    nxt7

    lol machine learning is way beyond my league.
     
  5. nxt7

    nxt7

    Literally just using 1 parameter and thats a moving average. I don't know how much simpler I can get
     
  6. K-Pia

    K-Pia

    But not the point.
    Do not overfit on training set.
    And test forward on untrained data.
     
  7. K-Pia

    K-Pia

    How much backward have you backtested ?
    A simple MA system might be good for daily data.
    And some ticker are more appropriate than other for that.
     
  8. nxt7

    nxt7

    The entire historical data of the instrument
     
  9. K-Pia

    K-Pia

    Ok. Maybe there are time the system performed similarly.
    For exemple in time of low volatility ? Don't know.
    It's not only about the size of the data set.
    But about the conditions, underlyings.
     
  10. d08

    d08

    MA has a period and the type of MA used was also probably not selected at random. Personally I'd never base trade decisions solely on a moving average but that's just me.
     
    #10     Apr 14, 2016
    K-Pia and Xela like this.