turtle_trading.stops package

Submodules

turtle_trading.stops.stops module

stop placement

class turtle_trading.stops.stops.Stop(stop_system: str, unit_list: list[float], n: float)

Bases: object

this class represents the process of calculating the stops for all units of position

check_system()

which system to use: whipsaw or regular

regular_stops()

the regular stop strategy

whipsaw_stops()

the whipsaw stop strategy

turtle_trading.stops.stops.getstops(stop_system: str, unit_list: list[float], orig_n: float)

shortcut function for class: Stop

Module contents