public static string Input(this WealthScript obj) public static string Input(this WealthScript obj, string prompt) public static string Input(this WealthScript obj, string prompt, string title, string defaultText, int HPos, int VPos)public static string Input() public static string Input(string prompt) public static string Input(string prompt, string title, string defaultText, int HPos, int VPos)
using System; using System.Windows.Forms; using System.Collections; using System.Collections.Generic; using System.Text; using System.Drawing; using WealthLab;namespace WealthLab.Strategies { public class SearchForClickedSymbol : WealthScript { protected override void Execute() { ClearDebug(); DataSourceManager dm = new WealthLab.DataSourceManager(); dm.RootPath = Application.UserAppDataPath + @"\Data\"; string s = string.Empty; string[] symbols = this.Input().ToUpper().Split(',', ';', ' '); //string[] symbols = Community.Components.Utility.Input().ToUpper().Split(',', ';', ' '); foreach( string sym in symbols ) s += String.Concat( sym, "," ); PrintDebug("Searching for " + s + "..." ); foreach(DataSource ds in dm.DataSources) { foreach (string str in symbols) if (ds.Symbols.Contains(str)) PrintDebug( "Found " + str + " in " + ds.Name ); } } } }