class_docstr: Holds parameters for calculation of technical indicators.
  
      
class_docstr_tok: ["Holds","parameters","for","calculation","of","technical","indicators","."]
code: def only_allow_longs(self, only_allow_longs):
      if hasattr(self, "only_allow_shorts"):
          raise Exception(
              "Attribute only_allow_shorts is already defined and it is not compatible with attribute "
              "only_allow_longs"
          )
      self.__only_allow_longs = only_allow_longs
  
imports: import pandas
  import numpy
  from collections import OrderedDict
  from findatapy.timeseries import Calculations
  from findatapy.util.loggermanager import LoggerManager
label_desc: Use image node_id 18 for calling the TechParams obj's underlying member method code with example usage: obj.only_allow_longs(only_allow_longs) without return types