Runtime Error: thinkscript.runtime.TooComplexException

Thayanidhi

New member
Hi All,

I am completely new to Think script platform, I am trying to learn and creating custom code but i am getting the below error when i tried to add multiple conditions.

com.devexperts.tos.thinkscript.runtime.TooComplexException: The complexity of the expression suggests that it may not be reliable with real-time data.

Is there any limitations in think script or am i missed anything in my code?

Regards,
Thaya
 
Last edited by a moderator:

JabronLames

Member
VIP
Hi Thaya,

I'm new here, but maybe I can help. Are you able to link the study you are attempting to run?

***In my experience a long series if 'IF statements' can cause this in TOS. Also, if you're attempting to convert a study to a watchlist column, make sure to take out unnecessary code that pertains to the chart.
 

BenTen

Administrative
Staff member
Staff
VIP
Lifetime
The error says it all. The script you're working on may be too complicated for certain tasks (ex: using a scanner with it). Post the script or the exact feature that you're using.
 

Thayanidhi

New member
The error says it all. The script you're working on may be too complicated for certain tasks (ex: using a scanner with it). Post the script or the exact feature that you're using.
Thanks Ben Ten, Yes, We are using some scanner in that scripts and try to get values from scanners. The script with scanner is working if we need to get 1 or 2 value but if we need to get multiple values then we are getting the runtime or complex exceptions.
 
Unfortunately there are some scans that are too complex for TOS, so you get that error. It happens when I try to turn some of my complex studies into scans. Nothing you can do about it unfortunately.
 

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.
Top