#NEWLINE# def enterLongStopLimit( self , instrument , stopPrice , limitPrice , quantity , goodTillCanceled = False , allOrNone = False ) : #NEWLINE# #INDENT# 'Generates a buy :class:`pyalgotrade.broker.StopLimitOrder` order to enter a long position.\n\n        :param instrument: Instrument identifier.\n        :type instrument: string.\n        :param stopPrice: Stop price.\n        :type stopPrice: float.\n        :param limitPrice: Limit price.\n        :type limitPrice: float.\n        :param quantity: Entry order quantity.\n        :type quantity: int.\n        :param goodTillCanceled: True if the entry order is good till canceled. If False then the order gets automatically canceled when the session closes.\n        :type goodTillCanceled: boolean.\n        :param allOrNone: True if the orders should be completely filled or not at all.\n        :type allOrNone: boolean.\n        :rtype: The :class:`pyalgotrade.strategy.position.Position` entered.\n        ' #NEWLINE# return pyalgotrade . strategy . position . LongPosition ( self , instrument , stopPrice , limitPrice , quantity , goodTillCanceled , allOrNone )