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
RSS

Navigation


Quick Search
»
Advanced Search »


Syntax


public static string GetExchange(this string symbol)

public string GetExchange( string symbol )

Parameter Description

symbol The symbol (ticker) you want to determine exchange where it's traded at

Description

In some cases you would like to find out the exchange (e.g. NYSE, XETRA) where a given symbol is traded at. Returns the exchange where the given symbol is traded at, according to Google Finance

Example

Example using C# extension methods:


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

namespace WealthLab.Strategies { public class ExchangeDemo : WealthScript { protected override void Execute() { PrintDebug( Bars.Symbol.GetExchange() ); } } }

Legacy syntax example:


using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using WealthLab;
using WealthLab.Indicators;
using Community.Components; /*** Requires installation of Community.Components Extension from www.wealth-lab.com > Extensions ***/

namespace WealthLab.Strategies { public class ExchangeDemo : WealthScript { protected override void Execute() { Community.Components.Utility u = new Community.Components.Utility(this); PrintDebug( u.GetExchange( Bars.Symbol ) ); } } }

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.