EPS & Sales

Fred6724 업데이트됨   
Hi everyone,

I just adapted a little utility script to visualise EPS % increase (quarters vs Year -1) and sales.

I used the code from @ARUN_SAXENA and modified it to fix what I saw as issues.
(Using base 3M instead of 1M +
request. earnings (syminfo.tickerid, earnings .actual, ignore_invalid_symbol=true)
instead of, "EARNINGS_PER_SHARE", "FQ")

Data will differ from MarketSmith because they use sometimes actual EPS sometimes standard, but think we can at least trust what we see in term of %

The tool is far from being perfect !

릴리즈 노트: Just modified a condition that was making the script bug on given charts
릴리즈 노트: MarketSmith tag added
릴리즈 노트: Modified:
- Displays NaN when both EPS used for calculation are negative
- Displays + when increase is positive :)
- Modified calculation system, use the closer EPS to 0 when both reported and standard EPS are negative
We are now very close to the calculation method of MarketSmith.
Sometimes number differs but results are often close when differents.
To be honest I always confirm with shared graph on Twitter.
릴리즈 노트: Now displays '#' in front of EPS growth % to indicate if an EPS for calculation is negative
릴리즈 노트: Modified some comments to help to understand what I did.
if you have any constructive suggestions, please let me know in the comments
릴리즈 노트: - You can now change colors to suit your theme
릴리즈 노트: - Removed indicators that were polluting the visual overview
릴리즈 노트: - Adjusted Original Colors
릴리즈 노트: - The Script is now directly added to the chart when added
- Removed the grid transparency
- Added the possibility to choose the position of the table
릴리즈 노트: - Added the possibility to show the gross margin
- Tried to display Yearly EPS but highly inaccurate results convinced me to only keep the code under comments in case someone one day is able to calculate manually ?
- I'm still not satisfied with the code.
- CELH one result is missing
-AEHR, this shoudn't happen but in Da, We, Mo, results differs. The problem is that we need to search previous earning with time and sometimes it defers from one stock to another.
I would love to find a way to get previous earning without using the time.
릴리즈 노트: - I have removed the colour from the table frame as it pollutes the price graph
릴리즈 노트: - Modified the code because the case where actual EPS was negative and reported EPS was positive was not taken into account.
(Now the '#' is diplayed correctly)
- Added the possibility to display ROE
- Added the possibility to show EPS used for calculation
릴리즈 노트: - Now return NaN when last EPS is negative and EPS of the previous year is positive
릴리즈 노트: - Now possible to plot EPS curve on the graph with another scale on the left.
Please tell me if you don't like this update, because it adds a left scale whether this new option is checked or not
릴리즈 노트: - I finally corrected the time base period and replace the "3M" by the function barssince. This corrected the bug on AEHR.
I complained about if few updates ago :)
릴리즈 노트: - Found that plotting EPS line on another scale was not very usefull
So I decided to replace them by Arrow on the chart showing EPS date and EPS % variation as you can see on MarketSmith graph
I have no solution to plot them at the bottom of the graph, if you know how, don't hesitate to tell me in comment
(I can't reply to personal messages for now)
릴리즈 노트: - Corrected the case in which EPS display is negative to avoid +-50%
릴리즈 노트: - Now the color of positive or negative variations also affects the color of the text under the arrows
- You can select arrow colors
- You can select the 'EPS' text color
릴리즈 노트: - You can now adjust the size of the table.
릴리즈 노트: - Corrected the case where arrow displayed the wrong balue between EPS reported or standard
오픈 소스 스크립트

이 스크립트의 오써는 참된 트레이딩뷰의 스피릿으로 이 스크립트를 오픈소스로 퍼블리쉬하여 트레이더들로 하여금 이해 및 검증할 수 있도록 하였습니다. 오써를 응원합니다! 스크립트를 무료로 쓸 수 있지만, 다른 퍼블리케이션에서 이 코드를 재사용하는 것은 하우스룰을 따릅니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.


이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.

차트에 이 스크립트를 사용하시겠습니까?