Depending on the indicator you’re using in ThinkorSwim, you can customize the look and feel of it. Using SetPaintingStrategy in thinkScript, the plot can be changed from a line to …
Category: Constants
How to Use thinkScript AggregationPeriod in ThinkorSwim
The AggregationPeriod constant in thinkScript returns the chart’s time frame that the script calculates on. For example, the four days chart would be represented by AggregationPeriod.FOUR_DAYS. Similarly, a 5-minute chart …
How to Use Double.NaN in thinkScript (With Examples)
You might have heard of the term NaN. It is short for “not a number,” and it means that a value is undefined. In thinkScript, the Double.NaN syntax “returns the …
thinkScript Color: Basic Colors for Indicators and Strategies
thinkScript color variables are an important part of creating custom studies. The colors associated with output functions can add visual appeal to your indicator. Furthermore, they can also aid in …
thinkScript PriceType (with Examples)
In thinkScript, PriceType is a constant that displays selections of price quotations. Use it with fundamental functions like volume, implied volatility (IV), and open interest. There are 4 different values …