For me the trend is very simply where the 10 period MA is in relation to the 50 period MA. Job done.

If the 10 is above the 50 it's an upward if below it's a downward trend. When the price pushes above the 10 period MA in an up trend, I'm looking at buying. When price is below the 10 in an up trend it's regressing to the 50 period mean. When price comes to a rest on the 50 period MA I'm ready for it to either cease the pullback and start off up again, or, it'll cross down through the 50. In which case, I'll wait for the 10 to cross down and we're ready for trading short on the down trend. I've tried making it more complex than this and it's easily possible to do so and also quite unnecessary.