Bitcoin Forum
May 24, 2024, 04:17:10 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 [2] 3 4 5 6 7 8 »
21  Economy / Gambling discussion / Re: Seuntjie' Dice bot programmers mode discussion. on: March 29, 2017, 07:39:14 PM
hi,

i need a code for:

when i win change bethigh to true if previously is false and if bethigh are true set to false

anyone help me?

22  Economy / Gambling / Re: ▂▃▅▆█ BITSLER █▆▅▃▂ 🎁 7,000,000,000 bets promotion🎁 FORUM SOON on: March 17, 2017, 08:22:32 PM
hi,
i have a problem to login in my account
whazzapp?Huh
23  Economy / Gambling discussion / Re: Seuntjie' Dice bot programmers mode discussion. on: March 17, 2017, 11:06:20 AM
one more question...
i want print currentprofit but i see this -5E-07  why?
Because the value is very very small (actually so small it is negative... -0.0000005 Tongue) and being stored as a decimal value I believe, so for nice "round" numbers, it defaults to the "E" format for dsiplay. You can always use something like:

Code:
print("Profit: " .. string.format("%9.8f", currentprofit) )

if you want to force it to display as 0.0000000X...


tnx a lot!  Smiley
24  Economy / Gambling discussion / Re: Seuntjie' Dice bot programmers mode discussion. on: March 16, 2017, 10:54:20 PM
one more question...
i want print currentprofit but i see this -5E-07  why?
25  Economy / Gambling discussion / Re: Seuntjie' Dice bot programmers mode discussion. on: March 16, 2017, 10:51:30 PM
tnx a lot!
26  Economy / Gambling discussion / Re: Seuntjie' Dice bot programmers mode discussion. on: March 16, 2017, 10:37:25 PM
tnx

but if i want loop a script???
27  Economy / Gambling discussion / Re: Seuntjie' Dice bot programmers mode discussion. on: March 16, 2017, 09:05:08 PM
hi,

it's possible auto restart after stop()...like this?

Code:

if (myprofit >= 0.00001000 ) then
stop()
print('wow')
myprofit = 0
start()     <-----------------------
end



 
 
28  Economy / Gambling discussion / Re: Seuntjie' Dice bot programmers mode discussion. on: March 12, 2017, 09:52:40 PM
the site is bitsler
29  Economy / Gambling discussion / Re: Seuntjie' Dice bot programmers mode discussion. on: March 12, 2017, 09:30:54 PM
this is the screenshot

Code:
https://ibb.co/nrjcVa
https://ibb.co/fhUBqa
30  Economy / Gambling discussion / Re: Seuntjie' Dice bot programmers mode discussion. on: March 12, 2017, 08:54:09 PM
no nothing  Sad
31  Economy / Gambling discussion / Re: Seuntjie' Dice bot programmers mode discussion. on: March 12, 2017, 07:39:08 PM
this is my script:

Code:
chance = 90
basebet = .00000050
startbalance = balance
nextbet = basebet
bethigh = true
rollcount = 0
myprofit = 0

function dobet()
rollcount += 1
myprofit += currentprofit


if (myprofit >= 0.00000200 ) then
stop()
print("profit ok")
resetseed();
end


if win then
nextbet = previousbet

else
nextbet = previousbet * 1.22
end
end


but when i start the script with start() the bet is non continuous
execute only 1 bet  why?
32  Economy / Gambling discussion / Re: Seuntjie' Dice bot programmers mode discussion. on: March 12, 2017, 01:53:52 PM
hi,

i need to stop my bet when my current profit is egual or superior at 0.00100000

i have write

if (currentprofit >= 0.00100000 ) then
stop()
end

but don't work

anyone help me



currentprofit is the profit from the last bet.  You need to keep track of it.  Create a variable, I'll call it myprofit.  init it to Zero in the beginning of the script.
Then at the beginning of the do bet function add in the currentprofit from the last bet. 

so

myprofit = 0       in the start of the script. 

then

myprofit += currentprofit       at the beginning of the dobet function add in the profit from the last bet. 

then add your code to check....

if (myprofit >= 0.00100000 ) then
stop()
end

tnx a lot!
33  Economy / Gambling discussion / Re: Seuntjie' Dice bot programmers mode discussion. on: March 12, 2017, 12:04:44 PM
hi,

i need to stop my bet when my current profit is egual or superior at 0.00100000

i have write

if (currentprofit >= 0.00100000 ) then
stop()
end

but don't work

anyone help me

34  Economy / Gambling discussion / Re: dice bot if win negative multiplier on: March 12, 2017, 12:08:11 AM
tnx
35  Economy / Gambling discussion / Re: Seuntjie' Dice bot programmers mode discussion. on: March 11, 2017, 11:19:05 PM
hi,

i need to set negative multipler (increase/decrease) when i winning event
anyone help me???


x = x * .5

makes x = 1/2 x

if example i need to set...

if win then
nextbet = previousbet * -22%


36  Economy / Gambling discussion / dice bot if win negative multiplier on: March 11, 2017, 10:44:46 PM
hi,

i need to set in my script a negative multiplier on win (ex -22%)
anyone can help me?
37  Economy / Gambling discussion / Re: Seuntjie' Dice bot programmers mode discussion. on: March 11, 2017, 10:34:00 PM
hi,

i need to set negative multipler (increase/decrease) when i winning event
anyone help me???
38  Economy / Gambling discussion / Re: Seuntjie' Dice bot programmers mode discussion. on: January 21, 2017, 05:55:13 PM
hi,

anyone can help me?

i need to make this script...

payout : 3.33
bet: 0.00000015
change: 29.73
roll over to win: 70.26
on lose increase 50%

and when win 0.00015000
reseed

please help me
39  Economy / Exchanges / Re: C#AND POLONIEX API CONNECT on: August 19, 2016, 10:39:06 PM
i write the complete code

Code:
        
        private readonly string _apiKey = "N68R67PJ-BZ89CNWB-O2UOOH59-YYFSX9MB"; // Random numbers and letters
        private readonly string _apiSecret = "345eaefc0bf5fbb5a048de7f8dc728646b61249f9c8fd9c1a99319e3ed0d55a6b8e43702cea379b2d136fe9b877f132706ceebc2930b220322b23a207151ea78";
        private long nonce = DateTime.Now.Ticks;




        private string CreateSignature()
        {
            //string msg = string.Format("{0}{1}{2}", _apiKey);

            return ByteArrayToString(SignHMACSHA512(_apiSecret, StringToByteArray(_apiKey))).ToUpper();
        }

        private static byte[] SignHMACSHA512(String key, byte[] data)
        {
            HMACSHA512 hashMaker = new HMACSHA512(Encoding.ASCII.GetBytes(key));
            return hashMaker.ComputeHash(data);
        }

        private static byte[] StringToByteArray(string str)
        {
            return System.Text.Encoding.ASCII.GetBytes(str);
        }

        private static string ByteArrayToString(byte[] hash)  //rimuove - e converte in bite
        {
            return BitConverter.ToString(hash).Replace("-", "").ToLower();
        }





        private void button5_Click(object sender, EventArgs e)
        {

            const string WEBSERVICE_URL = "https://poloniex.com/tradingApi";
            try
            {


                var webRequest = System.Net.WebRequest.Create(WEBSERVICE_URL);
                if (webRequest != null)
                {
                    webRequest.Method = "POST";
                    webRequest.Timeout = 12000;
                    webRequest.ContentType = "application/x-www-form-urlencoded";
                    webRequest.Headers.Add("Key", _apiKey);
                    webRequest.Headers.Add("Sign", CreateSignature());     // keysecret
                   
                    var postData = "&nonce=&command=returnBalances";
                    var data = Encoding.ASCII.GetBytes(postData);
                   



                    using (System.IO.Stream s = webRequest.GetResponse().GetResponseStream())
                    {
                        using (System.IO.StreamReader sr = new System.IO.StreamReader(s))
                        {
                            var jsonResponse = sr.ReadToEnd();
                            Console.WriteLine(String.Format("Response: {0}", jsonResponse));
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.ToString());
            }



i have remove the extra headers but see the error
40  Economy / Exchanges / C#AND POLONIEX API CONNECT on: August 19, 2016, 04:00:03 PM
hi,

i need an help to connect to poloniex api (non public) with c#
anyone can help me Huh




Code:
 const string WEBSERVICE_URL = "https://poloniex.com/tradingApi";
            try
            {
                var webRequest = System.Net.WebRequest.Create(WEBSERVICE_URL);
                if (webRequest != null)
                {
                    webRequest.Method = "POST";
                    webRequest.Timeout = 12000;
                    webRequest.ContentType = "application/x-www-form-urlencoded";
                    webRequest.Headers.Add("Key", _apiKey);
                    webRequest.Headers.Add("Sign", CreateSignature());
                    webRequest.Headers.Add("command", "returnDepositAddresses");
                    

                    using (System.IO.Stream s = webRequest.GetResponse().GetResponseStream())
                    {
                        using (System.IO.StreamReader sr = new System.IO.StreamReader(s))
                        {
                            var jsonResponse = sr.ReadToEnd();
                            Console.WriteLine(String.Format("Response: {0}", jsonResponse));
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.ToString());
            }



i see the error

Code:

"Response: {"error":"Invalid command."}"

tnx a lot!
Pages: « 1 [2] 3 4 5 6 7 8 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!