OPEN-SOURCE SCRIPT
מעודכן

Stock Earnings Viewer for Pine Screener

139
The script, titled "Stock Earnings Viewer with Surprise", fetches actual and estimated earnings, calculates absolute and percent surprise values, and presents them for analysis. It is intended to use in Pine Screener, as on chart it is redundant.

How to Apply to Pine Screener
  1. Favorite this script
  2. Open pine screener tradingview.com/pine-screener/
  3. Select "Stock Earnings Viewer with Surprise" in "Choose indicator"
  4. Click "Scan"


Data
  • Actual Earnings: The reported earnings per share (EPS) for the stock, sourced via request.earnings().
  • Estimated Earnings: Analyst-predicted EPS, accessed with field=earnings.estimate.
  • Absolute Surprise: The difference between actual and estimated earnings (e.g., actual 1.2 - estimated 1.0 = 0.2).
  • Percent Surprise (%): The absolute surprise as a percentage of estimated earnings (e.g., (0.2 / 1.0) * 100 = 20%). Note: This may return NaN or infinity if estimated earnings are zero, due to division by zero.


Practical Use
This screener script allows users to filter stocks based on earnings metrics. For example, you could screen for stocks where Percent Surprise > 15 to find companies exceeding analyst expectations significantly, or use Absolute Surprise < -0.5 to identify underperformers.
הערות שחרור
Added screener screenshot to the chart
הערות שחרור
Updated screener screenshot on the chart

כתב ויתור

המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.