There is a function in Think Desktop called “AddCloud()”. This function shades the space between two plots. Assuming that you have previously defined two plots, plotA and plotB, here’s how you would use it:
That’s it! The area between the two plots will be shaded–green if plotA is above plotB, and red if plotB is above plotA.
There are a lot of uses for this, but here’s one I threw together–a shaded opening range indicator:
You input the market open time, and the time that you want the opening range (OR) to finish. As time progresses through the OR, the peak high and low are constantly updated and revised backward, thanks to the declare fullrange; operator. With this indicator, you get a red shaded area when the OR is active, and it turns green once the OR is completed.
You can download the “OR_Shaded” indicator from my google site in the Thinkscript Studies section. This one is free. Thanks to all my readers, donors, and customers! Your support is appreciated. Comment if you have any thoughts or questions.