using System; using System.Collections.Generic; using System.Text; using System.Drawing; using WealthLab; using WealthLab.Indicators;namespace WealthLab.Strategies { public class MyStrategy : WealthScript { Random r = new Random(); private Color RandomColor() { Color randomColor = Color.FromArgb(r.Next(255), r.Next(255), r.Next(255)); return randomColor; } protected override void Execute() { string clickedSym = Bars.Symbol; List rocList = new List(); foreach( string ds in DataSetSymbols ) { //if( ds != clickedSym ) rocList.Add( ROC.Series( GetExternalSymbol( DataSetSymbolsDataSetSymbols.IndexOf(ds), true ).Close, 10 ) ); } HideVolume(); ChartPane rocPane = CreatePane( 100, true, true ); foreach( DataSeries ds in rocList ) PlotSeries( rocPane, rocListrocList.IndexOf(ds), RandomColor(), LineStyle.Solid, 1 ); } } }