tailwind #9

Manually merged
peperunas merged 157 commits from tailwind into master 2020-12-28 18:38:52 +00:00
Showing only changes of commit 2130f8acb9 - Show all commits

View File

@ -42,7 +42,8 @@ class PositionState(Enum):
LOSS = 0,
BREAK_EVEN = 1,
MINIMUM_PROFIT = 2,
PROFIT = 3
PROFIT = 3,
UNDEFINED = 4
def color(self) -> str:
if self == self.LOSS or self == self.CRITICAL:
@ -77,7 +78,8 @@ class Event:
class PositionWrapper:
def __init__(self, position: Position, state: PositionState = PositionState.LOSS, net_profit_loss: float = None,
def __init__(self, position: Position, state: PositionState = PositionState.UNDEFINED,
net_profit_loss: float = None,
net_profit_loss_percentage: float = None):
self.position: Position = position
self.__net_profit_loss: float = net_profit_loss