DataSeries GannSwingOscillator( Bars bars, bool zero );
using System; using System.Collections.Generic; using System.Text; using System.Drawing; using WealthLab; using Community.Indicators;namespace WealthLab.Strategies { public class MyStrategy : WealthScript { protected override void Execute() { GannSwingOscillator gsZero = GannSwingOscillator.Series( Bars, true ); GannSwingOscillator gsRegular = GannSwingOscillator.Series( Bars, false ); gsZero.Description = "Swings (with zero)"; gsRegular.Description = "Swings (regular version)"; HideVolume(); ChartPane gsPane1 = CreatePane( 30, true, false ); ChartPane gsPane2 = CreatePane( 30, true, false ); PlotSeries( gsPane1, gsZero, Color.Blue, LineStyle.Solid, 2 ); PlotSeries( gsPane2, gsRegular, Color.Blue, LineStyle.Solid, 2 ); } } }