19. 6. 2025

5 1

平滑化ATRバンド(SATRB)

Smoothed ATR with Bands (SATRB) – Custom Indicator

その Smoothed ATR with Bands indicator combines dual ATR calculations with statistical bands to provide enhanced volatility analysis. This indicator creates a more sophisticated approach to measuring market volatility by smoothing the ATR values and adding standard deviation bands.

仕組み

The indicator calculates two separate ATR values:

  • ATR1: Used for bands calculation with its own period and smoothing
  • ATR2: The main plotted line with independent period and smoothing settings

Both ATR values are smoothed using Simple Moving Average (SMA) to reduce noise. The bands are created by adding and subtracting a multiple of the standard deviation from the smoothed ATR1 value.

パラメータ

このインジケーターは以下のパラメータを受け付けます:

  • ATR1Period (default: 14) – Period for ATR used in bands calculation
  • ATR2Period (default: 21) – Period for the plotted ATR line
  • ATR1SmoothingPeriod (default: 5) – SMA smoothing period for ATR1
  • ATR2SmoothingPeriod (default: 5) – SMA smoothing period for ATR2
  • StdDevMult (default: 1.0) – Standard deviation multiplier for bands

出力

The indicator produces three outputs:

  • UpperBand (Red) – Upper volatility band
  • LowerBand (Red) – Lower volatility band
  • ATR2Line (Blue) – Main smoothed ATR line

実装詳細

The indicator calculates ATR using the traditional method:

TrueRange = Max(High-Low, |High-PrevClose|, |Low-PrevClose|)

For the first bar, it simply uses High-Low. The ATR is then calculated as a simple average of True Range values over the specified period.

Both ATR values are smoothed using SMA, and the standard deviation is calculated from the smoothed ATR1 values to create the bands.

パラメータセット

最適化されたパラメータセットが3つ含まれています:

  1. Default: ATR1=14, ATR2=21, Smoothing=5/5, StdDev=1.0
  2. Sensitive: ATR1=10, ATR2=20, Smoothing=5/3, StdDev=2.0
  3. 保守的: ATR1=20, ATR2=30, Smoothing=10/7, StdDev=1.5

使用方法

このインジケーターは以下の用途に使用できます:

  • Identify periods of high/low volatility when ATR2 breaks above/below bands
  • Assess trend strength based on ATR2 position relative to bands
  • Spot potential breakout conditions when volatility is compressed

The dual ATR approach allows for more nuanced volatility analysis compared to single ATR indicators, while the smoothing reduces false signals common in raw ATR calculations.

 

 

インジケーターの可用性
このインジケーターは、MT4、MT5、TradeStation、MultiChartsに対応しています。.

条件分岐にカスタムブロックを使用する:
StrategyQuant X では、以下を使用して独自の条件を簡単に定義できます。 カスタムブロック. これにより、期間やステップなどのパラメータを設定して、戦略に合わせてインジケーターを微調整することができます。詳細については、以下のリソースを参照してください:

SQXへのカスタムインジケーターのインポート:
StrategyQuant Xにカスタム指標をインポートするには、こちらに記載されている手順に従ってください:
カスタムインジケーターやその他のスニペットのインポートとエクスポート

あなたは私をクロネックスとして知っている。. 私はアイヴァン・ハデックです。ここで使用されている無料のブロックを作成し、その背景にある研究について以下の場所で執筆しています: algotrading.space. 何か作りますか? 一緒に働きましょう.
1 コメント
最古の
最新 最も投票された
Anzertrades
Anzertrades
26. 1. 2026 4:45 pm

Thank you Ivan for the amazing work!