code: def main():
      # Go to http://dev.twitter.com and create an app.
      # The consumer key and secret will be generated for you after that.
      consumer_key = "<YOUR-CONSUMER-KEY-HERE>"
      consumer_secret = "<YOUR-CONSUMER-SECRET-HERE>"
  
      # After the step above, you will be redirected to your app's page.
      # Create an access token under the the "Your access token" section
      access_token = "<YOUR-ACCESS-TOKEN-HERE>"
      access_token_secret = "<YOUR-ACCESS-TOKEN-SECRET-HERE>"
  
      # Create a twitter feed to track BitCoin related events.
      track = ["bitcoin", "btc", "mtgox", "bitstamp", "xapo"]
      follow = []
      languages = ["en"]
      twitterFeed = twitterfeed.TwitterFeed(
          consumer_key,
          consumer_secret,
          access_token,
          access_token_secret,
          track,
          follow,
          languages,
      )
  
      barFeed = barfeed.LiveTradeFeed()
      brk = broker.PaperTradingBroker(1000, barFeed)
      strat = Strategy(barFeed, brk, twitterFeed)
  
      # It is VERY important to add twitterFeed to the event dispatch loop before running the strategy.
      strat.getDispatcher().addSubject(twitterFeed)
  
      strat.run()
  
file_path: pyalgotrade/samples/tutorial_twitter_bitstamp.py
imports: from pyalgotrade import strategy
  from pyalgotrade.bitstamp import barfeed
  from pyalgotrade.bitstamp import broker
  from pyalgotrade.twitter import feed
label_desc: Use image node_id 1 for calling a global function with example usage: main() without return types