Sigma Bands - indicator for MetaTrader 4




Sigma Bands - indicator for MetaTrader 4


In essence, this is an advanced version of the Bollinger Bands

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. As a result, 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:

  • Close price
  • Open price
  • The maximum price for the period (High)
  • The minimum price for the period (Low)
  • Median price (high + low)/2,
  • Typical price (high + low + close)/3
  • Weighted close price (high + low + close + close)/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, for example, the RSI, TVI or others.

Recommendations:

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

Settings:

int MAPeriod = 1; // MA Period
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 parameter.


Download Sigma Bands - indicator for MetaTrader 4




Related News




Latest News
U.S. women's veterans praise new era of Andonovski
08.03.2020 06:07
By Amy Tennery (Reuters) - Little more than four months on the job, U.S. women's soccer head coach Vlatko Andonovski is earning high praise from team veterans, as the squad looks to build off the momentum of its fourth World Cup win and shake off the demons of an early exit at Rio 2016. Andonovski, who took over in late October from longtime
Read more
Boca pip River to Argentine title with late Tevez screamer
08.03.2020 05:07
BUENOS AIRES (Reuters) - A dramatic late goal from Carlos Tevez gave Boca Juniors the Argentine league title on Saturday, as the Buenos Aires club overcame Gimnasia 1-0 to pip their arch rivals River Plate on an breathtaking last day of the season. River led the Superliga from Boca by a point going into their final round of games and could have
Read more
Boca pip River to Argentine title with late Tevez screamer
08.03.2020 05:04
BUENOS AIRES (Reuters) - A dramatic late goal from Carlos Tevez gave Boca Juniors the Argentine league title on Saturday, as the Buenos Aires club overcame Gimnasia 1-0 to pip their arch rivals River Plate on an breathtaking last day of the season. River led the Superliga from Boca by a point going into their final round of games and could have
Read more
Japan's 7-Eleven worker infected with coronavirus, another case likely caused meningitis
08.03.2020 04:06
TOKYO (Reuters) - A worker at Japan's 7-Eleven convenience store chain in Yamanashi prefecture, west of Tokyo, has contracted the new coronavirus, the company said on Sunday. 7-Eleven, a unit of Japanese retail group Seven & i Holdings said it temporarily closed the store for cleaning and disinfection after the case was confirmed on Saturday
Read more
U.S., Japan women's soccer teams keep focus on games as coronavirus fears swirl
08.03.2020 04:03
By Amy Tennery Harrison, NEW JERSEY (Reuters) - The U.S. and Japan women's national soccer teams said on Saturday they were laser-focused on preparing for the upcoming Olympics, even as a global coronavirus outbreak threatens the postponement or cancellation of the Tokyo Games. The two teams are expected to compete in the second of three
Read more