OPEN-SOURCE SCRIPT
已更新 ATR with Impulse Alerts

This is a very simple script which simply plots an ATR (the built-in ATR function, using RMA) and plots a cross when the previously closed bar is larger than the ATR by a given threshold. There are also alert conditions set so you can be alerted when these impulse bars show up, either up or down bars. Have fun and safe trading!
版本注释
Update: I also added a plot for the actual range of each bar since I found myself calculating it occasionally.版本注释
Reordered plots.版本注释
Several updates to the format and visibility of the indicator.版本注释
Added a minimum size setting for the impulse move bars.版本注释
Added the option to adjust the filter by another ATR multiplier rather than flat values so it works across more assets.版本注释
Added an alertcondition that captures both up and down moves so alerts can be set that don't use as many alert slots if used on multiple instruments.版本注释
Updated to v5 and added a multiplier for easily using with other indicators for SL/TP.版本注释
Updated to plot the multiplied ATR. Oops.版本注释
Minor updates; will need to rollback some of these updates at a later point. Trying to plot the numerics without visually updating it as it squashes the plots.开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。