Quote from Random.Capital:
If I might make a suggestion on improvement...
#1 - Formalize the definition of "trend" for this approach (at a minimum entry signal, exit signal, minimum move)
#2 - Figure out what timeframe is currently providing moves consistent with your definition of trend (ok, this is not exactly "currently" as you don't have a time machine, there's nothing for it but to look at the recent past)
#3 - Use bars that are appropriate for the timeframe determined in step #2. EG, having a definition of "trend" that implies 10% moves and using 1min bars in a market moving at 0.5% a day will result in death by a thousand cuts.
You can also flip this around - start with a timeframe you want to trade - determine the "current" trendiness of that timeframe - adjust your entry/exit/target levels to reflect the "actual" state of trendiness rather than what "should" be happening.
It is important to remember that "trend" is a mathematical construction - it is an observation laid on top of historical data and is *always* rearward-looking.
#1 - Trend is defined as HH - HL - HH - HL (or reverse). Entry signal is 3BR after the last HL (not ideal, but the best I could come up with so far). Exit signal is failure to make HH/HL
or predefined stopLoss/profitTargets (again, tests better).
#2, 3 - Timeframe was 1-minute bars. I also tried longer timeframes but in general, in backtesting the shorter the timeframe the better -- it "kind of" simulates real life better.
I generally program the strategy and then optimize on stopLoss/profitTarget so by definition it adjusts to the "actual state of trendiness". Of course this is all in hindsight, but as you point out, what other choice is there?
The point of the exercise is to (a) test out a proposed strategy to determine if it has any merit and (b) if it does, try to get it to demonstrate consistent profitability on historical data. My experience is that
many things "kind of" work and in fact I'm running one live automated strategy now that is "kind of" successful, and have another candidate that I'm still testing that looks pretty good too. I think this confirms the assertion you will often hear that it's not the system, it's the trader -- in the case of automation, I believe it's the money management that makes it or breaks it.
I also trade discretionary and would
never take a trade using a method that I hadn't backtested and proven to be on balance profitable.
HTH,
Big C