Click here to Login








Analyst Rating

by Stefan Kroscen, 5180 days ago
Share |


This function utilizes the historical analyst buy/sell recommendations, downloadable from yahoo by Yahoo Historical Buy/Sell Recommendations, to provide the current numeric rating for a stock. Ratings provided by various firms to a standard numeric score between 5 and 1, where 5 is a strong buy and 1 is a strong sell. 0 is returned when no rating is applicable.

Note that the mapping from analyst text to a numeric rating is mine, not theirs, and not very scientific. If you have suggestions on how to improve the mapping, I would be happy to incorporate them.

The function takes three parameters. The first is the symbol you would like to see the ratings for. To specify the current symbol, just enter "". The second parameter is the effective range in bars for a rating. Once a rating is encountered, the function will continue to return that rating until it either encounters a new rating, or the effective range in bars is exceeded. If the effective range in bars is exceeded, it will return 0. Specify -1 to bypass the effective range logic and have the function always provide the most recent rating value. The third parameter is the rating firm for which you wish to see ratings. Pass "" to use all rating firms.

If the function encounters multiple ratings on the same day, it will average them together and provide the combined value.

To chart the function, you can use a formula like:

Plot(AnalystRating("",-1,""), 'Rating',colorRed|55|colorRed|64|0, ChartBar, StyleOwnScale);

This will plot the ratings for the current symbol. The last rating encountered will be plotted until a newer rating is encountered.

Or:

Plot(AnalystRating("IBM",90,""), 'Rating',colorRed|55|colorRed|64|0, ChartBar, StyleOwnScale);

This will plot the ratings for IBM. After plotting a rating for a max of 90 days, it will return 0 until a new rating is encountered. This could be useful in a trading function if you believe the analyst recommendation is only predictive for a period of 90 days.

If you find a useful way to use this data, I would love to hear about it! If you have suggestions for improving the function I would love to hear about that as well.








You have to log in to bookmark this object
What is this?
Additional Information




Type: Trading Indicator

Object ID: 681


Country:
United States

Market: Stock Market

Style:
Fundamental Analysis

Reviews
You must log in first

Join now
and get instant access for free to the trading software, the Sharing server and the Social network website.
Click here


Related objects

Empty

Number of reviews
Click to add a review
Average rate
Click to rate this item
Number of times this object was downloaded
Number of rates the current object received
Report an object
if you can't run it for example or if it contains errors
Click to report this object

Technical Analysis


Fundamental Analysis



Random Blog Posts

How to Create Custom Metrics for Your Trading Positions

How to search for a trading item

How to create market indicators using the composite function - Part 3

How to create market indicators using the composite function - Part 2

Create a Pivot Table that displays the Relative Strength Index - RSI

6 Stock Trading Items Related to the New York Stock Exchange - NYSE

Pivot Tables in QuantShare Trading Software

How to create market indicators using the composite function - Part 1

Show All

Number of reviews
Click to add a review
Average rate
Click to rate this item
Number of times this object was downloaded
Number of rates the current object received
Report an object
if you can't run it for example or if it contains errors
Click to report this object






QuantShare
Product
QuantShare
Features
Create an account
Affiliate Program
Support
Contact Us
Trading Forum
How-to Lessons
Manual
Company
About Us
Privacy
Terms of Use

Copyright © 2024 QuantShare.com
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Google+
Follow us on Google+
RSS Trading Items



Trading financial instruments, including foreign exchange on margin, carries a high level of risk and is not suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in financial instruments or foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with trading and seek advice from an independent financial advisor if you have any doubts.