code: def testCrossAboveWithSMA(self):
      ds1 = dataseries.SequenceDataSeries()
      ds2 = dataseries.SequenceDataSeries()
      sma1 = ma.SMA(ds1, 15)
      sma2 = ma.SMA(ds2, 25)
      for i in range(100):
          ds1.append(i)
          ds2.append(50)
          if i == 58:
              self.assertEqual(
                  cross.cross_above(sma1[:], sma2[:], -2, None), 1
              )
          else:
              self.assertEqual(
                  cross.cross_above(sma1[:], sma2[:], -2, None), 0
              )
  
file_path: pyalgotrade/testcases/technical_cross_test.py
imports: from .None import common
  from pyalgotrade.technical import cross
  from pyalgotrade.technical import ma
  from pyalgotrade import dataseries
label_desc: Use image node_id 6 for calling the TestCase obj's underlying member method code with example usage: obj.testCrossAboveWithSMA() without return types