Can someone please help create a label?

Richb

New member
I am looking for a simple AddLabel script that takes 200 and divides it by the R:
(The R: is derived from the High (H) - Low (L) of each bar, and is shown at the top of the screen where O: H: L: C: R: are displayed)

The calculation should be: 200 / R:

I'd like the label to show at the top left of the screen.

Anyone's help would be greatly appreciated.
 

generic

Active member
@Richb Not the way you're thinking but if you know the condition for when you want to check 200/R then you can add that condition into the script and it should be close to what you want. Another way is turning this into a lower study and have all the values plotted and you can check that way.
 

generic

Active member
@Richb This is the only way I can think of that will work.

Code:
declare lower;

def RTH_start = 0930;
def RTH_end = 1600;
def RTH = SecondsFromTime(RTH_start) >= 0 and
          SecondsTillTime(RTH_end) >=0;

plot range = if RTH then 200/(high - low) else Double.NaN;
 

rad14733

Well-known member
VIP
anyway we can add and change to any number to the upper left corner(like a label of anything)? please help
What are you looking to display...??? Our hands are somewhat tied with respect to what can be accomplished in the TOS platform... You stated "add and change to any number" but that is somewhat vague... What, exactly, do you think you want...??? And have you tried yourself or just expecting us to serve your will without knowing what you want...???
 

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.
Top