Shaded Opening Range Indicator for Think or Swim

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:

AddCloud(plotA, plotB);

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:

Shaded OR

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.

Tags: , ,

9 Responses to “Shaded Opening Range Indicator for Think or Swim”

  1. RappidFyre Says:

    Thanx Pro,

    This is a nice useful feature. I just added this study to my existing OR study where as I have the shaded visual plotting various OR time frames sporting different shaded colors. Just a little mod to the color codings. The 5, 15, 30, 45, and 60 are shaded differently to indicate the time frame’s specific OR range. I can also hide any of the ranges I don’t wish to focus on at the time.

    Helpful for entries, covering and keeping out of the binding ranges.


  2. S&P E-mini Futures (ES) Trades: 7-28-09 « Read the Prospectus Says:

    […] used a 133 tick chart of ES. You can see my Shaded Opening Range Indicator on there (set from 0930 to 0931), as well as my Volatility-Based Trailing Stop. I’ve also got […]

  3. GW Says:

    RappidFyre, how do you customize colors for each OR region?

  4. John Says:

    Thank you, Iwill try it..

  5. vic Says:

    anyone know how to make a study alert of the ORB, been trying to but just can get the script right any help appreciated

  6. Dan Says:

    Hello! Being a newbie to thinkscript, when I make a ‘download’ from this Site how do I ‘save’ it so I can import it into TOS…? Thanks…

  7. Prospectus Says:

    This guide should help:


  8. Gonzalo Says:

    Hi. Great Indi and thks for sharing. Question. How can I modify the SHADED colors once OR period is finished? I see I can change LINE colors, but shaded area not seeing how. Tks

  9. Prospectus Says:

    Back when I wrote this script, addcloud didn’t have color options. You can put colors in the addcloud function now, like this:

    > addcloud(ORH,ORL,Color.RED,color.GREEN);

    This page has more examples:—Feel/AddCloud.html


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: