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-23 19:12:46 +00:00
|
|
|
BUY = "buy" # To be renamed to enter_long
|
|
|
|
SELL = "sell" # To be renamed to exit_long
|
|
|
|
SHORT = "short" # Should be "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'
|