public KVO(Bars bars, int period1, period2, string description) public static KVOSeries(Bars bars, int period1, period2)
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 KlingerDemo : WealthScript { protected override void Execute() { int FastX = 34; int SlowX = 55; int TrigLen = 13; KVO kvo = KVO.Series( Bars,FastX,SlowX ); EMA Trigger = EMA.Series( kvo, TrigLen, EMACalculation.Modern ); Trigger.Description = "Trigger"; ChartPane kvoPane = CreatePane( 30, true, false ); PlotSeries( kvoPane, kvo, Color.Red, LineStyle.Solid, 1 ); PlotSeries( kvoPane, Trigger, Color.Blue, LineStyle.Solid, 1 ); } } }