Click here to Login

LiveZilla Live Help
LiveZilla Live Help




                                                   Obtain symbols for a particular index

  0

0
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.

Thanks,



QuantShare
2011-12-09 13:30:20

  0

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)
{
list.Add(symbol.Name);
}
}




No more messages
0




Reply:

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"










QuantShare

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

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 get fundamental data for U.S. Stocks

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...









QuantShare
Product
QuantShare
Features
Create an account
Affiliate Program
Support
Contact Us
Trading Forum
How-to Lessons
Manual
Company
About Us
Privacy
Terms of Use

Copyright 2014 QuantShare.com
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Google+
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.