This is the same script as the one from ChartPrime, just with the default length set to 200 (for BTC on the 15min it seems to give a good response), and the flip level shown in the table. The flip level is the level at which if hit, it will flip from the existing trend to the other.