public AccumDist(WealthLab.Bars bars, string description) public static AccumDist Series(WealthLab.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() { // Look for a diverging slope of AccumDist and price DataSeries ad = AccumDist.Series( Bars ); for(int bar = 10; bar < Bars.Count; bar++) { if( ( adbar > adbar-10 ) & ( Closebar < Closebar-10 ) ) SetBarColor( bar, Color.SpringGreen ); } ChartPane AccumDistPane = CreatePane( 50, false, true ); PlotSeries( AccumDistPane, ad, Color.Black, WealthLab.LineStyle.Solid, 2 ); } } }