how did u get multiple colors on the Overbought and over sold top and bottom lines?Anyone know scan code for TMO color changing from red to green and crossing 20% ?
![]()
yeah the cloud takes up the whole graph "add Cloud..."@dmillz
plot Band = Pick a #;
plot Band2 = Pick a #;
Band.SetDefaultColor(CreateColor(0, 224, 0));
Band2.SetDefaultColor(CreateColor(0, 224, 0));
AddCloud(Band, Band2, Color.Choose a color);
I have both TMO daily and TMO with aggregation in the same study that's why you see multiple colors.how did u get multiple colors on the Overbought and over sold top and bottom lines?
def green = Main crosses above Signal;
Alert(green, " ", Alert.Bar, Sound.Chimes);
Thank you for chatting into thinkorswim sorry for the wait. If the script requires extensive calculations such as recursions over a long period of time it will return this execution timeout. I can take a look at your scan with you to see if there may be a good way to modify it so that it works. You are welcome to share the scan query with us by clicking the three lines in the upper right and then "Share scan query" and then paste the hyperlink into our chat here to review, but I cannot promise that there will be a fix if the necessary calculations are extensive, the scan may need to be broken down into more than one scan or use a more narrow lookback period or something like that
t's the "Fold" iterations in the "data" variable that are breaking this down in the scan and making it timeout. The scan tab really just can't handle the "fold" reserved word. I have not found a good workaround to get this to work yet I'm sorry
There is not a good alternative to replace the "Fold" operator, but something that you could do is create a smaller watchlist instead of all symbols and run the same thinkscript scan over a smaller list of symbols. If you try to perform this calculation on all stocks or something like that it will likely time out, but if you have a smaller list of symbols that you want to run this calculation over in the scan that is the best workaround I can think of. Doing these many iterations on all symbols is just too much processing power
Not sure exactly sure what you mean. I was a combo of the TMO and another indicator in one script. About 63 lines with half being hints. Filtered by "weekly" only.@subharmonic How did you set up your scanner for the TMO indicator? Can you post a screenshot?
Thread starter | Similar threads | Forum | Replies | Date |
---|---|---|---|---|
T | Multi-Time Frame True Momentum Oscillator (MTF) for ThinkorSwim | Indicators | 120 | |
![]() |
True Center Band Indicator for ThinkorSwim | Indicators | 5 | |
D | Average True Range (ATR) Implied Move for ThinkorSwim | Indicators | 4 | |
B | True IV Percentile (not rank) | Questions | 7 | |
S | How to say if 3 out 5 conditions are true show signal? | Questions | 15 |