Wealth-Lab Wiki

API ChartStyles Community Components Community Indicators IndexDefinitions Knowledge Base Misc Optimizers Pending Deletion PosSizers Providers Standard Indicators TASC Traders Tips TASCIndicators Tutorial Videos Visualizers


Quick Search
Advanced Search »

Get symbol data from Morningstar.com (sector, industry, code etc.)



public MorningstarSymbolData

public static MorningstarSymbolData MorningstarSymbolDataExtractor.GetSymbolData(string symbol)

Parameter Description

symbolAny stock symbol valid on Morningstar website


Morningstar is a well-known investment resouces. Methods of the MorningstarSymbolDataExtractor class return some helpful snapshot data for U.S./international stock symbols: sector, industry, business description, NAICS/SIC/ISIC codes, stock type and style.

  • GetSymbolData returns an instance of MorningstarSymbolData class populated with eight string variables: Sector, Industry, Description, NAICS, SIC, ISIC, StockType, StockStyle.


Here's an illustration of working with Morningstar data in a Wealth-Lab strategy:

using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using WealthLab;
using WealthLab.Indicators;
using Community.Components;

namespace WealthLab.Strategies { public class MyStrategy : WealthScript { protected override void Execute() { string symbol = Bars.Symbol; var msd = MorningstarSymbolDataExtractor.GetSymbolData(symbol); ClearDebug(); PrintDebug( "Stock: " + symbol + "\r" ); PrintDebug( "Sector: " + "\t" + msd.Sector ); PrintDebug( "Industry: " + "\t" + msd.Industry ); PrintDebug( "Description: " + "\t" + msd.Description ); PrintDebug( "NAICS: " + "\t" + msd.NAICS); PrintDebug( "SIC: " + "\t" + msd.SIC); PrintDebug( "ISIC: " + "\t" + msd.ISIC); PrintDebug( "Stock type: " + "\t" + msd.StockType); PrintDebug( "Stock style: " + "\t" + msd.StockStyle); } } }

Important Disclaimer: The information provided by Wealth-Lab is strictly for informational purposes and is not to be construed as advice or solicitation to buy or sell any security.  The owner of Wealth-Lab.com assumes no liability resulting from the use of the material contained herein for investment purposes. By using this web site, you agree to the terms of this disclaimer and our Terms of Use.

Used under license from FMR Corp. Copyright 2008 FMR Corp. All rights reserved.

ScrewTurn Wiki. Some of the icons created by FamFamFam.