public RSIBand(DataSeries ds, int period, double rsiTargetLevel, string description) public static RSIBand Series(DataSeries ds, int period, double rsiTargetLevel)
/* Create and plot the overbought and oversold bands in the PricePane*/ 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 obought = new RSIBand(Close, 14, 70, "Overbought(70)"); DataSeries osold = new RSIBand(Close, 14, 30, "Overbought(30)"); Color fill = Color.FromArgb(50, Color.Gray); PlotSeriesDualFillBand(PricePane, obought, osold, fill, fill, Color.Gray, LineStyle.Solid, 1); } } }