OPEN-SOURCE SCRIPT
已更新 Trend Lines, Supports and Resistances

█ OVERVIEW
This is a simple script that draws trend lines, supports and resistances based on the highs and lows of pivots and is developed solely for practice purposes while learning the Pine Script language.
█ FEATURES:
█ DISCLAIMER:
Trading is risky and most of the day traders lose money eventually. This indicator is only for educational purposes and should not be construed as financial advice. Past performances does not guarantee future results.
This is a simple script that draws trend lines, supports and resistances based on the highs and lows of pivots and is developed solely for practice purposes while learning the Pine Script language.
█ FEATURES:
- Ability to change pivot length and mark pivots on chart.
- Ability to change amount of pivot points that used to generate trend lines or support and resistances.
- Ability to set exception for last "n" bars for breaks.
- Ability to set exception up to "n" times for breaks.
- Ability to see broken trend lines as ghosts.
- Ability to set alarms for breaks.
- Ability to change colors and line widths.
- And many more...
█ DISCLAIMER:
Trading is risky and most of the day traders lose money eventually. This indicator is only for educational purposes and should not be construed as financial advice. Past performances does not guarantee future results.
版本注释
Fixed bugs at alert texts.版本注释
Added options for alert frequencies.- "Once Per Bar": The first function call during the bar triggers the alert.
- "Once Per Bar Close": The function call triggers the alert only when it occurs during the last script iteration of the real-time bar, when it closes.
- "All": All function calls trigger the alert.
版本注释
Added alerts for new pivot highs and lows which may be possible supports and resistances.开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。