koryu

Koryu Magic Bands

koryu 已更新   
版本注释:
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提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?