I wrote once algos for regular divergence entries based on TRIX and BR Squeeze (based on bollinger bands) in easylanguage. The reason for two indicators was that one was needed to measure a 'close' neighbouring divergence to the closest low / high ...