code: def runstrat():
      args = parse_args()
  
      datakwargs = dict()
      if args.fromdate:
          fromdate = datetime.datetime.strptime(
              args.fromdate, "%Y-%m-%d"
          )
          datakwargs["fromdate"] = fromdate
  
      if args.todate:
          todate = datetime.datetime.strptime(args.todate, "%Y-%m-%d")
          datakwargs["todate"] = todate
  
      data = bt.feeds.BacktraderCSVData(
          dataname=args.data, **datakwargs
      )
  
      cerebro = bt.Cerebro()
      cerebro.adddata(data)
  
      cerebro.broker.set_cash(args.cash)
      if args.filler is not None:
          fillerkwargs = dict()
          if args.filler_args is not None:
              fillerkwargs = eval("dict(" + args.filler_args + ")")
  
          filler = FILLERS[args.filler](**fillerkwargs)
          cerebro.broker.set_filler(filler)
  
      cerebro.addstrategy(
          St, stakeperc=args.stakeperc, opbreak=args.opbreak
      )
  
      cerebro.run()
      if args.plot:
          cerebro.plot(style="bar")
  
file_path: backtrader/samples/volumefilling/volumefilling.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import argparse
  import datetime
  import os.path
  import time
  import sys
  import backtrader
label_desc: Use image node_id 1 for calling a global function with example usage: runstrat() without return types