OPEN-SOURCE SCRIPT

BERLIN Range Index | Panel version

已更新
The original problem: The choppiness index is great at finding ranging markets, but it is sometimes very slow, which means most of the time it only catches the end of a trend.

This indicator tries to solve this. It uses the choppiness index and filters it using a factor that is based on the standard deviation of the ATR.

The ATR based filter is calculated by first calculating the running standard deviation of the ATR, and then looking at that in relation to its recent low to find a filtering factor to use on the choppiness index. This makes the choppiness index more reactive to trends, but also slightly more likely to missidentify ranges.

This is the panel version of the indicator. It plots the index and min/max values, as well as background colors to tell you when it thinks the market is ranging or trending.

Yellow = Trending
Transparent gray = Ranging
版本注释
- Version 1.1 -
  • Added option to use normalized true range in the ATR filter. This is now the default.
  • Changed color for exhausted trends from transparent gray to solid orange.
  • Changed color for weakening exhausted trend from transparent yellow to red.
版本注释
- Version 1.1b -
  • Fixed bug where the indicator accidentally was used overlay mode.
Average True Range (ATR)CHOPChoppiness Index (CHOP)choppyOscillatorsrangeVolatility

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?

免责声明