OPEN-SOURCE SCRIPT
已更新 ADX | DMI Trend Strategy

This strategy takes the ADX Indicator I wrote and applies it to a strategy for back testing purposes.
I've also applied a date filter so you can back test specific date ranges and a moving average filter so you can choose whether to filter your longs/shorts based on a moving average.
I've also applied a date filter so you can back test specific date ranges and a moving average filter so you can choose whether to filter your longs/shorts based on a moving average.
發行說明
Added a checkbox option to disable short trades if a long-only strategy is desired and cleaned up the code a bit.發行說明
Added the ability to filter the signals based on volume compared to average volume. The theory is that you'd only take trades that had abnormal volume. You can turn this on or off with a checkbox to see the results.發行說明
Added the ability to select different kinds of volume filtering. The current bar's volume must be greater than1) Average Volume * some user defined multiplier (use this if you want to track above average volume as a filter)
2) Manually input level for volume (use this if you want to wait for a specific volume threshold)
3) The greater of the manual level AND the average volume * multiplier
發行說明
Added the ability to set a protective stop based on a trailing ATR.發行說明
For manual volume input, set increments to 1000.發行說明
Added alerts for Long, Short, and Sell/Cover (when ADX starts turning down).發行說明
Updates to add parity to the ADX Study in terms of adding separate lookback periods for entry and exit for the slope of the ADX.Added Parabolic SAR as an alternate exit signal. If you select both ATR and SAR as an exit option, it will pick whichever comes first.
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。