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
def MaxLossStage(): """ Create a max loss PositionStage :return: PositionStage """ return PositionStage(stage_name='MAX_LOSS', left_status='EASING', right_status='WORST')
def MaxProfitStage(): """ Create a max loss PositionStage :return: PositionStage """ return PositionStage(stage_name='MAX_PROFIT', left_status='VANISHING', right_status='GUARANTEEING')
def LossStage(): """ Create a max loss PositionStage :return: PositionStage """ return PositionStage(stage_name='LOSS', left_status='RECOVERING', right_status='LOSING')
def ProfitStage(): """ Create a max loss PositionStage :return: PositionStage """ return PositionStage(stage_name='PROFIT', left_status='DECREASING', right_status='PROFITING')
def EvenStage(): """ Create a max loss PositionStage :return: PositionStage """ return PositionStage(stage_name='EVEN', left_status='', right_status='')