|
|
@ -7,7 +7,7 @@ from ..interfaces import Indicator, Strategy, Order, PTFState |
|
|
|
|
|
|
|
|
|
|
|
class BuyUpSellDown(Strategy): |
|
|
|
"""Just hold some stock.""" |
|
|
|
"""Buy when indicators are green, sell when red.""" |
|
|
|
|
|
|
|
def __init__(self, indicators: Dict[str, Indicator]): |
|
|
|
"""Init the class""" |
|
|
@ -71,4 +71,4 @@ class BuyUpSellDown(Strategy): |
|
|
|
) |
|
|
|
) |
|
|
|
print(state.stocks) |
|
|
|
return orders # type: ignore |
|
|
|
return orders |
|
|
|