In this article, you will learn to get the current date and time in thinkScript. The following functions will be utilized throughout the post. Furthermore, because of thinkScript’s versatility, you …
Category: Functions
How to Use thinkScript BarNumber() Function
In thinkScript, the BarNumber() function retrieves the current bar number. BarNumber Code Examples 1. List of bars. The chart below has 252 bars. This code will start the count from …
thinkScript AddCloud Function (With Examples)
The AddCloud function in thinkScript is used to add a semitransparent cloud on your ThinkorSwim chart. The cloud is plotted by connecting the highest value and the lowest value of …
thinkScript EntryPrice Function (With Examples)
The EntryPrice() function in thinkScript gives you the price of your entry order. If you have multiple entries in the same direction, the function returns the average price for all …
thinkScript Highest and Lowest Functions (With Examples)
Did you know ThinkorSwim has built-in functions for finding the highest or lowest value of some variable or function? It’s true! In this guide, you will learn how to utilize …
thinkScript Fold Function (With Examples)
The Fold function in thinkScript can be used to iterate over a list of data points and perform a calculation on each point. thinkScript Fold Syntax def <result> = fold …