Click here to Login





How to plot the number of stock tweets per day

Updated on 2011-12-10 04:05:54

Share |

This lesson will show you how to plot the number of tweets per day for a particular stock. Tweets data is downloaded from twitter by using the following item: StockTwits. To get currency pairs tweets use Forex Tweets.

Steps:

- Download the above downloader from QuantShare Sharing Server
- In the main menu of QS Trading Software, select "Download" then "Download Manager"
- Select "StockTwits" item then click on "Open Selected Downloader"
- Specify one or several stocks then click on "Start Downloading" (Click 'Yes' when the application prompts you to create a new custom intraday database)
- When the downloading process is completed, close the "Download Manager" control
- Open a new chart and select a stock you have previously used in the downloader
- Create a new pane by right clicking on the chart then selecting "Create new pane"
- In the new pane, click on the first icon to add a new indicator
- Select "Databases / Fields" tab
- Select "stocktwits" database, "title" field then click on "OK"



Notes:

- Make sure that your quotes database is up-to-date.
- The values on the chart above the stock tweets line were plotted by adding the following function: (Right click on the chart then "Edit Formula")

PlotSymbol(a, a, 0, 0, AboveHigh, colorRed, colorRed, PlotSymbolNone);
// a = GetDataCount("stocktwits", "title");



Here is how to increase or decrease the number of tweets to download per stock:

- Select the download item (Download Manager)
- Click on "Update"
- Click on "2 Field(s)" button
- Update the value of "rpp". Set it to a higher value to download more stock tweets.








no reviews (Log in)







Other how-to articles




How to display the number of notes per stock





How to display the number of stocks per day for different RSI groups





How to plot a stock using different periods in the same chart





How to plot the relative performance of several stocks/indices





How to plot a time-series that do not update the chart scale





How to display the bar index of a stock on a chart





How to plot two different time frames in the same chart





How to dynamically change the number of positions in a portfolio?





How to optimize the number of positions in a trading system







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.