Module trailing

Source

Functionsยง

trailing_stop_calculate
Calculates the new trigger and limit prices for a trailing stop order.
trailing_stop_calculate_with_bid_ask
Calculates the trailing stop price using bid and ask prices.
trailing_stop_calculate_with_last
Calculates the trailing stop price using the last traded price.