View difference between Paste ID: iZcAzgZ8 and zdEJn6vb
SHOW: | | - or go back to the newest paste.
1
--[[
2
-Labouchère simplifié
3
-https://fr.wikipedia.org/wiki/Martingale#La_Labouchère
4
]]
5
6
--https://bit-exo.com/?ref=pierresert1
7
 
8
--https://www.bitsler.com/?ref=pierresert1
9
 
10
--https://bitvest.io?r=100548
11
12
--https://www.bitdice.me/?r=29766
13
14
enablezz=false
15
enablesrc=false
16
17
perte=0
18
19
div=100000000
20
21
--balance=10000
22
--SETTING--------------
23
chance        = 49.5
24
bb            = 1/div
25
target_profit = bb
26
target        = balance*2
27
limite        = 0
28
-----------------------
29
30
bbDB=bb
31
32
33
function target_et_limite()
34
    if (balance-nextbet) < limite then
35
        print("MISSION FAILLED! C'EST LE JEU SVP FAITES PAS DE BÊTISE") stop()
36
    end
37
    if balance >= target then
38
        print("TARGET REACHED GG !!!") stop()
39
    end
40
end
41
42
function simu_printInfo()
43
44
    print("wagered= " ..wagered)
45
    print("profit= " ..profit)
46
    print("PERF= " ..(wagered/profit)*100 .."%")
47
    print ("chance= " ..chance)
48
    print("nextbet= " ..nextbet .." N° " ..bets)
49
end
50
51
bestID,badID,pirePERTE,bestPROFIT=0,0,0,0
52
function bestBETid()
53
54
    if currentprofit >= bestPROFIT then
55
        bestID=lastBet.id
56
        bestPROFIT=currentprofit
57
    end
58
    
59
    if currentprofit <= pirePERTE then
60
        badID=lastBet.id
61
        pirePERTE=currentprofit
62
    end
63
    
64
    print("PROFIT MAX= " ..bestID)
65
    print("PERTE MAX= " ..badID)
66
    
67
end
68
69
70
nextbet=bb
71
72
function dobet()
73
74
    perte += currentprofit
75
    
76
    nextbet = previousbet+bb 
77
    if win then
78
        bb += bbDB
79
    end
80
    
81
    if perte >= target_profit then
82
        bb      = bbDB
83
        nextbet = bb
84
        perte   = 0
85
    end
86
    
87
    --bestBETid()
88
    target_et_limite()
89
    simu_printInfo()
90
    
91
end