public static Dictionary<string, List<string>> FindSymbols(this string symbols)public Dictionary<string, List<string>> FindSymbols(string symbols)
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(); // Dialog to manually input some symbol(s) string symbols = this.Input(); // FindSymbols output Dictionary<string, List<string>> result = symbols.FindSymbols(); foreach( KeyValuePair<string, List<string>> kvp in result ) { //Looping by each symbol... PrintDebug("Symbol: " + kvp.Key); // ...display every DataSet found foreach( string ds in kvp.Value ) PrintDebug("DataSet name: " + ds); } } } }
using System; using System.Windows.Forms; using System.Collections; using System.Collections.Generic; using System.Text; using System.Drawing; using WealthLab; using Community.Components; /*** Requires installation of Community.Components Extension from www.wealth-lab.com > Extensions ***/namespace WealthLab.Strategies { public class SearchForClickedSymbol : WealthScript { protected override void Execute() { Utility u = new Utility(this); ClearDebug(); // Dialog to manually input some symbol(s) string symbols = Utility.Input(); // FindSymbols output Dictionary<string, List<string>> result = new Dictionary<string, List<string>>(); result = u.FindSymbols(symbols); foreach( KeyValuePair<string, List<string>> kvp in result ) { //Looping by each symbol... PrintDebug("Symbol: " + kvp.Key); // ...display every DataSet found foreach( string ds in kvp.Value ) PrintDebug("DataSet name: " + ds); } } } }