Hi All,
Here is an brand new MTF Trend indicator I just put together called the Trend Persistence Rate (TPR) indicator. It is based on the TPR code published by Richard Poster, PhD, in his article, "Trend Strength: Measuring the Duration of a Trend," Technical Analysis of Stocks & Commodities (TASC), February 2021.
As far as I understand, you can use this indicator to filter trades by only taking trades with TPR% levels that are greater than the Lower trigger level so you can play with different values for the Lower trigger level to see what works best for you.
Unfortunately, when I plugged the GetTPR() function into my 28 currency pairs scanner it caused high CPU% usage values so it appears that the GetTPR() function in the indicator needs to be optimized to be more efficient but I couldn't figure out how to do that. I attached the code below. If anyone can optimize it then please do so we can all benefit and please post the optimized code. Thanks.
Here is what it looks like on a chart: