DataSeries Butterworth2( DataSeries Series, int Period) DataSeries Butterworth3( DataSeries Series, int Period)
Lag := N * P / pi^2
public class IIRDemo : WealthScript { private StrategyParameter per2; private StrategyParameter per3; public IIRDemo() { per2 = CreateParameter("2pole period", 14, 2, 200, 2 ); per3 = CreateParameter("3pole period", 14, 3, 300, 3 ); } protected override void Execute() { Butterworth2 bw2 = Butterworth2.Series(Bars.Close, per2.ValueInt); Butterworth3 bw3 = Butterworth3.Series(Bars.Close, per3.ValueInt); PlotSeries( PricePane, bw2, Color.Green, LineStyle.Solid, 2 ); PlotSeries( PricePane, bw3, Color.Red, LineStyle.Solid, 2 ); } }