WebOct 5, 2024 · 2 Answers Sorted by: 1 As noted by @Gary, thinkScript has no debugger tool. You can use chart bubbles, as Gary suggested, and chart labels. Chart bubbles appear at a specified bar when a condition is met. Chart labels appear at the upper left of the chart when a condition is met. Syntax Notes: WebBest. whitewashdog • 3 yr. ago. Email this to [email protected] and ask for help. Could be a week or two for a reply but they should be able to help. PrimeVector27 • 3 yr. ago. Thanks...in a week I'd probably figure it out myself. New to TOS and the syntax is tricky.
thinkScript: Some Code Behind the Scenes – Matt Dougherty
WebOct 12, 2024 · The thinkscript if function fails to branch as expected in an important case. The following test case can be used to reproduce this severe bug / defect. In a nutshell, an if statement may normally be used to prevent a function call from being executed if one of its function parameters is invalid. We show that this is not the case. WebJan 15, 2024 · This code does it marvelously. if you could do this in Thinkscript, which you can not do. def counter=0;def counter [1]=0; or def array counter [] =0; counter=counter+1; or rec counter=if VAOPerigee then counter [1] +1; normal code for accumulating would work. There is a way to give a variable an initial value. movie body snatchers original
How does one use a counter variable in ThinkScript?
Webplot Maximum1 = If (close > open, close, open); plot Maximum2 = if close > open then close else open; plot Maximum3; if close > open {. Maximum3 = close; } else {. Maximum3 = … WebJan 10, 2024 · An if-then condition statement is employed when you want an indicator to act differently in specific situations. In ThinkorSwim, the if-then statement allows for … WebThe Personal Criteria Formula Language is designed for creating formulas and isn't a full scripting or programming language, but it still has the inline IF function available to use a condition to choose between two different numeric results. IIF(C > O, C, O) would return the close if the close is above the open and the open otherwise. heather eldridge blog hiking