Remove empty functions from checks
This commit is contained in:
@@ -7,10 +7,6 @@ from core.util import logs
|
|||||||
log = logs.get_logger("checks")
|
log = logs.get_logger("checks")
|
||||||
|
|
||||||
|
|
||||||
def run_checks(strategy, x):
|
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
def within_trading_times(strategy, ts=None):
|
def within_trading_times(strategy, ts=None):
|
||||||
if not ts:
|
if not ts:
|
||||||
ts = datetime.utcnow()
|
ts = datetime.utcnow()
|
||||||
@@ -48,10 +44,6 @@ def within_callback_price_deviation(strategy, price, current_price):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
def within_max_loss(strategy):
|
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
def within_trends(strategy, symbol, direction):
|
def within_trends(strategy, symbol, direction):
|
||||||
if strategy.trend_signals.exists():
|
if strategy.trend_signals.exists():
|
||||||
if strategy.trends is None:
|
if strategy.trends is None:
|
||||||
@@ -85,27 +77,3 @@ def within_trends(strategy, symbol, direction):
|
|||||||
else:
|
else:
|
||||||
log.debug("No trend signals configured")
|
log.debug("No trend signals configured")
|
||||||
return True
|
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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user