There are two components to this script:
1. The moving averages that are plotted to visualize the trend
2. The squares plotted at the bottom of the chart are a combination of Trend Detector 3.0's two set of squares. Green = bullish, yellow = undecided, red = bearish.
Use on multiple timeframes to help plan out trades.