public RSquared(DataSeries source, int period, string description) public static RSquared Series(DataSeries source, int period) 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() { // Plot RSquared in order to examine how prices react when they reach different levels. DataSeries r2 = RSquared.Series( Close, 30 ); ChartPane RSquaredPane = CreatePane( 35, true, true ); PlotSeries( RSquaredPane, r2, Color.Red, LineStyle.Solid, 1 ); PlotSeries( RSquaredPane, LinearRegSlope.Series( Close, 30 ), Color.Blue, LineStyle.Solid, 1 ); } } }