binary-com / binary-bot

Visual automation for binary.com
binary-bot.binary.sx
MIT License
232 stars 523 forks source link

Want to start 2 bot exactly at the same time #375

Closed sarderiftekhar closed 7 years ago

sarderiftekhar commented 7 years ago

Hi, I want to start 2 bot at the exact same time. Any way to do that?

image

Fruitfella commented 7 years ago

EXACT SAME TIME ? you can start it at the same time. but if what you mean is make 2 purchases at exact same time, afaik you cant. I tried using time as the condition to purchase so that 2 bots will purchase differently (1 rise, 1 fall) for the same strategy at exact same time, but its always end up differs 1tick, it seem like the server only accept 1 proposal from 1 account at a time so the other one need to queue. well, dunno if its my bot that in wrong though, i just gave up on that idea.

sarderiftekhar commented 7 years ago

I want to start at the same time later on they differ dosnt matter....

Fruitfella commented 7 years ago

use Seconds since epoch you can make it something like this capture thats 60 mean minute, so the bot would start at the next minute (when the second clock is zero), like 01:24:00 or 12:00:00, i cant find the right word to explain it (blame my poor english) hope you get it. change it to 3600 if you want the bot start at the next hour (when both minute and second clock is zero), like 01:00:00 or 08:00:00.

sarderiftekhar commented 7 years ago

Thanks will try and lets see.............

okovalov commented 7 years ago

@Fruitfella

EXACT SAME TIME ? you can start it at the same time. but if what you mean is make 2 purchases at exact same time, afaik you cant. I tried using time as the condition to purchase so that 2 bots will purchase differently (1 rise, 1 fall) for the same strategy at exact same time, but its always end up differs 1tick, it seem like the server only accept 1 proposal from 1 account at a time so the other one need to queue. well, dunno if its my bot that in wrong though, i just gave up on that idea.

not only that unfortunately... even if that was allowed by the broker, it would be still happening one after another because of the nature of the process how js calls are handled by the browser. it is a long story to explain, but to make long story short I would say it is not possible to run two js calls at the same time (it would be better to say - two events can not arrive at the same time immediately as well as they can not be triggered). theoretically speaking, you could almost get it started almost at same time by doing smth like this

function botA() {
    console.log(lastTick, 'a');
}

function botB() {
    console.log(lastTick, 'b');
}

(function () {
    setInterval(botA, 0);
    setInterval(botB, 0);
})();

having this you would very likely to get same last tick for both bots (I have not tested it though) AND having them started the purchase same time BUT that very likely is not allowed by the broker..

aminmarashi commented 7 years ago

@okovalov there are other obstacles, such as network delay, processing delay, etc. This requires careful investigation before implementation.

sarderiftekhar commented 7 years ago

@Fruitfella

Its not trading at all. I need them to start at the same only at the beginning. After that they can continue on their own.....

okovalov commented 7 years ago

@sarderiftekhar believe me , there is no reason to start them at same time :) what you need is:

sarderiftekhar commented 7 years ago

Thanks everyone.........

JGihon commented 6 years ago

Hey Guys,

I have managed this thing. My bots can enter trade exactly on the same tick and same second! Just to be clear - by using the same account. I can share and I also have questions especially to Okovalov... Hi...

folubebe commented 6 years ago

pls share

JGihon commented 6 years ago

@folubebe Please send me an email and I will help you. (Can send you examples, etc.) gihonlabs@gmail.com You can ask questions I will answer according my best.

folubebe commented 6 years ago

Do you know how I can subtract the K and D values of Stochastic using the bots?

On Tue, Jul 3, 2018, 4:32 PM JGihon notifications@github.com wrote:

@folubebe https://github.com/folubebe Please send me an email and I will help you. (Can send you examples, etc.) gihonlabs@gmail.com You can ask questions I will answer according my best.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/binary-com/binary-bot/issues/375#issuecomment-402198734, or mute the thread https://github.com/notifications/unsubscribe-auth/Amey8TTZlqcxoGQ9IY4yjyXHov5lhSfoks5uC45vgaJpZM4OxVWK .

kkptra commented 5 years ago

Hi, can you please share the bot or code, how you have managed to open 2 positions at exact same time... Mail me at Kkptra@gmail.com thanks

bouhali00 commented 5 years ago

Hi, I have a aplication to use manualement for strat match bot at same time. If you want, i can share with you... bouton autoclick

murali139 commented 5 years ago

please share to me , muralikumar1245@gmail.com

On 24/12/2018, bouhali00 notifications@github.com wrote:

Hi, I have a aplication to use manualement for strat match bot at same time. If you want, i can share with you... bouton
autoclick

-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/binary-com/binary-bot/issues/375#issuecomment-449721557

bouhali00 commented 5 years ago

Her is the aplication. autoclick setup.zip

murali139 commented 5 years ago

thank you bro, happy christmas

On 25/12/2018, bouhali00 notifications@github.com wrote:

Her is the aplication. autoclick setup.zip

-- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/binary-com/binary-bot/issues/375#issuecomment-449768534

kudziubet commented 5 years ago

Hi, can you please share the bot or code, how you have managed to open 2 positions at exact same time... Mail me at kudziubet@gmail.com thanks

Tebu1429 commented 5 years ago

@bouhali00 ,how do you open this Autoclick.? Thank you!