OPEN-SOURCE SCRIPT
Cập nhật SuperTrend+

Based upon popular SuperTrend (AKA: ATR Trailing Stop) indicator with the following differences and improvements:
Details:
If the confirmation closing bars value is greater than zero (default of two bars), the trend will only reverse if the price closes outside the boundary for that number of bars (does not need to be consecutive) or if the opposite side of the bar exceeds the boundary.
The confirmation bar count will reset if the trend has resumed (opposite boundary is broken).
Confirmation examples:
- Defaults to using Volume-Adjusted WMA (VAWMA) for ATR. (Can still be configured to behave exactly like classic SuperTrend.)
- Can use SMA, EMA, WMA, VWMA, and VAWMA instead of just SMA.
- Confirmation close bars for avoiding false breaks.
Details:
If the confirmation closing bars value is greater than zero (default of two bars), the trend will only reverse if the price closes outside the boundary for that number of bars (does not need to be consecutive) or if the opposite side of the bar exceeds the boundary.
The confirmation bar count will reset if the trend has resumed (opposite boundary is broken).
Confirmation examples:
- In a down-trend, but the previous two bars close above the boundary.
- In a down-trend, but the low of the previous bar exceeds the boundary.
- In a down-trend, but the high of the previous bar exceeds the boundary when confirmation bars are set to zero.
Phát hành các Ghi chú
Updated chart.Phát hành các Ghi chú
Updated chart.Phát hành các Ghi chú
Improved thumbnail.Phát hành các Ghi chú
Allow for non-volume levels to be registered for VAWMA. Ensures charts with no volume still display what should be the same as WMA.Phát hành các Ghi chú
Added ability to use maximum deviation to clean the true-range values. Existing behavior is unchanged.A maxDeviation value of 0 (the default) produces an unfiltered ATR. Anything other than zero will filter out the ATR outliers.
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.