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
VIP
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

Top