Skip to content
Algo Trade Analytics Docs

request.earnings() - Pine Script Function

Requests earnings data for the specified symbol.

request.earnings(ticker, field, gaps, lookahead, ignore_invalid_symbol, currency) → series float
NameTypeDescription
tickerseries stringSymbol. Note that the symbol should be passed with a prefix. For example: “NASDAQ:AAPL” instead of “AAPL”. Using syminfo.ticker will cause an error. Use syminfo.tickerid instead.

Requested series, or n/a if there is no earnings data for the specified symbol.

//@version=6
indicator("request.earnings")
s1 = request.earnings("NASDAQ:BELFA")
plot(s1)s2 = request.earnings("NASDAQ:BELFA", earnings.actual, gaps=barmerge.gaps_on, lookahead=barmerge.lookahead_on)
plot(s2)