code: def testStopOrderTriggerSell(self):
      barsBuilder = broker_backtesting_test.BarsBuilder(
          BaseTestCase.TestInstrument, bar.Frequency.MINUTE
      )
      # Bar is above
      self.assertEqual(
          fillstrategy.get_stop_price_trigger(
              broker.Order.Action.SELL,
              10,
              False,
              barsBuilder.nextBar(15, 15, 15, 15),
          ),
          None,
      )
      self.assertEqual(
          fillstrategy.get_stop_price_trigger(
              broker.Order.Action.SELL,
              10,
              False,
              barsBuilder.nextBar(15, 16, 11, 15),
          ),
          None,
      )
      # Low touches
      self.assertEqual(
          fillstrategy.get_stop_price_trigger(
              broker.Order.Action.SELL,
              10,
              False,
              barsBuilder.nextBar(15, 16, 10, 11),
          ),
          10,
      )
      # Low penetrates
      self.assertEqual(
          fillstrategy.get_stop_price_trigger(
              broker.Order.Action.SELL,
              10,
              False,
              barsBuilder.nextBar(15, 16, 9, 11),
          ),
          10,
      )
      # Open touches
      self.assertEqual(
          fillstrategy.get_stop_price_trigger(
              broker.Order.Action.SELL,
              10,
              False,
              barsBuilder.nextBar(10, 10, 10, 10),
          ),
          10,
      )
      # Open is below
      self.assertEqual(
          fillstrategy.get_stop_price_trigger(
              broker.Order.Action.SELL,
              10,
              False,
              barsBuilder.nextBar(9, 12, 4, 9),
          ),
          9,
      )
      # Bar gaps below
      self.assertEqual(
          fillstrategy.get_stop_price_trigger(
              broker.Order.Action.SELL,
              10,
              False,
              barsBuilder.nextBar(8, 9, 6, 9),
          ),
          8,
      )
  
file_path: pyalgotrade/testcases/fill_strategy_test.py
imports: import unittest
  import datetime
  from .None import broker_backtesting_test
  from pyalgotrade import broker
  from pyalgotrade.broker import fillstrategy
  from pyalgotrade.broker import backtesting
  from pyalgotrade import bar
label_desc: Use image node_id 2 for calling the FreeFunctionsTestCase obj's underlying member method code with example usage: obj.testStopOrderTriggerSell() without return types