-
Notifications
You must be signed in to change notification settings - Fork 0
/
martinagle_calculator.py
76 lines (49 loc) · 2.39 KB
/
martinagle_calculator.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
def calculate(start_bet_amount=1,max_streak=15,increase_bet_every_streak=1,increase_multiplier=2,multiplier=2):
#multiplier değeri ile gelecek kar'ı hesaplamak
multiplier_list = []
betting_amount_list = []
#Calculating Template
for i in range(0,max_streak):
if i ==0:
multiplier_list.append(1)
if i !=0:
increase_this_value_is_int = divmod(i,increase_bet_every_streak)
overplus= increase_this_value_is_int[1]
if overplus==0:
a=i-1
multiplier_list.append(multiplier_list[a]*increase_multiplier)
else:
a=i
multiplier_list.append(multiplier_list[a-1])
print("Template: " ,multiplier_list)
# Calculating Real
for i in range(0,max_streak):
if i == 0:
betting_amount_list.append(start_bet_amount)
if i != 0:
increase_this_value_is_int = divmod(i, increase_bet_every_streak)
overplus = increase_this_value_is_int[1]
if overplus == 0:
start_bet_amount = start_bet_amount * increase_multiplier
betting_amount_list.append(start_bet_amount)
else:
betting_amount_list.append(start_bet_amount)
print("Betting amounts: ",betting_amount_list)
#Calculating How much money we need?
all_money=0
for i in range(0,len(betting_amount_list)):
all_money+=betting_amount_list[i]
print("You need this money for start martingale : " ,"$",all_money)
#When we win ,how much profit will be?
print("When it comes green ,how much profit it took?")
when_come_green=[0,(max_streak/2)-1,max_streak-1]
for a in when_come_green:
minus_that_money = 0
for i in range(0,int(a)):
minus_that_money+=betting_amount_list[i+1]
profit= betting_amount_list[int(a)] * multiplier
profit -=minus_that_money
print(int(a+1),":",profit)
#Calculate( FIRST BET AMOUNT?, MAX STREAKS YOU WANT?, AFTER HOW MUCH RED YOUR BET WILL INCREASE?, HOW MUCH WILL IT INCREASE? (X2), YOUR MULTIPLY (X2) )
#Calculate(start bet amount,max streak, increase streak, increase multiplier ,multiplier )
calculate(start_bet_amount=5,max_streak=10,increase_bet_every_streak=1,increase_multiplier=2,multiplier=2)