OPEN-SOURCE SCRIPT
Cập nhật Market Regime - Ranging or Trending

This is a Trend Analysis oscillator which tracks the overall trend strength.
It shows clearly whether the market is in a consolidation range or is trending.
The oscillator is "directionless", i.e. intentionally doesn't show whether it's an uptrend or downtrend - just the strength on a 0-100 scale.
** Detection Methods **
Select between one of three detection methods:
The background colour is set according to the plot value:
** How to Trade **
Use as additional confirmation on the signals provided by other indicators or strategies. When the other indicator has historically shown Buy or Sell levels/signals, note the market regime on that bar and how well the trade performed.
It shows clearly whether the market is in a consolidation range or is trending.
The oscillator is "directionless", i.e. intentionally doesn't show whether it's an uptrend or downtrend - just the strength on a 0-100 scale.
** Detection Methods **
Select between one of three detection methods:
- Average Directional Movement Index (ADX)
- Choppiness Index (Fractal)
- Efficiency Ratio
The background colour is set according to the plot value:
- When the market is ranging, the background doesn't change.
- When the market is trending (up or down), the background begins to change, with the colour turning progressively more opaque the stronger the trend.
** How to Trade **
Use as additional confirmation on the signals provided by other indicators or strategies. When the other indicator has historically shown Buy or Sell levels/signals, note the market regime on that bar and how well the trade performed.
Phát hành các Ghi chú
Fixed the Choppiness Index plot.Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.