OPEN-SOURCE SCRIPT
已更新 Koryu Magic Bands

發行說明
This indicator searchs for the lowest/highest bar in a given period. Then starts to calculate the average value since the low/high.For example: if the price reaches a new 20 day low and then trades above it, the day of the low will be the ma1, the day after its the ma2, ... up to the maximum lookback length.
With this indicator we know the average low/high price since the last low/high, we do not force a moving average length on the chart but let the chart decided which length to use (days since the low/high).
We assume that a new trend starts with a low/high, so we dont want to have bars in the moving average which are not part of the trend.
Play around with it, I set the default lookback length to 20. So it looks for the 20 bar low/high but you might use other parameters.
What we want to see in the charts are green trends with shortlived countertrends, we want to buy near the average low price in a bull market and sell near the average high price in a bear market, so we have the lowest risk.
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。