Here is an adaptation of TTM_Trend I coded. It's all pretty self explanatory. Aqua = buy and red = sell. There's only one setting to tweak and it's the look-back for highest and lowest. I have found that this indicator gives signals at almost identical areas to the TTM_Trend but tend to actually be a little more efficient (earlier buy/sell signals), although I haven't thoroughly back-tested it.
Enjoy! Please comment below if you have any questions.