Based upon popular SuperTrend (AKA: ATR Trailing Stop) indicator with the following differences and improvements:

  • 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.

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.

發布通知: Updated chart.
發布通知: Updated chart.
發布通知: Improved thumbnail.
發布通知: Allow for non-volume levels to be registered for VAWMA. Ensures charts with no volume still display what should be the same as WMA.
發布通知: 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.

本著真正的TradingView精神,該腳本的作者將其開源發布,以便交易者可以理解和驗證它。為作者喝彩吧!您可以免費使用它,但在出版物中重複使用此代碼受網站規則的約束。 您可以收藏它以在圖表上使用。