By Dan | Published: 2/3/2010
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.
To add it to a chart, select and copy the script below. Then [...]
How to Change Candle/Bar Colors on Thinkorswim Charts for Moving Averages