<study>
 <description>Полосы Боллинджера</description>
 <description_en>Bollinger Bands</description_en>
 <code>av = Average(Close, length);
m = 0;
for (i = 0; i &lt; length; i++)
{
   m += Math.pow(Close.at(i) - av, 2);
}

stdDev = Math.sqrt(m / length);

Plot(av, "MidLine");
Plot(av + K*stdDev, "UpperBand");
Plot(av - K*stdDev, "LowerBand");
</code>
 <declaration></declaration>
 <parameter value="2" name="K"/>
 <parameter value="20" name="length"/>
 <style lineWidth="1" view="0" name="LowerBand" color="#00aaff"/>
 <style lineWidth="1" view="0" name="MidLine" color="#d6d6a1"/>
 <style lineWidth="1" view="0" name="UpperBand" color="#aa00ff"/>
 <axis>1</axis>
 <changeScaleRange>1</changeScaleRange>
</study>
