I would like to present you Donchian diff script. The idea behind this script is that as in Ichimoku I consider base line as equilibrium so I calculate percentages between base line and current price and calculate percentage between base line and conversion line and use them as a filter. For signals I used also that candle has to be highest or lowest in x(configurable) consecutive candles.
It has following setting: Base line setting Conversion line setting buy/sell signal setting - here you can setup buy/sell condition filter setting - here you can set up percentages of the distances