DataSeries AccelerationBands( Bars bars );
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() { DataSeries UB = SMA.Series( High * ( 1 + 2 * ( ( ( High-Low ) / ( ( High+Low ) / 2 ) ) * 1000 ) * 0.001 ), 20 ); DataSeries LB = SMA.Series( Low * ( 1 - 2 * ( ( ( High-Low ) / ( ( High+Low ) / 2 ) ) * 1000 ) * 0.001 ), 20 ); UB.Description = "Upper Band"; LB.Description = "Lower Band"; PlotSeries( PricePane, UB, Color.Blue, WealthLab.LineStyle.Solid, 1 ); PlotSeries( PricePane, LB, Color.Red, WealthLab.LineStyle.Solid, 1 ); } } }