SeriesIsAbove(DataSeries ds1, DataSeries ds2, int period) SeriesIsAbove(DataSeries ds1, DataSeries ds2, int period, string description)
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() { HideVolume(); SMA ds1 = SMA.Series( Close, 20 ); SMA ds2 = SMA.Series( Close, 50 ); PlotSeries( PricePane, ds1, Color.Blue, LineStyle.Solid, 1 ); PlotSeries( PricePane, ds2, Color.Red, LineStyle.Solid, 1 ); SeriesIsAbove sa = SeriesIsAbove.Series( ds1, ds2, 1); SeriesIsBelow sb = SeriesIsBelow.Series( ds1, ds2, 1); ChartPane psa = CreatePane( 30, true, true ); ChartPane psb = CreatePane( 30, false, true ); PlotSeries( psa, sa, Color.Blue, LineStyle.Histogram, 2 ); PlotSeries( psb, sb, Color.Red, LineStyle.Histogram, 2 ); } } }