Click here to Login





                                                   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
Delay in Daily Stock Quotes - International | For NSE Symbols

Blog Posts
How to Backtest Your Trading System for Each Industry
Short Index - Part 1
Ranking stocks based on their correlation with the S&P 500 Index
How to Select the Best Market Indicator for your Trading System
Create a Pivot Table that displays the Relative Strength Index - ...









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 © 2012 QuantShare.com
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Google+
Follow us on Google+
RSS Trading Items