Heatmap-like as a an option to plot on chart?


New member

I am new to using thinkorswim to plot information about trading, and so far thinkscript seems promising for my purposes.

I have been interested in taking a measure for which I would like to evaluate multiple values all at once and display the array of results, which are all numbers between 0 and 1, as a stack of colored squares as wide as every time tick. The aggregate should be a sort of "heatmap" where one scale is time along with the chart, and the other is a series of rows along which I will sweep another parameter.

I've been looking through the available plotting resources but I seem to find either line charts, or plotting arrows or other things along a chart. I expected a heatmap, or contour plots, or maybe 3D data representations in the "Advanced" tab but it's only goes to far as to concatenate strings. Ooh. Advanced. So very.

A few twists I know are ahead for me: the ordinate (y-dimension) is calculated once for a series of time scales, back a minute, back a few minutes, back an hour, back a day, etc. I think I have a lead on how to handle calculations on multi-time-frame functions, but there's a chance that someone has worked through both essential issues in one go.

EDIT: Solved. Thermo mode is a whole method for handling input and I don't have to code up anything new.
Last edited:


New member
That looks like where I started, but I'm disappointed by the lack of references to other display items. It took me a while but I found a few things.

This is what made me jump into thinkscript in the first place. Not the video and the rambling feller but the heatmap

I thought about being devilish with Add Cloud, but this isn't what I'm trying to plot. Something to try later, perhaps. Then I posted here...

However, this is actually what I wanted, and it came to me just after your post. It was not in an obvious area in the rubbish documentation snarl over there, but whatever. I can give it inputs and so my thinkscript's "scale" should be able to be adjusted by this dialog box. Thanks for the very quick response, though.

Similar threads

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.