create stock overvalue/undervalue

shih90

New member
VIP
I need some help PLEASE, I try create stock overvalue/undervalue, I know some details but I don't know how to make program, just some details below:

example ticker symbol xxx

* current market price. 72.11
*P/E ttm. 15.34
*EPS ttm. 4.70
  • dividends ttm. 2.84
  • book value. 20.62
*current price needed for good value 56.45
* is the stock overvalued or undervalued ? OVERVALUED

After earning day that can tell you stock overvalued/ undervalued.
Thank you so much for your helping this matter.
 
Solution
Some of the functions to do this (though you don't really explain how you're calculating under / over valued in your message) are available in ToS. For example, the Learning Center website has example code that calculates bote P/E and EPS:
Code:
declare lower;
def AE = if IsNaN(GetActualEarnings()) then 0 else GetActualEarnings();
plot EPS_TTM = Sum(AE, 252);
def pe = close / EPS_TTM;
AddLabel(yes, "P/E Ratio: " + pe);
form the page at:
https://tlc.thinkorswim.com/center/...Functions/Corporate-Actions/GetActualEarnings
and similar code for dividends on this page:
https://tlc.thinkorswim.com/center/reference/thinkScript/Functions/Corporate-Actions/GetDividend

Book Value can be accessed this way...
Some of the functions to do this (though you don't really explain how you're calculating under / over valued in your message) are available in ToS. For example, the Learning Center website has example code that calculates bote P/E and EPS:
Code:
declare lower;
def AE = if IsNaN(GetActualEarnings()) then 0 else GetActualEarnings();
plot EPS_TTM = Sum(AE, 252);
def pe = close / EPS_TTM;
AddLabel(yes, "P/E Ratio: " + pe);
form the page at:
https://tlc.thinkorswim.com/center/...Functions/Corporate-Actions/GetActualEarnings
and similar code for dividends on this page:
https://tlc.thinkorswim.com/center/reference/thinkScript/Functions/Corporate-Actions/GetDividend

Book Value can be accessed this way:
https://tlc.thinkorswim.com/center/...unctions/Stock-Fundamentals/BookValuePerShare

Perhaps this helps, perhaps gets just tantalizingly close enough to be aggravating.

best of luck,
mashume
 
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
485 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