binary-com / binary-bot

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

Is it possible to Run Define trade options every thick? #1156

Closed mexarrinha closed 5 years ago

mexarrinha commented 5 years ago

Hello, I would like to know how can i get the last 25 digits? I can get the last digit ok but i can't figure out the 25.

Thank you Best regards

pieterbrandsen commented 5 years ago

https://github.com/binary-com/binary-bot/issues/223 There you go!

I cant get it to work but there it is.

mexarrinha commented 5 years ago

Thanks i manage to put it working.

Just follow the example everything works. But i do get an error. How many ticks happens in one second? Because i'm set the digit prediction to be equal to the last digit, but when i do the audit, the last digit does not match with what was assign to the prediction...

mexarrinha commented 5 years ago

For example:

If last three digits are 1, set tick prediction to be 1 and buy differs. but the tick that is assign to the tick prediction is never the three digits before.. witch in this example would be 1.. Is it possible to get that digit or not? thanks

binary-ex-machina commented 5 years ago

@mexarrinha you can achieve what you want like this. 1 Tick is 2 seconds.

When you send the order to buy the contract on block 2, it will enter in the next tick. If you send the order on 12:00:03, it will enter on the tick in 12:00:04. If you send the order on 12:00:02, it will enter on the tick from 12:00:04. The strategy that you are trying to make will not be profitable, since you will get 2-3 losses in row the same way.

image

mexarrinha commented 5 years ago

@binary-ex-machina i was seeing that last night. The problem is that i assign the Prediction to the number that has came out for 3 times in a row. But it never does assign correctly. I tried setting it to tick one, tick two, tick three even tick four. The Prediction assign is always different from those 3 equal numbers. On the image below you can see it cames out ....4 .....4 ......4 and then it sets the prediction to 1.. it should set prediction to 4 and buy differs

untitled-2

binary-ex-machina commented 5 years ago

if you follow and use these blocks https://github.com/binary-com/binary-bot/issues/1156#issuecomment-459715736, when the digit 1 appears three times in a row, it will place a trade with last digit prediction 1. In case you want to be number 4, change it on all places that check with number 1.

mexarrinha commented 5 years ago

@binary-ex-machina ok like that it actually works. So it's not possible to create a variable for the Prediction and then set it like if num4 cames out 3 times "set predictionNumber to 4" or if 0 cames out 3 times " set prediction number to 3" ? Thank you

binary-ex-machina commented 5 years ago

it's possible, but what is the point? this will not prevent multiple losses, the result will be the same if you play without all this "fake" analysis. Digits are random, no matter what pattern you "think" it works.

mexarrinha commented 5 years ago

Can you post a picture with an simple example? Because when i try to do it, i think it's correct but it never assigns it correctly. if i only search for one number like you do on the example above and set the prediction previously it does work. Computers generate numbers randomly but normally and like you see if you put on 1000 thicks, all thicks have a % of almost 10% witch is 100 times each numbers. So yes they are unpredictable but you can still have some good odds.

I'm just using digits to learn the bot program, doing Rsi or ema's crossOvers i don't know if it is as easy as tradingView bot.

binary-ex-machina commented 5 years ago

keep trying, it's not simple to do it. Number generation will always have % on a certain number of digits. if you analyse 1 million digits, you will find each digit with ~10% appearance. The number of ticks analysed will influentiate the result.

pieterbrandsen commented 5 years ago

Hey, can you maybe send the file so i can maybe help And test too!

Op za 2 feb. 2019 om 19:21 schreef mexarrinha notifications@github.com

Can you post a picture with an simple example? Because when i try to do it, i think it's correct but it never assigns it correctly. if i only search for one number like you do on the example above and set the prediction previously it does work. Computers generate numbers randomly but normally and like you see if you put on 1000 thicks, all thicks have a % of almost 10% witch is 100 times each numbers. So yes they are unpredictable but you can still have some good odds.

I'm just using digits to learn the bot program, doing Rsi or ema's crossOvers i don't know if it is as easy as tradingView bot.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/binary-com/binary-bot/issues/1156#issuecomment-459987164, or mute the thread https://github.com/notifications/unsubscribe-auth/ArgpgqSBWoDjkQY7uspzPLLiltM9JFGvks5vJdcVgaJpZM4aaOdN .

binary-ex-machina commented 5 years ago

@mexarrinha send the image of this contract details.

mexarrinha commented 5 years ago

Sorry my bad i think @binary-ex-machina. At least i went to check on the profit table and it is green now. It is not the first time that i saw it, but if it corrects itself all good.

Maybe you can help me with this problem them. I don't know if i'm doing something wrong, but whe: thickOne = thickTwo && thickTwo = thickThree ( 1 ); the Digit prediction should be set to ( 1 ).

But it doesn't, it sets Digit prediction to a random number... What am i doing wrong?

bot

pieterbrandsen commented 5 years ago

Maybe is it better to Make a bot for >2 because then you get 40% profit instead of 10 and 30% lose change instead of 10

Then we can do the samething but then look for:

2 a high amount of times so its good because 70% change of happening <3 maybe the best because a easier way to look if its gonna be higher And profit is Higher so easier money back And so No high martingrale if martingrale!

Op zo 3 feb. 2019 om 17:46 schreef mexarrinha notifications@github.com

Sorry my bad i think @binary-ex-machina https://github.com/binary-ex-machina. At least i went to check on the profit table and it is green now. It is not the first time that i saw it, but if it corrects itself all good.

Maybe you can help me with this problem them. I don't know if i'm doing something wrong, but whe: thickOne = thickTwo && thickTwo = thickThree ( 1 ); the Digit prediction should be set to ( 1 ).

But it doesn't, it sets Digit prediction to a random number... What am i doing wrong?

[image: bot] https://user-images.githubusercontent.com/46872847/52179457-c9934c80-27d2-11e9-8b9e-66ee20c8a07b.jpg

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/binary-com/binary-bot/issues/1156#issuecomment-460067488, or mute the thread https://github.com/notifications/unsubscribe-auth/Argpgi9KB60SWgjTOfUGXllP2zF__cDYks5vJxJTgaJpZM4aaOdN .

mexarrinha commented 5 years ago

I have been testing with the last 3 thicks. I'm now testing with 4 thicks.

But my problem is that i need to open 10 tabs, one for each number (0, 1, 2....) Because when i assign the Thick prediction, it assigns the wrong number.

pieterbrandsen commented 5 years ago

Hey, I made the bot for higher than 2

Higher than 2.zip

It works, cant test it for a hour or something because i need to go now (its 21:22)

Gonna test it tommorow and maybe add more numbers so its safer maybe but for now its looks great!

Maybe you can take a look in it too? and @binary-ex-machina make it better? :)

pieterbrandsen commented 5 years ago

Oops wrong site all xd, its better if its looking for under 3 so its safer but its work now too but still 10% because after high amount of numbers above >2 its gonna be <3!

pieterbrandsen commented 5 years ago

Hello,

I created it and now want to test it but cant get in my account with binary bot.

Higher than 2.zip

Maybe you can take a look at it and maybe create a new feature or make it better!

Hope it works!

BTW created the bot with a max of 10 digits, just move them in, look for trade and it should work if you BUY HIGHER too.

I have set a tick 3 trade dur because you get a better trade because not always first ticks after open are the ticks you want....

mexarrinha commented 5 years ago

My problem still persists.

I belive it might be cause the way the code runs.

I can change the prediction when i find the digit that appeard 3 times in a row. But it buy before changing the prediction..

pieterbrandsen commented 5 years ago

@mexarrinha Change to Thick3?

mexarrinha commented 5 years ago

It is the same @pieterbrandsen . I think it has to do with the way the code is running. It has a delay. If last three ticks = 3, set prediction to 3 and buy differs; It does assign the digit prediction to 3... but it does after you do the buy... So you need to have like @binary-ex-machina said in his example, and open 10 tabs, one for each number..

I did this one, it checks last 25 digits and adds then to the correct digit number every thick . If you need the last 100 or 1000 you just need to change the number. But stilll got the same problem. I need to open 10 tabs to check each number..

untitled-3

pieterbrandsen commented 5 years ago

Strange!

mexarrinha commented 5 years ago

So i figure out the problem to the why prediction is never set to the right number...

The define Trade Options runs once at start, and after the purchase. While Watch and purchase your contract runs every thick...

Why is it set this way? Is there a way to run "Define Trade Options" before purchasing a contract?

mexarrinha commented 5 years ago

If there isn't a way to do this..

This topic can be closed. Thkx

binary-ex-machina commented 5 years ago

Define Trade options always runs before you purchase the contract. You can loop in the first block, doing some tick or candle analysis, before you define the trade options. When the loop goes to the block 2, you can't change things like stake, duration, prediciton, barrier and so on.

mexarrinha commented 5 years ago

That is my problem yeah. I tried to do a loop until it finds the correct result but sometimes it breaks chrome. Ok so i set a simple 2 second delay on that and now it loops alright. I don't need to open 10 tabs now. Thanks for the help @binary-ex-machina 👍

All done. Can be close! 👍

pieterbrandsen commented 5 years ago

Tell us if you make some profit! :)

mexarrinha commented 5 years ago

After testing that digit strategy, it is profitable and nkt to risky. The problem now is the delay between the signal and the order.. In 143 i lost 14 times. 4 times it came 5 digit with same value. The other 10 were delay on orders. Most orders you see: Last digit = 3,3,3.... Enter not to be 3.. Digit 4 and win.. But with delay you see: Last digit = 3,5, 8.... Enter not to be 3... And it cames 3.

pieterbrandsen commented 5 years ago

Maybe in trade again? like if something is true, buy with the digit.

pieterbrandsen commented 5 years ago

I think i know the way to make money with bots..... and no its not martingrale.....

contact me @mexarrinha (pieterbrandsen2@gmail.com)

Dont want binary.com patch this instantly

mexarrinha commented 5 years ago

Binary can't be changing it's algorithm every time one strategy is profitable. Because they can't counter every strategy at same time. You can see that it is random because in 100 thicks it gets evenly distributed. I made a bot for digit matching it was running for 24h i made about 3k or 4k profit and then it lost everything ( virtual money, martingale, no limits) I made another one one rise/fall/equals (virtual money, martingale, no limits) I run for 72h until it lost everything. So its more safe for you to code candle patterns, then to be operating with digits, evenOdd, overUnder..

So use a stopProfit, stopLoss. Don't be greedy. If you start with 100, do 20 to 40 a day.. When you get to 300, then risk a bit more..

I'll try to attach the trade log later on

aaimio commented 5 years ago

We're closing this issue due to inactivity, you're welcome to open it again if you still haven't got your answer.

Regards, Aaron