var minValue=1E-8,maxLoss=1E-7,aimedProfit=5E-6,maxOps=50,endResult=0,ops=0,bet=function(a,b,c){$.get("?op=double_your_btc&m="+(b?"lo":"hi")+"&stake="+a+"&multiplier=2&jackpot=0",function(d){d=d.split(":");$("#balance").html(d[3]);c(a,b,"w"===d[1])})},martingale=function(a,b,c){c||a>=maxLoss&&0!==maxLoss?(b=!b,newValue=minValue):newValue=2*a;endResult=c?endResult+a:en​dResult-a;console.log((c?"+":"-")+a);ops++;(ops<maxOps||0===maxOps)&&(endResult<aimedProfit||0===aimedProfit)?bet(newValue,b,martingale):