Remove empty functions from checks
This commit is contained in:
parent
db58fb34eb
commit
8bb5c2c91b
|
@ -7,10 +7,6 @@ from core.util import logs
|
|||
log = logs.get_logger("checks")
|
||||
|
||||
|
||||
def run_checks(strategy, x):
|
||||
pass
|
||||
|
||||
|
||||
def within_trading_times(strategy, ts=None):
|
||||
if not ts:
|
||||
ts = datetime.utcnow()
|
||||
|
@ -48,10 +44,6 @@ def within_callback_price_deviation(strategy, price, current_price):
|
|||
return False
|
||||
|
||||
|
||||
def within_max_loss(strategy):
|
||||
pass
|
||||
|
||||
|
||||
def within_trends(strategy, symbol, direction):
|
||||
if strategy.trend_signals.exists():
|
||||
if strategy.trends is None:
|
||||
|
@ -85,27 +77,3 @@ def within_trends(strategy, symbol, direction):
|
|||
else:
|
||||
log.debug("No trend signals configured")
|
||||
return True
|
||||
|
||||
|
||||
def within_position_size(strategy):
|
||||
pass
|
||||
|
||||
|
||||
def within_protection(strategy):
|
||||
pass
|
||||
|
||||
|
||||
def within_max_open_trades(strategy):
|
||||
pass
|
||||
|
||||
|
||||
def within_max_open_trades_per_asset(strategy):
|
||||
pass
|
||||
|
||||
|
||||
def within_max_risk(strategy):
|
||||
pass
|
||||
|
||||
|
||||
def within_crossfilter(strategy):
|
||||
pass
|
||||
|
|
Loading…
Reference in New Issue