code: def main(plot):
      instruments = ["GORO"]
  
      # Download GORO bars using WIKI source code.
      feed = quandl.build_feed("WIKI", instruments, 2006, 2012, ".")
  
      # Load Quandl CSV downloaded from http://www.quandl.com/OFDP-Open-Financial-Data-Project/GOLD_2-LBMA-Gold-Price-London-Fixings-P-M
      quandlFeed = csvfeed.Feed("Date", "%Y-%m-%d")
      quandlFeed.setDateRange(
          datetime.datetime(2006, 1, 1), datetime.datetime(2012, 12, 31)
      )
      quandlFeed.addValuesFromCSV("quandl_gold_2.csv")
  
      myStrategy = MyStrategy(feed, quandlFeed, instruments[0])
  
      if plot:
          plt = plotter.StrategyPlotter(myStrategy, True, False, False)
          plt.getOrCreateSubplot("quandl").addDataSeries(
              "USD", quandlFeed["USD"]
          )
          plt.getOrCreateSubplot("quandl").addDataSeries(
              "EUR", quandlFeed["EUR"]
          )
          plt.getOrCreateSubplot("quandl").addDataSeries(
              "GBP", quandlFeed["GBP"]
          )
  
      myStrategy.run()
  
      if plot:
          plt.plot()
  
file_path: pyalgotrade/samples/quandl_sample.py
imports: from pyalgotrade import strategy
  from pyalgotrade import plotter
  from pyalgotrade.tools import quandl
  from pyalgotrade.feed import csvfeed
  import datetime
label_desc: Use image node_id 1 for calling a global function with example usage: main(plot) without return types