referencing several complex studies whether built-in or custom could potentially slow down charting.Good Afternoon Traders! I've read a lot of posts around the web about how to speed up TOS but still looking for some answers.
Four main questions:
1) Does referencing built-in TOS studies in User Defined studies slow things down? (I reference SequenceCounter in one of my studies)
Sequence Counter on its own, will not.
AddCloud is not a complex function, in of itself should not slow charting down2) Does the AddCloud function slow things down? (I have a study that plots several different clouds simultaneously)
The number of lines of code has no correlation to whether a script is complex.3) I have a study that is about 1500 lines long. It has references to TOS built-ins, uses several instances of ATR, EMA, Fibs, etc. It seems to really bog down TOS. Does anyone know if I separated out some of the sections into individual studies and then stacked them on a chart if that would improve performance?
Four lines of code with complex functions could be too complex.
2000 lines of simple plotting might be fine.
You are correct.(I've heard TOS is a single-core/thread application so I'm guessing this won't help because there's still only one core doing the same amount of work...)
Sequence Counter is a proprietary code. No modifications can be made to it.4) Does anyone know how to reference a TOS built-in study but also have that reference address a higher time-frame? In other words, if I wanted to see SequenceCounter values from a 15Min time frame but have them plotted on a 5Min chart is that possible?
Here is a thread for the discussion of ram:Some traders run multiple instances of TOS on their systems - that's not going to help me if I want mostly everything on a single chart.
However, I have been running multiple instances lately and have allocated a minimum of 24GB of RAM to each instance. Can't quite tell if that's helping.
https://usethinkscript.com/threads/ideal-memory-usage-settings-for-thinkorswim.10201/#post-128355
Here are more threads related to your discussion:
https://usethinkscript.com/threads/maximum-amount-of-lines-in-a-script.8258/
https://usethinkscript.com/threads/thinkorswim-app-system-lag.1173/
Last edited: