public static Vidya Series(DataSeries source, int stdDevPeriod, double alpha) public Vidya(DataSeries source, int stdDevPeriod, double alpha, string description) public Vidya(DataSeries source, DataSeries volatilityIndex, double alpha, string description)
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() { // Vidya bands DataSeries VidyaStdDev = Vidya.Series( Close, 2, 0.1 ); PlotSeries( PricePane, VidyaStdDev, Color.Red, WealthLab.LineStyle.Dashed, 1 ); DrawLabel( PricePane, "Vidya Bands at 3%", Color.Red ); PlotSeriesDualFillBand( PricePane, VidyaStdDev*1.03, VidyaStdDev*0.97, Color.FromArgb(15,255,0,0), Color.Empty, Color.Empty, LineStyle.Solid, 1 ); } } }