code: def runstrat():
      args = parse_args()
  
      cerebro = bt.Cerebro()
  
      data = getdata(args)
      cerebro.adddata(data)
  
      cerebro.addstrategy(
          OrderExecutionStrategy,
          exectype=args.exectype,
          perc1=args.perc1,
          perc2=args.perc2,
          valid=args.valid,
          smaperiod=args.smaperiod,
      )
      cerebro.run()
  
      if args.plot:
          cerebro.plot(numfigs=args.numfigs, style=args.plotstyle)
  
file_path: backtrader/samples/order-execution/order-execution.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
  import backtrader.feeds
  import backtrader.indicators
label_desc: Use image node_id 1 for calling a global function with example usage: runstrat() without return types