added rounding to Tot Profit % on Sell Reasosn table to be consistent with other percentiles on table.

This commit is contained in:
Yazeed Al Oyoun 2020-01-31 04:53:37 +01:00
parent e2b3907df5
commit 907a61152c

View File

@ -93,7 +93,7 @@ def generate_text_table_sell_reason(
profit_mean = round(result['profit_percent'].mean() * 100.0, 2)
profit_sum = round(result["profit_percent"].sum() * 100.0, 2)
profit_tot = result["profit_abs"].sum()
profit_percent_tot = result["profit_percent"].sum() * 100.0 / max_open_trades
profit_percent_tot = round(result["profit_percent"].sum() * 100.0 / max_open_trades, 2)
tabular_data.append(
[
reason.value,