OPEN-SOURCE SCRIPT
已更新 Trend Extractor

First off, I'm a huge John Ehlers admirer. Been learning a lot from him. This indicator was inspired by his Super Bandpass Filter.
The goal of this indicator, which I'm calling "Trend Extractor" for lack of a better name, is to identify trends and filter out choppy market movements, similar to the Super Bandpass Filter,... but arguably more customisable. Personally, I've had better results with this Trend Extractor.
A brief overview of how it works:
The price changes are averaged over the lookback period using the Arnaud Legoux Moving Average (ALMA), which has been chosen for its superb versatility.
For instance, with Offset 1 and Sigma 0, it behaves like a SMA, and with Offset 1.1 and Sigma 2, it behaves like a WMA. So, feel free to tweak and experiment.
The purple lines are the positive and negative root mean square (RMS) of the main line, and act as signal lines.
The higher the Smoothing, the smoother the main line, at the cost of greater lag. Default is 1, that is, none. I'd suggest going not higher than 5.
Signals are straightforward to interpret. Trending up when green, trending down when red, and ranging when gray.
Your feedback is very well appreciated. Thank you. :)
The goal of this indicator, which I'm calling "Trend Extractor" for lack of a better name, is to identify trends and filter out choppy market movements, similar to the Super Bandpass Filter,... but arguably more customisable. Personally, I've had better results with this Trend Extractor.
A brief overview of how it works:
The price changes are averaged over the lookback period using the Arnaud Legoux Moving Average (ALMA), which has been chosen for its superb versatility.
For instance, with Offset 1 and Sigma 0, it behaves like a SMA, and with Offset 1.1 and Sigma 2, it behaves like a WMA. So, feel free to tweak and experiment.
The purple lines are the positive and negative root mean square (RMS) of the main line, and act as signal lines.
The higher the Smoothing, the smoother the main line, at the cost of greater lag. Default is 1, that is, none. I'd suggest going not higher than 5.
Signals are straightforward to interpret. Trending up when green, trending down when red, and ranging when gray.
Your feedback is very well appreciated. Thank you. :)
發行說明
For those who want to get more surgical:Added an option to set a custom length for the RMS Bands (Off by default).
Added a multiplier for the RMS Bands (1.0 by default).
發行說明
Added Bar Color change option開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。