How to add label with Stock Description, Sector, Sub-sector

ScriptThinker

New member
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 company name for a given symbol?
 
@ScriptThinker The company name is already displayed to the right of the symbol entry box in the upper left of every chart... It can also be displayed with the company logo by going to Chart Settings > General and checking the Show Symbol Logo box... Do you need more than that...??? There is no function that grabs the company name for display in a label on the chart...
 

Join useThinkScript to post your question to a community of 21,000+ developers and traders.

I do want more than that...When I chart an option, I create a lower chart of the price of the underlying stock. I currently have a label that displays the symbol for the underlying stock, but it would also be helpful to display the actual company name.
 
Thanks @rad14733!

Trying to make my daily routine more efficient and less prone to error. I click through my watchlists quickly before the market opens. If I could display the company name on the chart it would be one less thing to slow me down and stumble over. For example, is PLG the symbol for the EV-related stock Plug Power, or is it Platinum Group Metals? I am watching both!
 
Thanks @rad14733!

Trying to make my daily routine more efficient and less prone to error. I click through my watchlists quickly before the market opens. If I could display the company name on the chart it would be one less thing to slow me down and stumble over. For example, is PLG the symbol for the EV-related stock Plug Power, or is it Platinum Group Metals? I am watching both!
you could make label and manually add all the companies.

if getsymbol==xyx then "company" else if getsymbol==zyx then "company" else ..... and keep going on until all the companies you want are added.
 
I figured out how to add the company name and when I chart options.
If the underlying symbol is one of those listed, then the company name is added to the chart, plus the note on why I added it to my watch list.

Code:
AddLabel(GetUnderlyingSymbol()=="PLUG","Plug Power - earnings");
AddLabel(GetUnderlyingSymbol()=="PLG","Platinum Metal Group - impvol");

No case statements or if,else required.
 
Can anyone write me a script that can be used to display your name/logo on the charts? For example, I share a lot of screenshots of my charts and I'm trying to display my name on it but I don't want to do it on Photoshop every time. I want something like this

2021-02-17-0-45-02.png
 
@x718style I am not aware of any way of extrapolating the company name from the data stream other than displaying the logo on charts by going to Chart Settings > General > Show Symbol Logo... In watchlists we have the Description column but we can't access those contents via Thinkscript...
 
Hi need help inserting Stock Description, Sector, Industry, Sub-Industry onto charts that would appear as a logo but in the middle of the charts faded into the background where I can customized fading and color
If not possible I would by happy with an upper left label (s) stacked 1 under another (or side by side)
Appreciate all the help I get

could the label have a copy column function?

Thanks Paul
 
Last edited by a moderator:

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
230 Online
Create Post

Similar threads

Similar threads

The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
  • Exclusive indicators
  • Proven strategies & setups
  • Private Discord community
  • ‘Buy The Dip’ signal alerts
  • Exclusive members-only content
  • Add-ons and resources
  • 1 full year of unlimited support

Frequently Asked Questions

What is useThinkScript?

useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.

How do I get started?

We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.

If you are new, or just looking for guidance, here are some helpful links to get you started.

What are the benefits of VIP Membership?
VIP members get exclusive access to these proven and tested premium indicators: Buy the Dip, Advanced Market Moves 2.0, Take Profit, and Volatility Trading Range. In addition, VIP members get access to over 50 VIP-only custom indicators, add-ons, and strategies, private VIP-only forums, private Discord channel to discuss trades and strategies in real-time, customer support, trade alerts, and much more. Learn all about VIP membership here.
How can I access the premium indicators?
To access the premium indicators, which are plug and play ready, sign up for VIP membership here.
Back
Top