alexaxbreadbytes commited on
Commit
0788d2d
·
verified ·
1 Parent(s): d827690

win rate round better

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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,2)
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])