code: def runstrat():
      cerebro = bt.Cerebro()
  
      data = bt.feeds.BacktraderCSVData(
          dataname="../../datas/2006-day-001.txt"
      )
      cerebro.adddata(data)
  
      cerebro.addobserver(OrderObserver)
  
      cerebro.addstrategy(MyStrategy)
      cerebro.run()
  
      cerebro.plot()
  
file_path: backtrader/samples/observers/observers-orderobserver.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import datetime
  import backtrader
  import backtrader.feeds
  import backtrader.indicators
  from orderobserver import OrderObserver
label_desc: Use image node_id 1 for calling a global function with example usage: runstrat() without return types