Click here to Login








Update the Stock Exchange Associated With U.S. Stocks - Market Field

by QuantShare, 5183 days ago
Share |


In order to keep your symbol database up-to-date, here is a trading item that automatically updates the exchange name of your US Stocks. The item downloads three symbols list; each list contains stocks that are listed in a specific exchange (NYSE, NASDAQ and AMEX). After a list is downloaded, each stock it contains is updated and associated with the corresponding stock exchange.
Stock that are not listed in one of these lists are usually delisted stocks, non-active stocks (due to bankruptcy for example) or stocks that are not listed on a major exchange (Over-the-counter or OTC markets such as the OTC Bulletin Board and Pink OTC Markets).

Before running this downloader, you can create a global script and update the exchange name of each US Stock you have in database. You can set the exchange name to empty or set it to "OTC" so you can recognize the stocks that are not listed on a major stock exchange (NYSE, NASDAQ and AMEX).
Although this step is not necessary, it can help you create a clean database; so here is the script:

Symbol[] symbols = Symbols.GetSymbols();
for(int i=0;i<symbols.Length;i++)
{
Symbol sym = symbols[i];
if(!sym.Name.StartsWith("^") && !sym.Name.StartsWith("_"))
{
sym.Market = "OTC";
}
}

Simple replace "OTC" by "" if you want to unset the exchange name of your stocks. To execute the script, select "Tools" in the menu then click on "Script Editor". Create a new file, paste the formula then click on "Execute".

Note that this item also adds new symbols in case a stock was not found in your database. These are maybe new listings or companies that recently had an IPO.

You can also use Industry and Sector Information for the US Stock Market to update the industry and sector name of stocks available in your database.




You have to log in to bookmark this object
What is this?




Type: Download Script

Object ID: 692


Country:
United States

Market: Stock Market

Style:
Fundamental Analysis

Reviews
You must log in first

Join now
and get instant access for free to the trading software, the Sharing server and the Social network website.
Click here


Related objects
Show All
Yahoo EOD historical quotes (by QuantShare, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 1130 Notes Report an item
Daily Historical Data - Alphavantage (by QuantShare, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 260 Notes Report an item
EOD Data for Futures (by Tom Huggens, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 687 Notes Report an item
One-Minute Data for Intraday Futures (by bug man, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 248 Notes Report an item
Intraday Quotes for Major Stock Exchanges (by QuantShare, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 4093 Notes Report an item
Daily Stock Quotes for more than 50 Stock Exchanges (by QuantShare, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 87 Notes Report an item
Daily Stock Quotes - Stock Market EOD Data (by QuantShare, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 282 Notes Report an item
Number of reviews
Click to add a review
Average rate
Click to rate this item
Number of times this object was downloaded
Number of rates the current object received
Report an object
if you can't run it for example or if it contains errors
Click to report this object

Technical Analysis


Fundamental Analysis



Random Blog Posts

Trading Indicators using the Rank and Percentile functions

How to Create Custom Metrics for Your Trading Positions

How to search for a trading item

How to create market indicators using the composite function - Part 3

How to create market indicators using the composite function - Part 2

Create a Pivot Table that displays the Relative Strength Index - RSI

6 Stock Trading Items Related to the New York Stock Exchange - NYSE

Pivot Tables in QuantShare Trading Software

Show All

Number of reviews
Click to add a review
Average rate
Click to rate this item
Number of times this object was downloaded
Number of rates the current object received
Report an object
if you can't run it for example or if it contains errors
Click to report this object






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