Click here to Login





                                                   C# Easy way to see if symbol exists?

  0

0
Alexander Horn
2015-01-22 23:04:24


What's the easiest way to see if a symbols with Name "xyz" exists? Was trying to get Symbols.GetSymbols("filter","category") to run or Array.Exists(syms , element => element == "xyz") but no success..

Only by looping through all Symbols.GetSymbols()?



QuantShare
2015-01-23 17:31:02

  0

Best Answer
There is a "Symbols.GetSymbol" function that returns null if the symbol doesn't exist.


Alexander Horn
2015-01-23 17:46:43

  0

:-) ..thought it triggered error..Thanks!


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
Per Symbol Average Output
Industry Name of an External Symbol
Formula & Symbol Switcher
Symbol Information on Chart
Equity Data to Ticker Symbol

How-to Lessons
How to quickly add a ticker symbol
How to rename a ticker symbol
How to synchronize stock charts?
How to import your own list of stocks/symbols
How to get stocks for a particular index using the global script

Related Forum Threads
Easy way to hedge portfolio during bear markets?
Creat a Composite Index from few stock symbol
indicator for 1 symbol in screener and simulation
Equity to Symbol - AMM / Script
Combining Symbol Data

Blog Posts
A simple but useful way to display distances in a chart
Backtesting Your Trading Systems: Symbol Segmentation
Update Chart Layout based on Active Ticker Symbol
Different Ticker Symbols for Each Data Source
Update Chart Layout based on Active Ticker Symbol - Part 2









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.