Well known iTrend indicator made for MetaTrader5
In order to extend it (apart of making it use the visual tools that are available in MetaTrader 5 now), it is :
As a deviation compared to the wide spread version, this version has an adjustable level that is used to determine trend change (and continuation) that can be set to desired extremes look-back period and value. Once when that level is broken the trend is kept as long as the opposite direction value does not brake that level
The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.Average Directional Movement Index (ADX)
The Average Directional Movement Index Indicator (ADX) helps to determine if there is a price trend.