Wealth-Lab Wiki

API ChartStyles Community Components Community Indicators IndexDefinitions Knowledge Base Misc Optimizers Pending Deletion PosSizers Providers Standard Indicators TASC Traders Tips TASCIndicators Tutorial Videos Visualizers
RSS

Navigation


Quick Search
»
Advanced Search »


Google Trends

RSS

Syntax


public static DataSeries GoogleTrends.GetRank(string search);
public static DataSeries GoogleTrends.GetRank(string search, string login, string password);

Parameter Description

searchA word to search for

Description

Google Trends is a Google service that shows how "hot" or "cold" a particular search term is relative to the total Google search volume. A Google Trends rank is an objective, quantifiable measure of public interest to some keyword provided by Google starting from ca. 2004 as a DataSeries in Weekly Monthly bar scale. We hope that Google Trends - a unique non price-based sentiment indicator - will help Wealth-Lab users uncover hidden patterns of public interest through propensity to Google search for a certain keyword on a relative basis.

Interpretation

Google Trends numbers represent search interest relative to the highest point on the chart for the given time. A value of 100 is the peak popularity, a 50 value is half as popular as 100, and a score of 0 puts the term in the 1% popularity bin compared to the peak. Ultimately, this is a (novel) leading sentiment indicator so basic principles derived from related indicators apply here as well.

Feel free to ask questions, share your experience and ideas regarding Google Trends on the Wealth-Lab Forums!


Notes

To avoid repeated requests, downloaded Google Trends ranks are cached in Wealth-Lab's Data folder called GoogleTrendsCacheMonthly under %AppData% as raw data files named like "SearchTerm.html". Once they become obsolete, the data will be refreshed by downloading it from Google again. To force refresh of a cached search keyword, delete its .html file; to refresh all stored keywords, delete all files in the GoogleTrendsCacheMonthly folder.

Example

Below is a demo Strategy that shows how to use the DataSeries:

using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using WealthLab;
using WealthLab.Indicators;
using Community.Components; /*** Requires installation of Community.Components Extension from www.wealth-lab.com > Extensions ***/

namespace WealthLab.Strategies { public class GoogleTrendsDemo : WealthScript { protected override void Execute() { // Get the Google Trends rank for a keyword DataSeries googleTrends = GoogleTrends.GetRank("Microsoft"); googleTrends = Synchronize( googleTrends ); SetScaleMonthly(); DataSeries sma = SMA.Series( googleTrends, 6 ); RestoreScale(); sma = Synchronize(sma);

HideVolume(); ChartPane gtPane = CreatePane( 50, true, true ); PlotSeries( gtPane, googleTrends, Color.DarkGreen, LineStyle.Histogram, 3 ); PlotSeries( gtPane, sma, Color.Blue, LineStyle.Solid, 2 ); for(int bar = 1; bar < Bars.Count; bar++) { bool lowInterest = googleTrends[bar] < sma[bar]; if( lowInterest ) SetBackgroundColor( bar, Color.FromArgb( 60, Color.DarkRed ) ); else SetBackgroundColor( bar, Color.FromArgb( 60, Color.DarkGreen ) ); } } } }

And the end result after running the example code on a Weekly chart of Microsoft, with "Microsoft" being the search term representing the Google Rank:

Historical Google Trends rank for

Historical Google Trends rank for "Microsoft" overlaid on a Microsoft Weekly chart


The blue line is the 6-month moving average of the average search traffic for the keyword.

Important Disclaimer: The information provided by Wealth-Lab is strictly for informational purposes and is not to be construed as advice or solicitation to buy or sell any security.  The owner of Wealth-Lab.com assumes no liability resulting from the use of the material contained herein for investment purposes. By using this web site, you agree to the terms of this disclaimer and our Terms of Use.

Used under license from FMR Corp. Copyright 2008 FMR Corp. All rights reserved.


ScrewTurn Wiki. Some of the icons created by FamFamFam.