public Alpha(DataSeries ds, int sdper, int lrper, string description) public static Alpha Series(DataSeries ds, int sdper, int lrper) public static double Value(int bar, DataSeries ds, int sdper, int lrper)
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 alpha = Alpha.Series(Close, 7, 3); ChartPane ap = CreatePane(40, true, true); PlotSeries(ap, alpha, Color.DarkGreen, LineStyle.Solid, 2); } } }
public Alpha (Bars bars, Bars index, int period)
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 MyStrategy : WealthScript { protected override void Execute() { Alpha alpha = Alpha.Series( Bars, GetExternalSymbol("^GSPC",true),200); // Yahoo symbol Beta beta = Beta.Series( Bars, GetExternalSymbol("^GSPC",true),200); // Yahoo symbol ChartPane betatest = CreatePane( 30, true, true ); ChartPane alphaversion = CreatePane( 30, true, true ); PlotSeries( betatest, beta, Color.DarkMagenta, LineStyle.Solid, 2 ); PlotSeries( alphaversion, alpha, Color.DarkBlue, LineStyle.Solid, 2 ); } } }