Spaces:
Running
Running
fix kelly methods
Browse files
app.py
CHANGED
|
@@ -44,7 +44,7 @@ def simulate(initialcapital , bet_chance , betsize , rewardrisk, riskpercent, ma
|
|
| 44 |
|
| 45 |
all_profits.append(profits)
|
| 46 |
df = pd.DataFrame(all_profits).T
|
| 47 |
-
plot1 = df.hvplot.line( logy=True, height=600, width=1200).opts(show_grid=True, ylabel='Profit', xlabel='Bet') * hvs.
|
| 48 |
|
| 49 |
bust = [ x for x in all_profits if x[-1] <= 1 ]
|
| 50 |
rich = [ x for x in all_profits if x[-1] >= max_profit ]
|
|
|
|
| 44 |
|
| 45 |
all_profits.append(profits)
|
| 46 |
df = pd.DataFrame(all_profits).T
|
| 47 |
+
plot1 = df.hvplot.line( logy=True, height=600, width=1200).opts(show_grid=True, ylabel='Profit', xlabel='Bet') * hvs.HLine(max_profit)
|
| 48 |
|
| 49 |
bust = [ x for x in all_profits if x[-1] <= 1 ]
|
| 50 |
rich = [ x for x in all_profits if x[-1] >= max_profit ]
|