Click here to Login








News Sentiment Indicator

by QuantShare, 5483 days ago
Share |






This is a function that could be used with a database that contains text data (for example a news database). The function accepts as arguments, the database name, the field name, a positive list of words and a negative list of words.
These lists of words are simply words separated by comma. (word1, word2, word3...). The idea is to calculate an indicator that tries to measure the news sentiment. If a positive word is found in a news title, then the indicator will add a value of one in this news bar and if a negative word is found, then a value of one will be subtracted.

Here is an example:
news_sentiment('yahoo_news', 'title', 'buy,good,better,bull', 'sell,bad,lower,bear');
For each bar, each time the indicator finds one of the following words: buy, good, better, bull, it adds one to the current bar result, and each time it finds one of the following words: sell, bad, lower, bear, it subtracts one to the current bar result. It finally returns the indicator time-series.

For the news database, you can use one of the following downloaders:
US stocks:
Yahoo News
Smartmoney news for US equities
News data for US companies from Google RSS feed
Insiders' Blog stories
Analyst comments

London Stock Exchange:
London Stock Exchange News


Share This ->
Share |


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




Type: Trading Indicator

Object ID: 304


Country:
All

Market: All

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

Empty

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

How scripts communicate with each other

How to simulate options strategies

Organizing Trading Objects

Creating a download item: Initial Jobless Claims

How to search for a download item

Trading orders - Part 2

Trading Orders - Part 1

The average maximum drawdown metric

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.