NexusFi: Find Your Edge


Home Menu

 





Get symbol descriptions for Stocks


Discussion in NinjaTrader

Updated
    1. trending_up 1,372 views
    2. thumb_up 1 thanks given
    3. group 2 followers
    1. forum 4 posts
    2. attach_file 6 attachments




 
Search this Thread

Get symbol descriptions for Stocks

  #1 (permalink)
 
TraderJesse's Avatar
 TraderJesse 
Denver
 
Experience: None
Platform: NinjaTrader
Posts: 85 since Aug 2009
Thanks Given: 51
Thanks Received: 95

I'm currently seeking a different solution to getting the description for stock symbols in Ninjatrader 8. The Yahoo finance api is no longer working so I'm trying to come up with a different solution to get the symbol descriptions for stocks. The vast majority of stock symbols do not have a description for them in the instrument file. It is too time consuming to enter them manually. I recently found that I could actually write the description through the indicator to the instrument file. If the description field was blank in the instrument file, the indicator would download the description from Yahoo finance and then it would write the description in the file so the description would only get pulled from Yahoo finance once. I am wondering if anyone knows how I can get the description for stock symbols from either my Kinetick feed or my Interactive brokers feed? Or any other solution would be welcome.

Thanks, Jeffrey.

Example of how I got the description before.

baseURL = "https://download.finance.yahoo.com/d/quotes.csv?s="+lookup;

using(WebClient client = new WebClient())
{
mytext = "";
symbolname = Regex.Replace(client.DownloadString(baseURL+"&f=s") , @"[^\w\&.@-]", "");
symboldescription = Regex.Replace(client.DownloadString(baseURL+"&f=n") , @"[^\w \&.@-]", "");
mytext = symbolname+" - "+symboldescription;

}


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NexusFi Journal Challenge - April 2024
Feedback and Announcements
ZombieSqueeze
Platforms and Indicators
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
Better Renko Gaps
The Elite Circle
Futures True Range Report
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
61 thanks
Funded Trader platforms
39 thanks
NexusFi site changelog and issues/problem reporting
26 thanks
The Program
18 thanks
GFIs1 1 DAX trade per day journal
18 thanks
  #3 (permalink)
 
rleplae's Avatar
 rleplae 
Gits (Hooglede) Belgium
Legendary Market Wizard
 
Experience: Master
Platform: NinjaTrader, Proprietary,
Broker: Ninjabrokerage/IQfeed + Synthetic datafeed
Trading: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
Posts: 3,003 since Sep 2013
Thanks Given: 2,442
Thanks Received: 5,863


On the IQFeed symbol guide website, there exists a TAB delimited file with symbols and names
maybe that can help you ?

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #4 (permalink)
 
TraderJesse's Avatar
 TraderJesse 
Denver
 
Experience: None
Platform: NinjaTrader
Posts: 85 since Aug 2009
Thanks Given: 51
Thanks Received: 95

@rleplae Thanks

I downloaded the file and first stripped out all but the equity symbols. Then stripped out the ones with no description. Still left 24248 stock symbols with descriptions.

I'll see if I can make this work.

Attached Files
Elite Membership required to download: Stock_List_11212017.zip
Started this thread Reply With Quote
Thanked by:
  #5 (permalink)
 
TraderJesse's Avatar
 TraderJesse 
Denver
 
Experience: None
Platform: NinjaTrader
Posts: 85 since Aug 2009
Thanks Given: 51
Thanks Received: 95

The attached indicator uses a text look up file to find the description or stock symbols when the description in the Ninja database is blank. It also has the option to overwrite the description even if it's not blank. So by placing this on a chart as you change from symbol to symbol it will update the description.

One of the drawbacks of using the look up file is that unless you're constantly updating the file, new stock symbols or changed stock symbols descriptions will not get updated.

You can extract the symbol description lookup file and place it in any folder you wish all you have to do is set the path and file name in the indicator.



If you're using another indicator to display the stock symbol description but you would like to use this to update the database, un-check Visible in this indicator properties and it will still update the database even if it's not displaying.




As I write very little code suggestions for improvements would be appreciated.

Attached Files
Elite Membership required to download: symboldescription.zip
Elite Membership required to download: StockDescription.zip
Started this thread Reply With Quote




Last Updated on November 28, 2017


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts