public BullPowerVG(Bars ds, string description) public static BullPowerVG Series(Bars ds) public static double Value(int bar, Bars ds)
using System; using System.Collections.Generic; using System.Text; using System.Drawing; using WealthLab; using WealthLab.Indicators; using TASCIndicators;namespace WealthLab.Strategies { public class MyStrategy : WealthScript { protected override void Execute() { DataSeries bullpower = SMA.Series(BullPowerVG.Series( Bars ), 10); DataSeries bearpower = SMA.Series(BearPowerVG.Series( Bars ), 10); DataSeries bbb = SMA.Series(bearpower - bullpower, 10); bbb.Description = "BBB(10)"; ChartPane cp = CreatePane(40, true, true ); PlotSeries(cp, bbb, Color.Green, LineStyle.Histogram, 2); } } }