• Get $40 off VIP by signing up for a free account! Sign Up

Using External Historical Data in ThinkorSwim?


New member
Greeting, thanks for having me.

Admittedly new to creating custom indicators (but not entirely to programming), I am looking for a way to display.import some historical data that I have in a external report (Excel (current format), CSV, SQL if needed, or another Database Source) over candles, or in a line graph indicator in ToS.

The report contains:
  • The relevant symbol for Futures Commodity
  • The date of the Index % numbers I am looking to display
  • The Index % number itself
Sounds simple enough in the context of what I want to display. How would one go about this. Any relevant direction very much appreciated.

Thank you, kindly

Last edited by a moderator:
One more thing, if you don't mind. Lets say I just want an indicator that shows the value (lower place holder indicator) with the value between 2 dates, from date, to date, and on to the next - manually inputting the index value and a color. Would just need to flow across the chart expand, collapse like any indicator. Possible? I could then just generate the code and constants from my data-set and manually put it in each week.
@paramay I have seen some people done that. Not sure to what extent they did it, but if you have some sort of data set (mostly in values), then you can put it into an indicator. Not entirely sure.
Great. All I think I am really looking to do now, is much like a volume bar graph but with my own values specified from 0 to 100%.

Thanks! I'll see what I can come up with.

If anyone has any suggestions on how to do it, I think I'm heading in the right direction with a bar graph (plot?) based on my own values.
It would be so awesome. So awesome. I don't suppose there's any way? Tradingview scanners are horrible imo. If I could get the data from crypto markets they have into think or swim somehow, it would be a fantastic edge.
@paramay have you considered a charting program like Metastock or Tradestation? In many ways they are better at charting than tos. Ive been using Metastock since 1995. I do all my backtesting in it. You can import static data or use realtime data.

Join useThinkScript to post your question to a community of 21,000+ developers and traders.

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
271 Online
Create Post

Similar threads

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.