INNER CODE UNIT · Python

trade_strangle

ldt9/PyOptionTrader · models/futures/short_strangle.py:479

    def trade_strangle(self, call_delta=0.16, put_delta=-0.16, order_type='short', order_style='bracket', days=45,
                       take_profit_factor=0.50, stop_loss_factor=3.00, use_vix_position_sizing=True, quantity=1):
        '''
        Trade the Strangle Options Strategy
        :param call_delta: delta of the call
        :param put_delta: delta of the put
        :param order_type: long or short
        :param order_style: bracket, limit or market
        :param days: how many days to expiration
        :param take_profit_factor: where to take profit on the premium
        :param stop_loss_factor: where to stop loss on the premium
        :param use_vix_position_sizing: whether to use vix position sizing or not
        :param quantity: how many to buy if we don't use vix position sizing
        :return: None
        '''

        try:
            self.update_target_expiration(days=days)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…