In this advanced version of the Weis Wave Volume Bar Colour indicator, you can change the trend length for the green & red bars individually. Alerts can also be triggered at the start of a new trend easily, by the green/red dots.
This script is published closed-source and you may use it freely. You can favorite it to use it on a chart. You cannot view or modify its source code.