image here is the source code to the trend imperator indicator. If anyone knows how to fix the code you can use the indicator.