code: def runstrat():
      args = parse_args()
  
      cerebro = bt.Cerebro()
      data = bt.feeds.BacktraderCSVData(dataname=args.data)
  
      data.addfilter(bt.filters.DayStepsFilter)
      cerebro.adddata(data)
  
      cerebro.addstrategy(St)
  
      cerebro._doreplay = True
      cerebro.run(**(eval("dict(" + args.cerebro + ")")))
      if args.plot:
          cerebro.plot(**(eval("dict(" + args.plot + ")")))
  
file_path: backtrader/samples/daysteps/daysteps.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import argparse
  import backtrader
label_desc: Use image node_id 1 for calling a global function with example usage: runstrat() without return types