(SOLVED) Prevent bot from placing bets on photo market

Advanced automation available in Guardian - Chat with others and share files here.
Post Reply
eightbo
Posts: 2263
Joined: Sun May 17, 2015 8:19 pm

(In the context of a Horse Racing In-Running bot)

How can I achieve this?

Cheers
Last edited by eightbo on Fri Jun 14, 2019 5:47 pm, edited 1 time in total.
sa7med
Posts: 800
Joined: Thu May 18, 2017 8:01 am

set up a signal for a suspension in play?
eightbo
Posts: 2263
Joined: Sun May 17, 2015 8:19 pm

Well I thought to set a stored value RaceEnded = 1 when Time since unsuspended > 1s and have my bets fire if RaceEnded = 0 but it's always going to instantly fire because the mkt suspends when it goes In-Play
User avatar
jimibt
Posts: 4202
Joined: Mon Nov 30, 2015 6:42 pm

eightbo wrote:
Fri Jun 14, 2019 5:16 pm
Well I thought to set a stored value RaceEnded = 1 when Time since unsuspended > 1s and have my bets fire if RaceEnded = 0 but it's always going to instantly fire because the mkt suspends when it goes In-Play
you could of course set that same rule up, but only have it armed from 20-30 seconds out...
sa7med
Posts: 800
Joined: Thu May 18, 2017 8:01 am

eightbo wrote:
Fri Jun 14, 2019 5:16 pm
Well I thought to set a stored value RaceEnded = 1 when Time since unsuspended > 1s and have my bets fire if RaceEnded = 0 but it's always going to instantly fire because the mkt suspends when it goes In-Play, unless it will work on a rule which arms 5s after In Play has started?
I think the market gets suspended before a photo finish so if you have a signal increment with a unsuspended time condition then you can place your bets contingent on signal < 2, or something like that.

I've done it before, there's a way to do it based on number of times it's been suspended. Try it out.
eightbo
Posts: 2263
Joined: Sun May 17, 2015 8:19 pm

jimibt wrote:
Fri Jun 14, 2019 5:19 pm
eightbo wrote:
Fri Jun 14, 2019 5:16 pm
Well I thought to set a stored value RaceEnded = 1 when Time since unsuspended > 1s and have my bets fire if RaceEnded = 0 but it's always going to instantly fire because the mkt suspends when it goes In-Play
you could of course set that same rule up, but only have it armed from 20-30 seconds out...
I armed the rule 5s after In-Play started and RaceEnded instantly became 1, so I can't see how 20-30s would be any different
sa7med
Posts: 800
Joined: Thu May 18, 2017 8:01 am

sa7med wrote:
Fri Jun 14, 2019 5:20 pm
eightbo wrote:
Fri Jun 14, 2019 5:16 pm
Well I thought to set a stored value RaceEnded = 1 when Time since unsuspended > 1s and have my bets fire if RaceEnded = 0 but it's always going to instantly fire because the mkt suspends when it goes In-Play, unless it will work on a rule which arms 5s after In Play has started?
I think the market gets suspended before a photo finish so if you have a signal increment with a unsuspended time condition then you can place your bets contingent on signal < 2, or something like that.

I've done it before, there's a way to do it based on number of times it's been suspended. Try it out.
Yes just had a look, I set a signal to increment at unsuspended time condition = 1 while in-play, so when it's = 2 then it's likely a photo finish.
eightbo
Posts: 2263
Joined: Sun May 17, 2015 8:19 pm

Nice one thank you sa7med.
Last edited by eightbo on Fri Jun 14, 2019 5:28 pm, edited 1 time in total.
sa7med
Posts: 800
Joined: Thu May 18, 2017 8:01 am

eightbo wrote:
Fri Jun 14, 2019 5:27 pm
Nice one thank you sa7med
No problem, this could also be a stewards inquiry.
sa7med
Posts: 800
Joined: Thu May 18, 2017 8:01 am

eightbo wrote:
Fri Jun 14, 2019 5:27 pm
Nice one thank you sa7med.
I just had it to start after inplay time
eightbo
Posts: 2263
Joined: Sun May 17, 2015 8:19 pm

Yeah stewards/photo both should be avoided for this bot.

I was checking unsuspended time was greater than a number and completely forgot about equal to, which was the solution.

Now I need to figure out why my bets are triggering but not showing up in the log, any ideas? (Trying to test it in prac mode)
User avatar
jimibt
Posts: 4202
Joined: Mon Nov 30, 2015 6:42 pm

eightbo wrote:
Fri Jun 14, 2019 5:23 pm
jimibt wrote:
Fri Jun 14, 2019 5:19 pm
eightbo wrote:
Fri Jun 14, 2019 5:16 pm
Well I thought to set a stored value RaceEnded = 1 when Time since unsuspended > 1s and have my bets fire if RaceEnded = 0 but it's always going to instantly fire because the mkt suspends when it goes In-Play
you could of course set that same rule up, but only have it armed from 20-30 seconds out...
I armed the rule 5s after In-Play started and RaceEnded instantly became 1, so I can't see how 20-30s would be any different
i think my thinking was that that by going way out to 20 seconds before arming, then you could be sure that you'd skipped that little crossover point at the start. the 1 second comparison would only be valid after the race was IP for at least 20 seconds... just a throw away thought
sa7med
Posts: 800
Joined: Thu May 18, 2017 8:01 am

eightbo wrote:
Fri Jun 14, 2019 5:30 pm
Yeah stewards/photo both should be avoided for this bot.

I was checking unsuspended time was greater than a number and completely forgot about equal to, which was the solution.

Now I need to figure out why my bets are triggering but not showing up in the log, any ideas? (Trying to test it in prac mode) :lol:'
Do you have 'export reports on market closure' ticked on the Advanced Settings Tab?
eightbo
Posts: 2263
Joined: Sun May 17, 2015 8:19 pm

sa7med wrote:
Fri Jun 14, 2019 5:32 pm
Do you have 'export reports on market closure' ticked on the Advanced Settings Tab?
I do. No sign of any back bets in the log.

It's worth noting that when my back bet triggers it sets a stored value which I've set to show up in the log and I can see that just no evidence of the back bet. Any ideas?
eightbo
Posts: 2263
Joined: Sun May 17, 2015 8:19 pm

jimibt wrote:
Fri Jun 14, 2019 5:32 pm
eightbo wrote:
Fri Jun 14, 2019 5:23 pm
jimibt wrote:
Fri Jun 14, 2019 5:19 pm


you could of course set that same rule up, but only have it armed from 20-30 seconds out...
I armed the rule 5s after In-Play started and RaceEnded instantly became 1, so I can't see how 20-30s would be any different
i think my thinking was that that by going way out to 20 seconds before arming, then you could be sure that you'd skipped that little crossover point at the start. the 1 second comparison would only be valid after the race was IP for at least 20 seconds... just a throw away thought
Yeah I had the same line of thought thanks for input tho. Must mean unsuspended time variable is still incrementing behind the scenes until it's called for which makes sense.
Post Reply

Return to “Bet Angel - Automation”