code: def runstrat():
      args = parse_args()
  
      # Create a cerebro entity
      cerebro = bt.Cerebro(stdstats=False)
  
      # Add a strategy
      cerebro.addstrategy(StrategyOptix)
  
      # Get a pandas dataframe
      datapath = "../../datas/2006-day-001-optix.txt"
  
      # Simulate the header row isn't there if noheaders requested
      skiprows = 1 if args.noheaders else 0
      header = None if args.noheaders else 0
  
      dataframe = pandas.read_csv(
          datapath,
          skiprows=skiprows,
          header=header,
          parse_dates=True,
          index_col=0,
      )
  
      if not args.noprint:
          print("--------------------------------------------------")
          print(dataframe)
          print("--------------------------------------------------")
  
      # Pass it to the backtrader datafeed and add it to the cerebro
      data = PandasDataOptix(dataname=dataframe)
  
      cerebro.adddata(data)
  
      # Run over everything
      cerebro.run()
  
      # Plot the result
      if not args.noplot:
          cerebro.plot(style="bar")
  
file_path: backtrader/samples/data-pandas/data-pandas-optix.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import argparse
  import backtrader
  import backtrader.feeds
  import pandas
label_desc: Use image node_id 1 for calling a global function with example usage: runstrat() without return types