Click here to Login

LiveZilla Live Help
LiveZilla Live Help







News Sentiment Indicator

by QuantShare, 1251 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
Show All
Vortex Oscillator (by Brian Brown, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 46 Notes Report an item
Center Of Gravity - COG (by Brian Brown, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 17 Notes Report an item
Choppiness Index (by Brian Brown, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 20 Notes Report an item
Coppock Indicator (by Brian Brown, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 20 Notes Report an item
Number of Consecutive Trading Bars Condition was True (by Caleb, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 10 Notes Report an item
Demand Index (by Brian Brown, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 31 Notes Report an item
Choose function (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 15 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

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 © 2012 QuantShare.com
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Google+
Follow us on Google+
RSS Trading Items