Sidechair

syminfo.recommendations_buy

Browse the reference

The number of analysts currently rating the company a buy.

Try it in the editor

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_total to 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_buy stops with the error "syminfo.recommendations_buy" isn't supported yet.

Example

Pine ScriptShare of bullish analystsOpen in editor
//@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

Not on Sidechair yet