Remove some comments
This commit is contained in:
parent
8d9fe15346
commit
ea0a6f21ce
|
@ -95,10 +95,10 @@ class ActiveManagement(object):
|
||||||
sendmsg(self.strategy.user, msg, title=f"AMS: {action}")
|
sendmsg(self.strategy.user, msg, title=f"AMS: {action}")
|
||||||
|
|
||||||
def adjust_position_size(self, trade_id, new_size):
|
def adjust_position_size(self, trade_id, new_size):
|
||||||
pass
|
pass # TODO
|
||||||
|
|
||||||
def adjust_protection(self, trade_id, new_protection):
|
def adjust_protection(self, trade_id, new_protection):
|
||||||
pass
|
pass # TODO
|
||||||
|
|
||||||
def bulk_adjust(self, action_cast_list):
|
def bulk_adjust(self, action_cast_list):
|
||||||
for item in action_cast_list:
|
for item in action_cast_list:
|
||||||
|
@ -130,21 +130,6 @@ class ActiveManagement(object):
|
||||||
if action == "none":
|
if action == "none":
|
||||||
return
|
return
|
||||||
self.add_action(action, check_type, trade_id, **kwargs)
|
self.add_action(action, check_type, trade_id, **kwargs)
|
||||||
# TODO: close/notify for:
|
|
||||||
# - trading time
|
|
||||||
# - trends
|
|
||||||
# - position size
|
|
||||||
# - protection
|
|
||||||
# - asset groups
|
|
||||||
# - crossfilter
|
|
||||||
# - max open trades
|
|
||||||
# - max open trades per symbol
|
|
||||||
# - max loss
|
|
||||||
# - max risk
|
|
||||||
|
|
||||||
# TODO: adjust for:
|
|
||||||
# - position size
|
|
||||||
# - protection
|
|
||||||
|
|
||||||
def check_trading_time(self, trade):
|
def check_trading_time(self, trade):
|
||||||
open_ts = trade["open_time"]
|
open_ts = trade["open_time"]
|
||||||
|
|
Loading…
Reference in New Issue