Building First Tennis Bot - Lay First Set Winner - Help/Advice?

kikiwillmo88
Posts: 51
Joined: Mon Dec 09, 2024 11:10 am

jamesedwards wrote:
Wed Aug 20, 2025 3:06 pm
kikiwillmo88 wrote:
Wed Aug 20, 2025 3:02 pm
jamesedwards wrote:
Wed Aug 20, 2025 2:43 pm
You might find it easier to follow a different logic. Perhaps try doing something like this? (not tested)

Lay Set 1 Winner New v1.02.baf
Not yet the 60/40, but it should do everything else.

But based on your logic you would never reach the 60/40 requirement:
- If back bet is placed Trade out if loss reaches 30% of stake or green out at end of 2nd set.
- If first set loser wins second set green up by skewing 60/40 onto 2nd winner.


System would green out at the end of the second set before it had a chance to skew 60/40.

Apologies, think I'm finding it hard to articulate.

So as an example Stearns lost the first set yest. Odds went to like 2.1 to back and the opponents lay price was over 1.6. Therefore the Back bet triggered. She went on to win the 2nd (Hedging profit was £80 on each). At the end of the 2nd what I've been doing (and want the bot to do) is before greening up, skew the profits onto the 2nd set winner (stearn in this instance) so the majority of the profit is on the second set winner. Is that making sense?
User avatar
jamesedwards
Posts: 4294
Joined: Wed Nov 21, 2018 6:16 pm

There seems to be an awful lot of industry here.

Why not just back the 1st set loser if >3.0, and green up at the end of set 2. And then back the 2nd set winner as separate bets?
kikiwillmo88
Posts: 51
Joined: Mon Dec 09, 2024 11:10 am

jamesedwards wrote:
Wed Aug 20, 2025 4:10 pm
There seems to be an awful lot of industry here.

Why not just back the 1st set loser if >3.0, and green up at the end of set 2. And then back the 2nd set winner as separate bets?
My ideal was to have it all working within the one bot so it worked the same as it had when I had been manually trading it. I didn't realise it would quite so complicated.
kikiwillmo88
Posts: 51
Joined: Mon Dec 09, 2024 11:10 am

jamesedwards wrote:
Wed Aug 20, 2025 4:10 pm
There seems to be an awful lot of industry here.

Why not just back the 1st set loser if >3.0, and green up at the end of set 2. And then back the 2nd set winner as separate bets?
The bot you made works great on firing. Issue here with not greening up at end of the 2nd? (ignore the back bet)
You do not have the required permissions to view the files attached to this post.
kikiwillmo88
Posts: 51
Joined: Mon Dec 09, 2024 11:10 am

No greening here.
You do not have the required permissions to view the files attached to this post.
kikiwillmo88
Posts: 51
Joined: Mon Dec 09, 2024 11:10 am

Here's the log
log.jpg
You do not have the required permissions to view the files attached to this post.
User avatar
jamesedwards
Posts: 4294
Joined: Wed Nov 21, 2018 6:16 pm

You said you only wanted it to green up if you've placed a back bet on the 1st set loser.

- Lay First Set Winner if odds are1.5 or below - If not, Back First set loser 1.8 or higher.
- If a lay bet is placed there is no exit. The fixed stake is risked.
- If back bet is placed Trade out if loss reaches 30% of stake or green out at end of 2nd set.
- If first set loser wins second set green up by skewing 60/40 onto 2nd winner.


If you want it to green up after the 2nd set no matter what, then remove this line:
z208.jpg
You do not have the required permissions to view the files attached to this post.
kikiwillmo88
Posts: 51
Joined: Mon Dec 09, 2024 11:10 am

Thank you! I actually managed to figure this out myself whilst doing Monetary matches last night.

I still cannot get the 60/40 split no matter what I do.

Had the attached cleared by Betangel support but still not kicking in...
You do not have the required permissions to view the files attached to this post.
User avatar
jamesedwards
Posts: 4294
Joined: Wed Nov 21, 2018 6:16 pm

kikiwillmo88 wrote:
Thu Aug 21, 2025 9:49 am
I still cannot get the 60/40 split no matter what I do.
That's complex, because the amount of green you need to move depends on the prices of both selections at that moment. Juice not worth the squeeze imo. If you think there's +EV in the 2nd set winner then move all the green to that.
kikiwillmo88
Posts: 51
Joined: Mon Dec 09, 2024 11:10 am

Thanks to Dallas, James Edwards and the betangel support managed to get the BOT working perfectly if anyone wants to use it.

Strat is - WTA matches that meet my criteria.

- Lay First Set Winner if odds are 1.5 or below - If not, Back First set loser 1.75 or higher.
- If a lay bet is placed there is no exit. The fixed stake is risked.
- If back bet is placed Trade out if loss reaches 30% of stake.
- If first set loser, wins second set green up by skewing 60/40 onto 2nd winner.

Forward tested & back tested for last 4 months with 54% strike rate.
Lay Set 1 Winner Betangel Amended.baf
You do not have the required permissions to view the files attached to this post.
kikiwillmo88
Posts: 51
Joined: Mon Dec 09, 2024 11:10 am

For Dallas
WorkingWithDelays.baf
You do not have the required permissions to view the files attached to this post.
kikiwillmo88
Posts: 51
Joined: Mon Dec 09, 2024 11:10 am

Tested the new bot here -
LayBackSet1WinnerDelays.baf
With the time delays. Seems to have triggered all correctly with delays and skews on the Williams match yest (Practice mode, def not one of my picks).

Issue I have found is sometimes the lay bet might not get fully matched due to price movement. So maybe only half my stake is risked. Anyone know how to remedy this?
You do not have the required permissions to view the files attached to this post.
User avatar
Dallas
Posts: 23589
Joined: Sun Aug 09, 2015 10:57 pm

kikiwillmo88 wrote:
Tue Aug 26, 2025 10:07 am
Tested the new bot here - LayBackSet1WinnerDelays.baf

With the time delays. Seems to have triggered all correctly with delays and skews on the Williams match yest (Practice mode, def not one of my picks).

Issue I have found is sometimes the lay bet might not get fully matched due to price movement. So maybe only half my stake is risked. Anyone know how to remedy this?
Place the bet at 2nd or 3rd best market price to increase the chances of it being fully matched
jtrader
Posts: 211
Joined: Thu Feb 09, 2017 11:35 am

kikiwillmo88 wrote:
Tue Aug 26, 2025 10:07 am
Tested the new bot here - LayBackSet1WinnerDelays.baf

With the time delays. Seems to have triggered all correctly with delays and skews on the Williams match yest (Practice mode, def not one of my picks).

Issue I have found is sometimes the lay bet might not get fully matched due to price movement. So maybe only half my stake is risked. Anyone know how to remedy this?

If you still not solved skew 60/40 ,that's a simple math how to calculate stake that should be backed on 2nd set winner ( Guessed already market is greened in profit after 2nd set )

If p/l on selection = P ( after hedging )

Odds on 2nd set winner = ODDS

Back Stake on 2nd set winner = P / ( 2 * ODDS + 1 )

and that's it... skewing 60 / 40 profit leave on 2nd set winner.


Example - hedged in profit +£ 40 on both players

2nd set winner odds = 1,8

Back Stake on 2nd set winner = 40 / ( 2 × 1.8 + 1 ) = 40 / 4.6 ~ £ 8.70

Fast check :

Profit on 2nd set loser = £ 40 - £ 8.70 = £ 31.30

Profit on 2nd set winner = £ 40 + £ 8.70 × 1.8 = £ 40 + £ 6.96 = £ 46.96

Last check : £ 31.30 / 4 ~ £ 7.83 × 6 = £ 46.98

Error is true ;)
kikiwillmo88
Posts: 51
Joined: Mon Dec 09, 2024 11:10 am

Dallas wrote:
Tue Aug 26, 2025 3:26 pm
kikiwillmo88 wrote:
Tue Aug 26, 2025 10:07 am
Tested the new bot here - LayBackSet1WinnerDelays.baf


Place the bet at 2nd or 3rd best market price to increase the chances of it being fully matched
Thanks Dallas. Have set this
Post Reply

Return to “Bet Angel Automation - Tennis”