This is a trading item or a component that was created using QuantShare by one of our members.
This item can be downloaded and used by QuantShare Trading Software.
Trading items are of different types. There are data downloaders, trading indicators, trading systems, watchlists, composites/indices...
You can use this item and hundreds of others for free by downloading QuantShare.
Top Reasons Why You Should Use QuantShare:
Works with US and international markets (stock, forex, options, futures, ETF...)
Offers you the tools that will help you become a profitable trader
Allows you to implement any trading ideas
Exchange items and ideas with other QuantShare users
Our support team is very responsive and will answer any of your questions
We will implement any features you suggest
Very low price and much more features than the majority of other trading software
For Free - No Credit Card Required
Word Occurrence in News Titles - Quantitative Trading Analysis
"GetField" is a function that gets a word among a list of words given an index provided as parameter to the function.
The function is mainly used in quantitative trading to optimize News driven trading systems and it works as follows:
This example uses a custom function "ContainsWords" (News parser function).
When optimizing a trading system, the variable "i" will vary from 0 to 7 (There are eight words to analyze). Each time, the "GetField" function returns a different value to variable "a".
If i=0 then "a" will be equal to "buy"
If i=1 then "a" will be equal to "sell"
This function gets a list of words separated by semicolons and then uses the index parameter to return the appropriate word.
The last buy rule consists of analyzing each stock news data and then returning a signal if the word assigned to the variable "a" is found.
In summary, the above strategy buys a stock each time a news title contains a specific word (buy,sell,up,down...)
This is it for the basic example. More advanced quantitative research and analysis can be performed using the "GetField" and "ContainsWords" functions. For example, you can instruct your trading system to generate signals when a combination of words is found.
Both examples I presented here use news data from Yahoo. This data can be downloaded using the following trading item: Yahoo News.
Other news downloaders, such as Google news (Historical Stock Market News), StockTwits... can also be used.