code: def main(plot):
      instrument = "BTC"
      initialCash = 1000
      vwapWindowSize = 100
      buyThreshold = 0.02
      sellThreshold = 0.01
  
      barFeed = csvfeed.GenericBarFeed(bar.Frequency.MINUTE * 30)
      barFeed.addBarsFromCSV(instrument, "30min-bitstampUSD.csv")
      brk = broker.BacktestingBroker(initialCash, barFeed)
      strat = VWAPMomentum(
          barFeed,
          brk,
          instrument,
          vwapWindowSize,
          buyThreshold,
          sellThreshold,
      )
  
      if plot:
          plt = plotter.StrategyPlotter(strat)
          plt.getInstrumentSubplot(instrument).addDataSeries(
              "VWAP", strat.getVWAP()
          )
  
      strat.run()
  
      if plot:
          plt.plot()
  
file_path: pyalgotrade/samples/bccharts_example_2.py
imports: from pyalgotrade import bar
  from pyalgotrade import strategy
  from pyalgotrade import plotter
  from pyalgotrade.technical import vwap
  from pyalgotrade.barfeed import csvfeed
  from pyalgotrade.bitstamp import broker
  from pyalgotrade import broker
label_desc: Use image node_id 1 for calling a global function with example usage: main(plot) without return types