Click here to Login

                                                   Obtain symbols for a particular index


Obuli Govindaraju
2011-12-09 10:47:40

Please give an example of
GetSymbols (returns Symbol[]) (Filter Name String, Filter Category String)

For example I want to get symbols for a particular Index. How would I use the above to accomplish that.


2011-12-09 13:30:20


Best Answer
The function "Symbols.GetSymbols" gets symbols from a Symbols Filter (Symbol -> Symbols View)

Here is an example on how to get symbols from a particular index:

List list = new List();
Symbol[] symbols = Symbols.GetSymbols();
for(int i=0;i < symbols.Length;i++)
Symbol symbol = symbols[i];
if(Array.IndexOf(symbol.GetIndexesFromList(), "Nyse") >= 0)

No more messages


No html code. URLs turn into links automatically.

Type in the trading objects you want to include: - Add Objects
To add a trading object in your message, type in the object name, select it and then click on "Add Objects"


Trading Items
Open Interest Data for Equity, Index and Futures Securities
Tweet Sentiment Index for the Forex and Stock Market
S&P 500 Dividend Yield - Average data for S&P 500 Index Stocks
Leading Index for the United States
Index Investment Data for U.S. Futures Markets

How-to Lessons
How to get stocks for a particular index using the global script
How to screen for stocks having a high correlation with the Dow J...
How to associate an index with a list of stocks
How to quickly download the most recent EOD data for your stocks
How to display the bar index of a stock on a chart

Related Forum Threads
Script to remove Symbols from an Index
How to download data for selected symbols ?
Intraday Data for NSE Symbols
Historical intraday data for the AEX index
Yahoo download for index

Blog Posts
Different Ticker Symbols for Each Data Source
How to Backtest Your Trading System for Each Industry
Ranking stocks based on their correlation with the S&P 500 Index
Short Index - Part 1
Create a stock index or a trading indicator using the composite t...

Create an account
Affiliate Program
Contact Us
Trading Forum
How-to Lessons
About Us
Terms of Use

Copyright 2017
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Follow us on Google+
RSS Trading Items

Trading financial instruments, including foreign exchange on margin, carries a high level of risk and is not suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in financial instruments or foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with trading and seek advice from an independent financial advisor if you have any doubts.