Exemple #1
0
    def create_even_stage1(self):
        """
        Create even stage using filled orders data
        :return: PositionStage
        """
        even_stage = PositionStage()

        even_stage.stage_name = 'EVEN'
        even_stage.stage_expression = self.e_price

        even_stage.price_a = self.call_order.strike + self.net_price

        return even_stage
Exemple #2
0
    def create_even_stage1(self):
        """
        Create even stage using filled orders data
        :return: PositionStage
        """
        even_stage = PositionStage()

        even_stage.stage_name = 'EVEN'
        even_stage.stage_expression = self.e_price

        even_stage.price_a = self.call_order.strike + self.net_price

        return even_stage
Exemple #3
0
 def MaxLossStage():
     """
     Create a max loss PositionStage
     :return: PositionStage
     """
     return PositionStage(stage_name='MAX_LOSS',
                          left_status='EASING',
                          right_status='WORST')
Exemple #4
0
 def MaxProfitStage():
     """
     Create a max loss PositionStage
     :return: PositionStage
     """
     return PositionStage(stage_name='MAX_PROFIT',
                          left_status='VANISHING',
                          right_status='GUARANTEEING')
Exemple #5
0
 def LossStage():
     """
     Create a max loss PositionStage
     :return: PositionStage
     """
     return PositionStage(stage_name='LOSS',
                          left_status='RECOVERING',
                          right_status='LOSING')
Exemple #6
0
 def ProfitStage():
     """
     Create a max loss PositionStage
     :return: PositionStage
     """
     return PositionStage(stage_name='PROFIT',
                          left_status='DECREASING',
                          right_status='PROFITING')
Exemple #7
0
 def EvenStage():
     """
     Create a max loss PositionStage
     :return: PositionStage
     """
     return PositionStage(stage_name='EVEN',
                          left_status='',
                          right_status='')