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?
|
|
|
hi, i have a problem to login in my account whazzapp?
|
|
|
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 ) 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: print("Profit: " .. string.format("%9.8f", currentprofit) ) if you want to force it to display as 0.0000000X... tnx a lot!
|
|
|
one more question... i want print currentprofit but i see this -5E-07 why?
|
|
|
tnx
but if i want loop a script???
|
|
|
hi, it's possible auto restart after stop()...like this? if (myprofit >= 0.00001000 ) then stop() print('wow') myprofit = 0 start() <----------------------- end
|
|
|
this is the screenshot https://ibb.co/nrjcVa https://ibb.co/fhUBqa
|
|
|
no nothing
|
|
|
this is my script: 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?
|
|
|
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!
|
|
|
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
|
|
|
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%
|
|
|
hi,
i need to set in my script a negative multiplier on win (ex -22%) anyone can help me?
|
|
|
hi,
i need to set negative multipler (increase/decrease) when i winning event anyone help me???
|
|
|
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
|
|
|
i write the complete 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
|
|
|
hi, i need an help to connect to poloniex api (non public) with c# anyone can help me 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 "Response: {"error":"Invalid command."}"
tnx a lot!
|
|
|
|