Spaces:
Build error
Build error
win rate round better
Browse files
app.py
CHANGED
|
@@ -113,7 +113,7 @@ def get_coin_info(df_coin, principal_balance,plheader):
|
|
| 113 |
numtrades = int(len(df_coin))
|
| 114 |
numwin = int(sum(df_coin[plheader] > 0))
|
| 115 |
numloss = int(sum(df_coin[plheader] < 0))
|
| 116 |
-
winrate = np.round(100*numwin/numtrades,
|
| 117 |
|
| 118 |
grosswin = sum(df_coin[df_coin[plheader] > 0][plheader])
|
| 119 |
grossloss = sum(df_coin[df_coin[plheader] < 0][plheader])
|
|
|
|
| 113 |
numtrades = int(len(df_coin))
|
| 114 |
numwin = int(sum(df_coin[plheader] > 0))
|
| 115 |
numloss = int(sum(df_coin[plheader] < 0))
|
| 116 |
+
winrate = np.round(100*numwin/numtrades,4)
|
| 117 |
|
| 118 |
grosswin = sum(df_coin[df_coin[plheader] > 0][plheader])
|
| 119 |
grossloss = sum(df_coin[df_coin[plheader] < 0][plheader])
|