OPEN-SOURCE SCRIPT

PE Band

已更新
The PE Band shows the highest and lowest P/E in the previous period with TTM EPS. If the current P/E is lower than the minimum P/E, it is considered cheap. In other words, higher than the maximum P/E is considered expensive.

PE Band consists of 2 lines.
- Firstly, the historical P/E value in "green" (if TTM EPS is positive) or "red" (if TTM EPS is negative) states will change according to the latest high or low price of TTM EPS, such as: :

After the second quarter of 2023 (end of June), how do prices from 1 July – 30 September reflect net profits? The program will get the highest and lowest prices during that time.

After the 3rd quarter of 2023 (end of September), how do prices from 1 Oct. - 31 Dec. reflect net profits? The program will get the highest and lowest prices during that time.

- Second, the blue line is the closing price divided by TTM EPS, which shows the current P/E.
版本注释
1. Change from "EARNINGS_PER_SHARE" to "EARNINGS_PER_SHARE_DILUTED"
2. Add more lines of 75% P/E and 25% P/E
版本注释
to solve Error on bar 5000 as comment
- Add attribute "calc_bars_count = 5000" in indicator
Bands and ChannelsFundamental Analysisstatistics

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?

免责声明