diff --git a/v2realbot/controller/services.py b/v2realbot/controller/services.py index af7a249..295ed32 100644 --- a/v2realbot/controller/services.py +++ b/v2realbot/controller/services.py @@ -688,6 +688,11 @@ def populate_metrics_output_directory(strat: StrategyInstance, inter_batch_param res["profit"]["long_losses"] = round(long_losses,2) res["profit"]["short_wins"] = round(short_wins,2) res["profit"]["short_losses"] = round(short_losses,2) + + mpt_string = "PT"+str(max_profit_time.hour)+":"+str(max_profit_time.minute) if max_profit_time is not None else "" + mlt_string ="LT"+str(max_loss_time.hour)+":"+str(max_loss_time.minute) if max_loss_time is not None else "" + ##summary pro rychle zobrazeni P333L-222 PT9:30 PL10:30 + res["profit"]["sum"]="P"+str(int(max_profit))+"L"+str(int(max_loss))+" "+ mpt_string+" " + mlt_string #vlozeni celeho listu res["prescr_trades"]=json.loads(json.dumps(strat.state.vars.prescribedTrades, default=json_serial)) diff --git a/v2realbot/static/index.html b/v2realbot/static/index.html index 9c45630..2454784 100644 --- a/v2realbot/static/index.html +++ b/v2realbot/static/index.html @@ -82,19 +82,34 @@ - + + + + + + + + - + + + + + + // highlightAll(); + --> @@ -236,6 +251,9 @@ +