Checking Results in Practice Mode

We were all new to Bet Angel once. Ask any question you like here and fellow forum members promise not to laugh. Betfair trading made simple.
Post Reply
Mtango
Posts: 3
Joined: Tue Jan 14, 2025 8:38 am

Hi everyone,

I've been tinkering with automation in practice mode and I'm struggling to find an easy way to check the results of an entire day's automated trades.

What I'm doing so far is quite time consuming. In Guardian, I check each match (horse races), see the log, and then compare the bets against the results on racingpost.com
I know you can also open the exported files from Guardian (which does show the P&L for each match) but I'm looking for a way to see the results of the entire day as a single number (P&L). What am I missing?

Thanks for the help
User avatar
Derek27
Posts: 25143
Joined: Wed Aug 30, 2017 11:44 am
Location: UK

Mtango wrote:
Fri Jan 17, 2025 6:35 pm
Hi everyone,

I've been tinkering with automation in practice mode and I'm struggling to find an easy way to check the results of an entire day's automated trades.

What I'm doing so far is quite time consuming. In Guardian, I check each match (horse races), see the log, and then compare the bets against the results on racingpost.com
I know you can also open the exported files from Guardian (which does show the P&L for each match) but I'm looking for a way to see the results of the entire day as a single number (P&L). What am I missing?

Thanks for the help
This might help. viewtopic.php?p=323823#p323823
Mtango
Posts: 3
Joined: Tue Jan 14, 2025 8:38 am

Thanks. I'll try this macro. So there's nothing embedded in Bet Angel that summarizes the P&L?
User avatar
Derek27
Posts: 25143
Joined: Wed Aug 30, 2017 11:44 am
Location: UK

Mtango wrote:
Fri Jan 17, 2025 10:18 pm
Thanks. I'll try this macro. So there's nothing embedded in Bet Angel that summarizes the P&L?
Not as far as I know. Or at least I hope not, or I would have wasted my time on that spreadsheet. ;)
User avatar
jamesedwards
Posts: 3463
Joined: Wed Nov 21, 2018 6:16 pm

Mtango wrote:
Fri Jan 17, 2025 10:18 pm
Thanks. I'll try this macro. So there's nothing embedded in Bet Angel that summarizes the P&L?
Practice mode is wonderful for testing your code and that automations are triggering as expected, but it's not very good for testing profitability because you are not part of the market. You may find it's easier to show a profit in practice than in real mode. Much better to test profitability in real mode with the lowest possible stakes.
User avatar
ShaunWhite
Posts: 9920
Joined: Sat Sep 03, 2016 3:42 am

jamesedwards wrote:
Sat Jan 18, 2025 10:35 am
Mtango wrote:
Fri Jan 17, 2025 10:18 pm
Thanks. I'll try this macro. So there's nothing embedded in Bet Angel that summarizes the P&L?
Practice mode is wonderful for testing your code and that automations are triggering as expected, but it's not very good for testing profitability because you are not part of the market. You may find it's easier to show a profit in practice than in real mode. Much better to test profitability in real mode with the lowest possible stakes.
Also simulations use a fixed bet placement latency, in the real world that varies considerably (anything from 50 to 350ms).
User avatar
jamesedwards
Posts: 3463
Joined: Wed Nov 21, 2018 6:16 pm

ShaunWhite wrote:
Sat Jan 18, 2025 1:13 pm
Also simulations use a fixed bet placement latency, in the real world that varies considerably (anything from 50 to 350ms).
Is this the period of time it takes for your trigger request to leave your PC and reach Betfair servers?
tootall
Posts: 39
Joined: Tue Mar 05, 2019 8:33 am

I use modified version of something Dallas posted to display my current profit and max reached throughout the day.
PL.png
You do not have the required permissions to view the files attached to this post.
User avatar
ShaunWhite
Posts: 9920
Joined: Sat Sep 03, 2016 3:42 am

jamesedwards wrote:
Sat Jan 18, 2025 1:21 pm
ShaunWhite wrote:
Sat Jan 18, 2025 1:13 pm
Also simulations use a fixed bet placement latency, in the real world that varies considerably (anything from 50 to 350ms).
Is this the period of time it takes for your trigger request to leave your PC and reach Betfair servers?
It includes the outbound journey which can vary due to router switching etc, but it's the total time between your bet being sent and it being given a Betfair ref number (bet acknowledged timestamp) The BF matching engine processes orders in batches and if it's busy you can sit in the queue for a few cycles too. Makes sims tricky as bets are compared to the price data time + latency ms.
User avatar
jamesedwards
Posts: 3463
Joined: Wed Nov 21, 2018 6:16 pm

ShaunWhite wrote:
Sat Jan 18, 2025 1:59 pm
jamesedwards wrote:
Sat Jan 18, 2025 1:21 pm
ShaunWhite wrote:
Sat Jan 18, 2025 1:13 pm
Also simulations use a fixed bet placement latency, in the real world that varies considerably (anything from 50 to 350ms).
Is this the period of time it takes for your trigger request to leave your PC and reach Betfair servers?
It includes the outbound journey which can vary due to router switching etc, but it's the total time between your bet being sent and it being given a Betfair ref number (bet acknowledged timestamp) The BF matching engine processes orders in batches and if it's busy you can sit in the queue for a few cycles too. Makes sims tricky as bets are compared to the price data time + latency ms.
So the time difference is:
The time my PC takes to complete a mock trade locally, vs the time taken for my request to reach Betfair + the time Betfair matching engine takes to action it.
User avatar
ShaunWhite
Posts: 9920
Joined: Sat Sep 03, 2016 3:42 am

jamesedwards wrote:
Sat Jan 18, 2025 2:10 pm
So the time difference is:
The time my PC takes to complete a mock trade locally, vs the time taken for my request to reach Betfair + the time Betfair matching engine takes to action it.
Yeah, the mock trade has to effectively wait until it would have been a bet. Averages out at about 140ms for placement and 160 for cancellations. Makes more difference than you'd think (if time matters) but can't do much about it. It can be flatteringly profitable at 100ms or looks like a loser at 250ms.

Plus what you said about not actually being in the market so if the price goes through you how much would you have matched?
Mtango
Posts: 3
Joined: Tue Jan 14, 2025 8:38 am

Derek27 wrote:
Sat Jan 18, 2025 12:51 am
Mtango wrote:
Fri Jan 17, 2025 10:18 pm
Thanks. I'll try this macro. So there's nothing embedded in Bet Angel that summarizes the P&L?
Not as far as I know. Or at least I hope not, or I would have wasted my time on that spreadsheet. ;)
Unfortunately the macro is not working - getting some debugging errors when I try to run it. Did you have to make any adjustments?
I'm using the latest BetAngel version, and I have macros activated.
User avatar
ShaunWhite
Posts: 9920
Joined: Sat Sep 03, 2016 3:42 am

jamesedwards wrote:
Sat Jan 18, 2025 2:10 pm
So the time difference is:
The time my PC takes to complete a mock trade locally, vs the time taken for my request to reach Betfair + the time Betfair matching engine takes to action it.
It's a classic case of the real world being messy and you can't do anything about it.
A typical afternoon/evening:
Screenshot_2.jpg
You do not have the required permissions to view the files attached to this post.
User avatar
jamesedwards
Posts: 3463
Joined: Wed Nov 21, 2018 6:16 pm

ShaunWhite wrote:
Sat Jan 18, 2025 3:46 pm
jamesedwards wrote:
Sat Jan 18, 2025 2:10 pm
So the time difference is:
The time my PC takes to complete a mock trade locally, vs the time taken for my request to reach Betfair + the time Betfair matching engine takes to action it.
It's a classic case of the real world being messy and you can't do anything about it.
A typical afternoon/evening:
Screenshot_2.jpg
Interesting info.

How do you capture the time of bet match? Does this measure therefore also include the time it takes for Betfair to communicate bet placement back to your PC?
tootall
Posts: 39
Joined: Tue Mar 05, 2019 8:33 am

This post seems to have gone off track, the guy only wanted to track his P/L in test mode.
Post Reply

Return to “Bet Angel for newbies / Getting started”