Backtest help

Discussion in 'Trading' started by Jgills, Oct 26, 2011.

  1. Desired hold time? Days? Weeks? Months?
     
    #11     Oct 26, 2011
  2. The technical analysis back testing can be done using one normalized (analytical) example --- this is similar to "one does not need a table for each normal distribution. If you knows the results for N(0,1), one can know the results for other normal distributions."
     
    #12     Oct 26, 2011
  3. I might define support level as the least price value in X days. Resistance might be the greatest price value in Y days.
     
    #13     Oct 26, 2011
  4. Which is same as moving average.
     
    #14     Oct 26, 2011
  5. Coding support and resistance is effectively coding a trend channel.

    Here's one simple way:
    Connect two bars by creating a trend line between them - this trend line starts at the first bar typical price and ends at the last bar typical price. Loop through each bar (from start bar to end bar) and find the highest high and lowest low - relative to the middle trend line, not absolute. Then, your resistance should have the same slope as the middle trend line, only it should be above it by the highest high you found. Same for support, only using lowest low. So find the middle line (connect star bar typical and end bar typical), find how far above/below it prices go and copy this middle trend line up and down based on those values. This means all bars should be within the trend channel. The highest high is found by looping through each bar from start to finish, finding what the price of the middle trend line is at that bar, and then comparing the high value of that bar to the price of the middle trend line.

    Then you can look at how narrow it is, and the narrower it is, the more sense (strength or significane) it has and the more you should to consider it. Also, the more highs that a trend channel has that are nearly touching the resistance, the more significant it is.

    This isn't a very precise method but it will work in most cases. It won't allow you to create triangular trend channels since here both high/low (resistance/support) are always parallel. Then you can look at intra-channel price distribution, extend the channels into the future/past, etc etc, lots of useful things you can do.
     
    #15     Oct 26, 2011
  6. Jgills

    Jgills

    Position length will be determined as the trade progresses, I could enter a trade based on my analysis, but things could happen that could make me change my view. Ya know, when things change, things change.
     
    #16     Oct 26, 2011
  7. JeffUSA

    JeffUSA

    How do you determine what one normalized (analytical) example is?
     
    #17     Oct 26, 2011
  8. That is like opining of women "It's all pink inside."
     
    #18     Oct 26, 2011
  9. I asked because to me there are four different kinds of trades: a daytrade, a swing trade of days, a position trade of weeks, and an investment of months. I approach each differently from an S/R viewpoint. Trailer Trash Trading.
     
    #19     Oct 26, 2011
  10. Opinions are like ass holes - everyone got one.
     
    #20     Oct 26, 2011