688
0
SHARE

A Bollinger band variant that offers more flexibility and accuracy.

Specifically, in this indicator I have studied the movement of the price for a certain number of bars (BarsCount = 200). For this purpose, the MA with a period of 1 was used (MAPeriod). For that matter, any MA and any number of bars could have been used for analysis. 結果是, two channels will be plotted. One displays the limits where the price ranges 68% of the time for the specified number of bars. The other shows the limits where the price ranges 95% of the time for the specified number of bars.

The Sigma Bands with the default parameters is almost identical to the Bollinger Bands with the same period, equal to BarsCount. But this version has the ability to plot Bollinger Bands not only with any period by changing the BarsCount,but also to plot is based on the selected MA type with any period.

Supported MA types:

• Simple MA
• Exponential MA
• Smoothed MA
• Linear-weighted MA

Prices that can be used for plotting the channel:

• 關閉價格
• 開盤價
• The maximum price for the period (高)
• The minimum price for the period (低)
• Median price (高 + 低)/2,
• 典型的價格 (高 + 低 + 關)/3
• Weighted close price (高 + 低 + 關 + 關)/4

All these settings are not available for the standard Bollinger Bands.

By learning how to determine the limits where any indicator or price ranges most of the time, I eneded up with making an example of calculating the standard deviation and Sigma implemented as this indicator. Its formulas can now be adapted for any indicator you like. Sometimes, interesting results can be obtained for indicators that are plotted in separate windows, 例如, the RSI, TVI or others.

The difference between conventional Bollinger Bands and Sigma Bands can be seen only when using non-default settings and MAPeriod > 1.

int MAPeriod = 1; // MA期

int BarsCount = 200; // Bars for calculating the deviation (Sigma)

int TypeBandsMA = 0; // Type of MA for Bands

int TypePriceMA = 0; // Applied price of MA

color MAColor = clrNONE; // MA color

The analyzed MA is colorless by default. If you want to see it, set a color in the MAColor 參數.

MT4指標 – 下載說明

How to install Sigma Bands – 為MetaTrader 4.mq4指標?

• Copy Sigma Bands – 指標為MetaTrader 4.mq4你的MetaTrader的目錄 / 專家 / 指標 /
• 要測試你的指標選擇圖表及時限
• Right click on Sigma Bands – 為MetaTrader 4.mq4指標
• 附加到圖表
• 修改設置或按確定
• Indicator Sigma Bands – 為MetaTrader 4.mq4指標可以用圖表