This quick study allows you to alter the color of your candles (or bars) based upon the candle's position vs. the Exponential Moving Average you select. See the screenshot example, which uses the 50 EMA. This study should work for all chart types.
This is a simple script to visually indicate gaps on a stock chart on thinkorswim. It does not display correctly for 24 hour products or tick charts.
To add it to a chart, select and copy the script below. Then on a thinkorswim chart, right click on a chart, choose Studies then Edit Studies. Then in the lower left hand corner, choose New Study. Give the study a name, like My_Gap then paste the code below into the main window. Then click ok. The study should be on your chart now. See the example above. # My_Gap