Click here to Login








Analyst Previous Rating

by Stefan Kroscen, 2454 days ago
Share |


This function utilizes the historical analyst buy/sell recommendations, downloadable from yahoo by Yahoo Historical Buy/Sell Recommendations, to provide the previous 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. 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 the rating. Use "" 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(AnalystPreviousRating("", -1, "JP Morgan"), "Past Rating", colorRed, ChartLine, StyleOwnScale);

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

Or:

Plot(AnalystPreviousRating("", 90, ""), "Past Rating", colorRed, ChartLine, StyleOwnScale);

This will plot the ratings for the current stock. 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.

If this function is of interest, you probably also will be interested in Analyst Rating (Yahoo Historical Buy/Sell Recommendations).





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




Type: Trading Indicator

Object ID: 672


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
Show All
Buy Indicator (by bug man, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 245 Notes Report an item
Consecutive Up and Down Bars - Works With Any Trading Indicator (by Caleb, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 28 Notes Report an item
TD Sequential Indicator (by Vangelis M., uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 40 Notes Report an item
Sortino Ratio of an Asset (by QuantShare, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 33 Notes Report an item
The DeMark's DeMarker indicator (by bug man, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 90 Notes Report an item
Historical Stock Market Data (by QuantShare, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 5696 Notes Report an item
IBS - Internal Bar Strength (by clonex, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 64 Notes Report an item
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 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

Optimize a trading strategy using the Sharpe ratio

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