Stop strategies triggers

Stop strategies triggers#

sigtech.framework.strategies.stop_strategy.fixed_abs_loss_trigger(dt, current_valuation, stoploss, **kwargs)

Trigger for fixed absolute loss.

Parameters:
  • dt – Reference datetime.

  • current_valuation – Current valuation.

  • stoploss – Stop-loss order.

Returns:

bool.

sigtech.framework.strategies.stop_strategy.fixed_abs_profit_trigger(dt, current_valuation, stoploss, **kwargs)

Trigger for fixed absolute profit.

Parameters:
  • dt – Reference datetime.

  • current_valuation – Current valuation.

  • stoploss – Stop-loss order.

Returns:

bool.

sigtech.framework.strategies.stop_strategy.fixed_pct_loss_trigger(dt, current_valuation, stoploss, **kwargs)

Trigger for fixed percent loss.

Parameters:
  • dt – Reference datetime.

  • current_valuation – Current valuation.

  • stoploss – Stop-loss order.

Returns:

bool.

sigtech.framework.strategies.stop_strategy.fixed_pct_profit_trigger(dt, current_valuation, stoploss, **kwargs)

Trigger for fixed percent profit.

Parameters:
  • dt – Reference datetime.

  • current_valuation – Current valuation.

  • stoploss – Stop-loss order.

Returns:

bool.

sigtech.framework.strategies.stop_strategy.trailing_abs_loss_trigger(dt, current_valuation, stoploss, **kwargs)

Trigger for trailing absolute loss.

Parameters:
  • dt – Reference datetime.

  • current_valuation – Current valuation.

  • stoploss – Stop-loss order.

Returns:

bool.

sigtech.framework.strategies.stop_strategy.trailing_abs_profit_trigger(dt, current_valuation, stoploss, **kwargs)

Trigger for trailing absolute profit.

Parameters:
  • dt – Reference datetime.

  • current_valuation – Current valuation.

  • stoploss – Stop-loss order.

Returns:

bool.

sigtech.framework.strategies.stop_strategy.trailing_pct_loss_trigger(dt, current_valuation, stoploss, **kwargs)

Trigger for trailing percent loss.

Parameters:
  • dt – Reference datetime.

  • current_valuation – Current valuation.

  • stoploss – Stop-loss order.

Returns:

bool.

sigtech.framework.strategies.stop_strategy.trailing_pct_profit_trigger(dt, current_valuation, stoploss, **kwargs)

Trigger for trailing percent profit.

Parameters:
  • dt – Reference datetime.

  • current_valuation – Current valuation.

  • stoploss – Stop-loss order.

Returns:

bool.

sigtech.framework.strategies.stop_strategy.fixed_pct_range_trigger(dt, current_valuation, stoploss, **kwargs)

Fixed percentage range trigger.

sigtech.framework.strategies.stop_strategy.fixed_abs_range_trigger(dt, current_valuation, stoploss, **kwargs)

Fixed absolute range trigger.

sigtech.framework.strategies.stop_strategy.trailing_pct_range_trigger(dt, current_valuation, stoploss, **kwargs)

Trailing percentage range trigger.

sigtech.framework.strategies.stop_strategy.trailing_abs_range_trigger(dt, current_valuation, stoploss, **kwargs)

Trailing absolute range trigger.

sigtech.framework.strategies.stop_strategy.range_trigger(dt, current_valuation, stoploss, **kwargs)

Trigger for fixed percent profit.

Parameters:
  • dt – Reference datetime.

  • current_valuation – Current valuation.

  • stoploss – Stop-loss order.

Returns:

bool.