X_STUDY® Documentation
- X_STUDY®
- Launching Charts
- Formatting Charts
- Adding Drawing Tools
- Screen And Field Descriptions
- Adding Technical Indicators
- Linking And Exporting Chart Data
- Context Menus
-
Technical Indicator Definitions
- List of Technical Indicators
- Acceleration Bands (ABANDS)
- Accumulation/Distribution (AD)
- Average Directional Movement (ADX)
- Absolute Price Oscillator (APO)
- Aroon (AR)
- Aroon Oscillator (ARO)
- Average True Range (ATR)
- Volume on the Ask (AVOL)
- Volume on the Bid and Ask (BAVOL)
- Bollinger Band (BBANDS)
- Band Width (BW)
- Bar Value Area (BVA)
- Bid Volume (BVOL)
- Commodity Channel Index (CCI)
- Chande Momentum Oscillator (CMO)
- Double Exponential Moving Average (DEMA)
- Plus DI (DI+)
- Directional Movement Indicators (DMI)
- Ichimoku (ICH)
- Fill Indicator (FILL)
- Keltner Channel (KC)
- Linear Regression (LR)
- Linear Regression Angle (LRA)
- Linear Regression Intercept (LRI)
- Linear Regression Slope (LRM)
- Max (MAX)
- Money Flow Index (MFI)
- Midpoint (MIDPNT)
- Midprice (MIDPRI)
- Min (MIN)
- MinMax (MINMAX)
- Momentum (MOM)
- Adaptive Moving Average (AMA)
- Exponential (EMA)
- Moving Average Convergence Divergence (MACD)
- Simple Moving Average (SMA)
- T3 (T3)
- Triple Exponential Moving Average (TEMA)
- Triangular Moving Average (TRIMA)
- Triple Exponential Moving Average Oscillator (TRIX)
- Weighted Moving Average (WMA)
- Normalized Average True Range (NATR)
- On Balance Volume (OBV)
- Price Channel (PC)
- PLOT (PLT)
- Percent Price Oscillator (PPO)
- Price Volume Trend (PVT)
- Rate of Change (ROC)
- Rate of Change (ROC100)
- Rate of Change (ROCP)
- Rate of Change (ROCR)
- Relative Strength Indicator (RSI)
- Parabolic Sar (SAR)
- Session Cumulative Ask (SAVOL)
- Session Cumulative Bid (SBVOL)
- Standard Deviation (STDDEV)
- Stochastic (STOCH)
- Stochastic Fast (StochF)
- Session Volume (S_VOL)
- Time Series Forecast (TSF)
- TT Cumulative Vol Delta (TT CVD)
- Ultimate Oscillator (ULTOSC)
- Volume At Price (VAP)
- Volume Delta (Vol ∆)
- Volume (VOLUME)
- Volume Weighted Average Price (VWAP)
- Williams % R (WillR)
- Welles Wilder's Smoothing Average (WWS)
- Troubleshooting And Support
Band Width (BW)
Description
The width of the bands is based on the standard deviation of the closing prices from a moving average of price. You can apply this study to any band study, such as Keltner channel.
Formula
Simplified:
Middle Band = n-period moving average
Upper Band = Middle Band + ( y * n-period standard deviation)
Lower Band = Middle Band - ( y * n-period standard deviation)
Where:
- n = number of periods
- y = factor to apply to the standard deviation value, (typical default for y = 2)
Detailed:
- Calculate the moving average. The formula is:
- Pn is the price you pay for the nth interval
- n is the number of periods you select
Subtract the moving average from each of the individual data points used in the moving average calculation. This gives you a list of deviations from the average. Square each deviation and add them all together. Divide this sum by the number of periods you selected.
Take the square root of d. This gives you the standard deviation.
Compute the bands by using the following formulas: