public static Dictionary> FindSymbols(this string symbols)public Dictionary> 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> result = symbols.FindSymbols(); foreach( KeyValuePair> 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> result = new Dictionary>(); result = u.FindSymbols(symbols); foreach( KeyValuePair> 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); } } } }