code: def __init__(
      self,
      dateTime,
      open_,
      high,
      low,
      close,
      volume,
      adjClose,
      frequency,
      extra={},
  ):
      if high < low:
          raise Exception("high < low on %s" % (dateTime))
      elif high < open_:
          raise Exception("high < open on %s" % (dateTime))
      elif high < close:
          raise Exception("high < close on %s" % (dateTime))
      elif low > open_:
          raise Exception("low > open on %s" % (dateTime))
      elif low > close:
          raise Exception("low > close on %s" % (dateTime))
  
      self.__dateTime = dateTime
      self.__open = open_
      self.__close = close
      self.__high = high
      self.__low = low
      self.__volume = volume
      self.__adjClose = adjClose
      self.__frequency = frequency
      self.__useAdjustedValue = False
      self.__extra = extra
  
imports: import abc
  import six
label_desc: Use image node_id 1 to create a new BasicBar object from inherited base classes: Bar with example: obj = BasicBar(dateTime, open_, high, low, close, volume, adjClose, frequency, extra)