Resource icon

Modifying Colors In Custom Studies

The ToS Custom Study Color Bible
When modifying an indicator's colors in ThinkOrSwim, the code dictates where and how that color can be changed. There are three primary ways colors are defined in custom scripts.


1. Globals
Colors Modifiable in the Global Inputs (DefineGlobalColor)
Q9cUf2p.png

Open Settings:
Click the Gear Icon (Settings) located directly to the right of the indicator's name.​
▸ Locate Global Colors:​
▸ Scroll all the way to the bottom​
▸ Look for a section explicitly headered Global Colors​
Change the Color:​
▸ Click on the colored square swatch next to the label​
▸ select your new color from the palette​
click save as default, if you want to make these colors permanent on all future charts​
click OK to Apply Changes​



2. Inputs and Options
How to Access and Modify Plot-Specific Colors
hO5QmT8.png

Scroll midway down
Locate the Plots Section:
Look for the specific name of the plot line you want to change.
Change the Color: Click the color box labeled Color or Value Color within that plot's dropdown menu.
click save as default, if you want to make these colors permanent on all future charts
Apply Changes: Save and apply to see the updates on your chart.


YES! YOU CAN CHANGE THIS COLOR!
2gI4N1v.png


First double-check under > Globals
uTS3M3f.png


3. Deep Dive
– Hunting & Editing Hardcoded Colors
Open the Script Editor. Double-click on the scroll icon
Start from the bottom of the code as plot statements are traditionally at the end.

Look for:
Standard Named Colors (Color.ORANGE)
This is the most common format. The script explicitly names a built-in ToS color.
Delete the old color text and type in one of these:
https://toslc.thinkorswim.com/center/reference/thinkScript/Constants/Color
Example Swap: Change Color.GREEN to Color.CYAN.

Color Index Numbers (GetColor(2))
ThinkOrSwim has 10 default palette colors numbered 0 through 9.
Delete the old color number and type in one of these:
https://toslc.thinkorswim.com/center/reference/thinkScript/Functions/Look---Feel/GetColor
Example Swap: Change GetColor(4) to GetColor(1) to switch from Red to Cyan.

Custom RGB Code (Most Flexible) CreateColor(0, 255, 127)
Replace the RGB code with anything you want:
https://rgbcolorpicker.com/
https://toslc.thinkorswim.com/center/reference/thinkScript/Functions/Look---Feel/CreateColor
Example swap:
Bright Neon Green: CreateColor(0, 255, 127)
Muted Pastel Red: CreateColor(240, 128, 128)
Electric Blue: CreateColor(0, 191, 255)
Gold/Warm Yellow: CreateColor(255, 215, 0)


💾 Note: Clicking "Save as Default" ensures that every time you load this custom indicator onto a new chart layout or a different ticker symbol in the future, it will remember your freshly edited hardcoded color choices automatically.
Author
useThinkScript
Views
32
First release
Last update
Rating
0.00 star(s) 0 ratings

The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
  • Exclusive indicators
  • Proven strategies & setups
  • Private Discord community
  • ‘Buy The Dip’ signal alerts
  • Exclusive members-only content
  • Add-ons and resources
  • 1 full year of unlimited support

Frequently Asked Questions

What is useThinkScript?

useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.

How do I get started?

We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.

If you are new, or just looking for guidance, here are some helpful links to get you started.

What are the benefits of VIP Membership?
VIP members get exclusive access to these proven and tested premium indicators: Buy the Dip, Advanced Market Moves 2.0, Take Profit, and Volatility Trading Range. In addition, VIP members get access to over 50 VIP-only custom indicators, add-ons, and strategies, private VIP-only forums, private Discord channel to discuss trades and strategies in real-time, customer support, trade alerts, and much more. Learn all about VIP membership here.
How can I access the premium indicators?
To access the premium indicators, which are plug and play ready, sign up for VIP membership here.
Back
Top