Skip to content

stop_loss

Classes

StopLoss

Functions

check_move_sl_to_be
check_move_sl_to_be(average_entry, can_move_sl_to_be, current_candle, sl_price)

Checking to see if we move the stop loss to break even

check_move_tsl_close
check_move_tsl_close(average_entry, current_candle, sl_price)

Checking to see if we move the trailing stop loss

check_move_tsl_pct
check_move_tsl_pct(average_entry, current_candle, sl_price)

Checking to see if we move the trailing stop loss

sl_based_on_candle_body
sl_based_on_candle_body(bar_index, candles)

Long Stop Loss Based on Candle Body Calculator