ScrewTurn

Active Trader Strategies API Community ChartStyles Community Commissions Community Components Community Indicators Community Providers Community Visualizers Knowledge Base Misc Optimizers PosSizers Standard Indicators TASC Traders Tips TASCIndicators Tutorial Videos
RSS

Navigation







Quick Search
»
Advanced Search »

PoweredBy

Syntax

public BBandLower2(DataSeries source, int period, double stdDevs, StdDevCalculation sd, string description)
public static BBandLower2 Series(DataSeries source, int period, double stdDevs, StdDevCalculation sd)

Parameter Description

source Price series
period Indicator calculation period
stdDevs Number of standard deviations
sd Standard deviation calculation: Population or Sample

Description

See BBandLower.

This version extends the WL5's native implementation of Bollinger Bands with the ability to specify a Standard Deviation calculation method - Population (hardcoded in WL5's Bollinger Bands) or Sample.

Example

using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using WealthLab;
using WealthLab.Indicators;
using Community.Indicators;

namespace WealthLab.Strategies { public class MyStrategy : WealthScript { protected override void Execute() { PlotSeries( PricePane, BBandLower2.Series( Close, 20, 2.00, StdDevCalculation.Sample ), Color.DarkBlue, LineStyle.Solid, 2 );

// Flag bars that have penetrated the lower BBand calculated using the Sample method

for(int bar = 20; bar < Bars.Count; bar++) { if( Bars.Low[bar] < BBandLower2.Series( Close, 20, 2.0, StdDevCalculation.Sample )[bar] ) SetBarColor( bar, Color.Lime ); } } } }

Important Disclaimer: The information provided by Wealth-Lab is strictly for informational purposes and is not to be construed as advice or solicitation to buy or sell any security.  The owner of Wealth-Lab.com assumes no liability resulting from the use of the material contained herein for investment purposes.

Used under license from FMR Corp. Copyright 2008 FMR Corp. All rights reserved.


ScrewTurn Wiki version 3.0.2.509. Some of the icons created by FamFamFam.