The number of analysts currently rating the company a buy.
syminfo.recommendations_buy is a series int counting analysts with a plain buy rating, not a strong buy. Add syminfo.recommendations_buy_strong for all bullish analysts.
The value is na when the symbol has no analyst coverage.
Type
series int
Remarks
- Divide by
syminfo.recommendations_totalto get a share instead of a count. Guard against a total of 0 or na. - On Sidechair: not supported yet; a script that reads
syminfo.recommendations_buystops with the error "syminfo.recommendations_buy" isn't supported yet.
Example
//@version=6
indicator("Bullish share", format = format.percent)
bulls = syminfo.recommendations_buy + syminfo.recommendations_buy_strong
share = syminfo.recommendations_total > 0 ? bulls / syminfo.recommendations_total * 100 : na
plot(share, "Bullish %", color.green)See also
syminfo.recommendations_buy_strongsyminfo.recommendations_totalsyminfo.recommendations_holdsyminfo.recommendations_sell
Not on Sidechair yet