Remove empty functions from checks

This commit is contained in:
Mark Veidemanis 2023-02-20 07:20:22 +00:00
parent db58fb34eb
commit 8bb5c2c91b
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 0 additions and 32 deletions

View File

@ -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