public BBandLower(DataSeries source, int period, double stdDevs, string description) public static BBandLower Series(DataSeries source, int period, double stdDevs) public static double Value(int bar, DataSeries source, int period, double stdDevs)
using System; using System.Collections.Generic; using System.Text; using System.Drawing; using WealthLab; using WealthLab.Indicators;namespace WealthLab.Strategies { public class MyStrategy : WealthScript { protected override void Execute() { PlotSeries( PricePane, BBandLower.Series( Close, 10, 1.50 ), Color.DarkBlue, LineStyle.Solid, 2 ); // Flag bars that have penetrated the lower BBand for(int bar = 10; bar < Bars.Count; bar++) { if( Bars.Low[bar] < BBandLower.Series( Close, 10, 1.50 )[bar] ) SetBarColor( bar, Color.Lime ); } } } }