OPEN-SOURCE SCRIPT
已更新 ATR Volatility Bars 1.0

This script will be featured in upcoming video ideas about catching liquidations spikes in cryptocurrencies.
The script measures the unique size of each bar compared to the Average True Range (ATR) of the evaluation period. The evaluation period can be set in the inputs. The desired benchmark for what will be highlighted is also set in the inputs as a percentage. The default settings are to evaluate the last 26 bars for ATR and highlight bars that are 300% or larger than ATR.
When a bar meets the criteria of the indicator it will show a label and highlight the bar accordingly. The user may select the indicator to only show Buy or Sell opportunities. The indicator has alert functionality.
The script measures the unique size of each bar compared to the Average True Range (ATR) of the evaluation period. The evaluation period can be set in the inputs. The desired benchmark for what will be highlighted is also set in the inputs as a percentage. The default settings are to evaluate the last 26 bars for ATR and highlight bars that are 300% or larger than ATR.
When a bar meets the criteria of the indicator it will show a label and highlight the bar accordingly. The user may select the indicator to only show Buy or Sell opportunities. The indicator has alert functionality.
發行說明
Added Label for Bar Percent Change發行說明
1/7/2021: Added Trading Functionality- Added plotted cross in middle of bar as Entry
- Added potential stop and target levels set by user input
After publishing the script initially as an indicator and alert source it remained incomplete without a way to structure a trade and a strategy around it. To add that functionality I am releasing this update.
The indicator now draws 3 additional items when the conditions to fire are met. The "Middle Bar" calculates the true 50% of the Volatile Bar. This is designed to be used as a potential entry point once price retraces beyond the level.
- The "Middle Bar" calculates the true 50% of the Volatile Bar. This is designed to be used as a potential entry point once price retraces beyond the level.
- The "Trade Stop" calculates a potential stop loss level just outside of the Volatile Bar. This can be used to define risk.
- The "Trade Target" calculates a potential take profit level that is a factor of the risk as defined by the Trade Stop.
There will be a supplemental video shortly to explain the process of creating this update and how to use it coming soon.
P.S.: I'm a total hack with code so if nested if's trigger you and you have suggestions to make things all nice and pretty feel free to DM me :D
發行說明
Added user defined colors for labels發行說明
Fixed a bug with Middle Bar displaying on non-valid bars.開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
"Be to others the person you needed to meet 10 years ago"
Discord Trading Community: discord.gg/eDfhKvS5AC
Youtube: youtube.com/c/NoroksNotepad
Twitter: twitter.com/noroktrade
Discord Trading Community: discord.gg/eDfhKvS5AC
Youtube: youtube.com/c/NoroksNotepad
Twitter: twitter.com/noroktrade
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
"Be to others the person you needed to meet 10 years ago"
Discord Trading Community: discord.gg/eDfhKvS5AC
Youtube: youtube.com/c/NoroksNotepad
Twitter: twitter.com/noroktrade
Discord Trading Community: discord.gg/eDfhKvS5AC
Youtube: youtube.com/c/NoroksNotepad
Twitter: twitter.com/noroktrade
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。