public FIR(DataSeries source, string weights, string description) public static FIR Series(WealthLab.DataSeries source, string weights) public static double Value(int bar, DataSeries source, params double[ ] weightValues) public static double Value(int bar, DataSeries source, string weights)
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() { // A FIR is used as a signal line for a 200 day moving average DataSeries SMASer = SMA.Series( Close, 200 ); PlotSeries( PricePane, SMASer, Color.Olive, WealthLab.LineStyle.Solid, 2 ); PlotSeries( PricePane, FIR.Series( SMASer, "1,2,2,1" ), Color.Black, WealthLab.LineStyle.Solid, 1 ); } } }