调整金额
This commit is contained in:
@@ -19,7 +19,7 @@ class LotteryPredictorV14Profit:
|
||||
ODDS = float(conf["init"]["ODDS"])
|
||||
REBATE_RATE = float(conf["dynamic"]["REBATE_RATE"])
|
||||
BASE_BET_UNIT = int(conf["init"]["BASE_BET_UNIT"])
|
||||
_bet_this_round = int(conf["init"]["BET_THIS_ROUND"])
|
||||
_bet_this_round = BASE_BET_UNIT
|
||||
SAFE_BET_LEVEL_1 = 0.05
|
||||
SAFE_BET_LEVEL_2 = 0.10
|
||||
SAFE_BET_LEVEL_3 = 0.15
|
||||
@@ -28,7 +28,7 @@ class LotteryPredictorV14Profit:
|
||||
RADICAL_BET_LEVEL_0 = 0.05
|
||||
RADICAL_BET_LEVEL_1 = 0.1
|
||||
RADICAL_BET_LEVEL_2 = 0.2
|
||||
INITIAL_CAPITAL = int(conf["init"]["INITIAL_CAPITAL"])
|
||||
INITIAL_CAPITAL = BASE_BET_UNIT * 200
|
||||
DAILY_STOP_LOSS_RATE = float(conf["init"]["DAILY_STOP_LOSS_RATE"]) # 绝佳熔断点:6000元熔断
|
||||
POSITION_LOOKBACK_PERIODS = int(conf["dynamic"]["POSITION_LOOKBACK_PERIODS"])
|
||||
OMISSIONS_LEVEL_1 = int(conf["dynamic"]["OMISSIONS_LEVEL_1"])
|
||||
@@ -126,10 +126,17 @@ class LotteryPredictorV14Profit:
|
||||
start_time, end_time = date_range
|
||||
if start_time <= current_date <= end_time:
|
||||
_date_range = (start_time, end_time)
|
||||
break
|
||||
|
||||
if not _date_range:
|
||||
current_date_start_time = pd.to_datetime(current_date.date()) + timedelta(hours=7, minutes=5)
|
||||
current_date_end_time = current_date_start_time + timedelta(hours=22, minutes=55)
|
||||
|
||||
if current_date.hour <= 6:
|
||||
current_date_start_time = pd.to_datetime(current_date.date()) + timedelta(days=-1, hours=7, minutes=5)
|
||||
current_date_end_time = current_date_start_time + timedelta(hours=22, minutes=55)
|
||||
else:
|
||||
current_date_start_time = pd.to_datetime(current_date.date()) + timedelta(hours=7, minutes=5)
|
||||
current_date_end_time = current_date_start_time + timedelta(hours=22, minutes=55)
|
||||
|
||||
_date_range = (current_date_start_time, current_date_end_time)
|
||||
|
||||
self.daily_pnl_tracker[_date_range] = {'pnl': 0, 'bets': 0, 'miss_count': 0}
|
||||
|
||||
Reference in New Issue
Block a user