create a label that

kharbi

New member
My subscription was renewed for a second year here. Nice to be with you, so thanks everyone for your ideas and time... I need your help to create a label that I manually enter my notes and then has their info updated automatically whenever I change the name of the stock based on my watchlist.

That is, the information that I will enter for each share will appear on the chart as follows.....Example .....

-- Call/Buy - The First entry is 70% in a period of time 7 days ( yellow color )
-- Call / Buy - The Second entry is 90% in a period of time 3 days ( Purple Color )
-- call / BUY - The Third entry is 70% in a period of time 7 days ( red color )
-----------------------
-- Put / Sell - The First entry is 70% in a period of time 7 days ( yellow color )
-- Put / Sell - The Second entry is 90% in a period of time 3 days ( Purple Color )
-- Put / Sell - The Third entry is 70% in a period of time 7 days ( red color )

Sorry for my bad English -- thanks
 
Solution
My subscription was renewed for a second year here. Nice to be with you, so thanks everyone for your ideas and time... I need your help to create a label that I manually enter my notes and then has their info updated automatically whenever I change the name of the stock based on my watchlist.

That is, the information that I will enter for each share will appear on the chart as follows.....Example .....

-- Call/Buy - The First entry is 70% in a period of time 7 days ( yellow color )
-- Call / Buy - The Second entry is 90% in a period of time 3 days ( Purple Color )
-- call / BUY - The Third entry is 70% in a period of time 7 days ( red color )
-----------------------
-- Put / Sell - The First entry is 70% in a period of time 7...
My subscription was renewed for a second year here. Nice to be with you, so thanks everyone for your ideas and time... I need your help to create a label that I manually enter my notes and then has their info updated automatically whenever I change the name of the stock based on my watchlist.

That is, the information that I will enter for each share will appear on the chart as follows.....Example .....

-- Call/Buy - The First entry is 70% in a period of time 7 days ( yellow color )
-- Call / Buy - The Second entry is 90% in a period of time 3 days ( Purple Color )
-- call / BUY - The Third entry is 70% in a period of time 7 days ( red color )
-----------------------
-- Put / Sell - The First entry is 70% in a period of time 7 days ( yellow color )
-- Put / Sell - The Second entry is 90% in a period of time 3 days ( Purple Color )
-- Put / Sell - The Third entry is 70% in a period of time 7 days ( red color )

Sorry for my bad English -- thanks

here is a simple, but tedious way.
this has notes for 2 stocks. there are 6 notes for each stock.

to have notes for more stocks, copy the 17 code lines , for sym2 and change all references to sym3,
then repeat .. change to sym4,.....

Ruby:
# sym1_notes_0

input sym1 = "SPY";
addlabel((GetSymbol() == sym1), " ", color.black);
addlabel((GetSymbol() == sym1), "Call", color.white);
input sym1_call_1 = "70% 7d";
addlabel((GetSymbol() == sym1), sym1_call_1, color.yellow);
input sym1_call_2 = "90% 3d";
addlabel((GetSymbol() == sym1), sym1_call_2, color.magenta);
input sym1_call_3 = "70% 7d";
addlabel((GetSymbol() == sym1), sym1_call_3, color.red);
addlabel((GetSymbol() == sym1), " ", color.black);
addlabel((GetSymbol() == sym1), "Put", color.white);
input sym1_put_1 = "70% 7d";
addlabel((GetSymbol() == sym1), sym1_put_1, color.yellow);
input sym1_put_2 = "90% 3d";
addlabel((GetSymbol() == sym1), sym1_put_2, color.magenta);
input sym1_put_3 = "70% 7d";
addlabel((GetSymbol() == sym1), sym1_put_3, color.red);


input sym2 = "F";
addlabel((GetSymbol() == sym2), " ", color.black);
addlabel((GetSymbol() == sym2), "Call", color.white);
input sym2_call_1 = "70% 7d";
addlabel((GetSymbol() == sym2), sym2_call_1, color.yellow);
input sym2_call_2 = "90% 3d";
addlabel((GetSymbol() == sym2), sym2_call_2, color.magenta);
input sym2_call_3 = "70% 7d";
addlabel((GetSymbol() == sym2), sym2_call_3, color.red);
addlabel((GetSymbol() == sym2), " ", color.black);
addlabel((GetSymbol() == sym2), "Put", color.white);
input sym2_put_1 = "70% 7d";
addlabel((GetSymbol() == sym2), sym2_put_1, color.yellow);
input sym2_put_2 = "90% 3d";
addlabel((GetSymbol() == sym2), sym2_put_2, color.magenta);
input sym2_put_3 = "70% 7d";
addlabel((GetSymbol() == sym2), sym2_put_3, color.red);
#
 
Solution

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

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
317 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