Thinkscript Get Stock Desciption - Would there be a way to turn an index into a basic label to place on my chart? Just wondering if possible so it can be a small reference point on my charts. In a script for a custom quote displayed in the option chain, i'm trying to get the underlying's current (last) price. However, this seems to return different values. At its core, thinkscript is a programming language built into the thinkorswim trading platform. I'm trying to write thinkscript code for a %b indicator that is based on the close of the vix. The indicator is fairly similar to the bollingerpercentb indicator given by tos, but i. Returns the underlying symbol for the current option. Example addlabel(yes, getsymbolpart() + is an option for + getunderlyingsymbol()); This script adds a chart label. No, it's not possible to add the description (e. g. , company name) on the chart. You can add the company logo to charts in chart settings on the general tab, but it's not available for all stocks. I want to add a label to a chart that automatically displays the company of the selected stock. Or more generally, is there a function that returns the. Everywhere threads this forum this thread If you already know how to create a script but are unsure what function or constant to use, you can find descriptions of all the thinkscript® building blocks: Description returns the currently selected symbol. When used on a futures chart, getsymbol() returns the corresponding futures symbol with a namespace appended. Returns the price type selected for the current symbol: Last, bid, ask, or mark.
Would there be a way to turn an index into a basic label to place on my chart? Just wondering if possible so it can be a small reference point on my charts. In a script for a custom quote displayed in the option chain, i'm trying to get the underlying's current (last) price. However, this seems to return different values. At its core, thinkscript is a programming language built into the thinkorswim trading platform.