Sidechair

syminfo.recommendations_hold

Browse the reference

The number of analysts currently rating the company a hold, or neutral.

Try it in the editor

syminfo.recommendations_hold is a series int for the middle rating. A large hold count against few buys and sells means analysts see no edge either way.

The value is na when the symbol has no analyst coverage.

Type

series int

Remarks

  • Compare it with the buy and sell counts rather than reading it alone.
  • On Sidechair: not supported yet; a script that reads syminfo.recommendations_hold stops with the error "syminfo.recommendations_hold" isn't supported yet.

Example

Pine ScriptRating splitOpen in editor
//@version=6
indicator("Buy, hold, sell")
plot(syminfo.recommendations_buy + syminfo.recommendations_buy_strong, "Buy", color.green, style = plot.style_stepline)
plot(syminfo.recommendations_hold, "Hold", color.gray, style = plot.style_stepline)
plot(syminfo.recommendations_sell + syminfo.recommendations_sell_strong, "Sell", color.red, style = plot.style_stepline)

See also

Not on Sidechair yet