2021-06-08 19:09:39 +00:00
|
|
|
from enum import Enum
|
|
|
|
|
|
|
|
|
|
|
|
class SignalType(Enum):
|
|
|
|
"""
|
|
|
|
Enum to distinguish between buy and sell signals
|
|
|
|
"""
|
2021-08-25 04:43:58 +00:00
|
|
|
ENTER_LONG = "enter_long"
|
|
|
|
EXIT_LONG = "exit_long"
|
|
|
|
ENTER_SHORT = "enter_short"
|
2021-08-08 09:38:34 +00:00
|
|
|
EXIT_SHORT = "exit_short"
|
2021-07-19 21:58:20 +00:00
|
|
|
|
|
|
|
|
2021-07-21 13:05:35 +00:00
|
|
|
class SignalTagType(Enum):
|
2021-07-19 21:58:20 +00:00
|
|
|
"""
|
2021-07-20 13:40:32 +00:00
|
|
|
Enum for signal columns
|
2021-07-19 21:58:20 +00:00
|
|
|
"""
|
2021-07-21 13:05:35 +00:00
|
|
|
BUY_TAG = "buy_tag"
|
2021-08-18 10:19:17 +00:00
|
|
|
SHORT_TAG = "short_tag"
|
2021-08-24 18:24:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
class SignalDirection(Enum):
|
|
|
|
LONG = 'long'
|
|
|
|
SHORT = 'short'
|