Skip to content

Commit

Permalink
Update base_strategy.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Chandlercjy authored Apr 19, 2018
1 parent b41edda commit ddf2592
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions OnePy/sys_module/base_strategy.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ def __init__(self):
self.sell = SignalGenerator(ActionType.Sell).func_2
self.short_sell = SignalGenerator(ActionType.Short_sell).func_1
self.short_cover = SignalGenerator(ActionType.Short_cover).func_2
self.exit_all = SignalGenerator(
ActionType.Exit_all).func_1 # TODO:多个信号出现如何处理冲突
self.cancel_all = SignalGenerator(
ActionType.Cancel_all).func_1 # TODO:多个信号出现如何处理冲突
# self.exit_all = SignalGenerator(
# ActionType.Exit_all).func_1 # TODO:多个信号出现如何处理冲突
# self.cancel_all = SignalGenerator(
# ActionType.Cancel_all).func_1 # TODO:多个信号出现如何处理冲突

@property
def gvar(self):
Expand Down

0 comments on commit ddf2592

Please sign in to comment.