public static StdError Series(WealthLab.DataSeries source, int period) public StdError(DataSeries source, int period, string description) public static double Value(int bar, DataSeries source, int period)
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() { // Display the most recent Linear Regression value, and the Standard Error int bar = Bars.Count-1; DrawLabel( PricePane, "Linear Reg = " + LinearReg.Value( bar, Close, 30 ) ); DrawLabel( PricePane, "Std Error = " + StdError.Value( bar, Close, 30 ) ); } } }