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
Checking Results in Practice Mode
This might help. viewtopic.php?p=323823#p323823Mtango wrote: ↑Fri Jan 17, 2025 6:35 pmHi 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
- jamesedwards
- Posts: 3463
- Joined: Wed Nov 21, 2018 6:16 pm
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.
- ShaunWhite
- Posts: 9920
- Joined: Sat Sep 03, 2016 3:42 am
Also simulations use a fixed bet placement latency, in the real world that varies considerably (anything from 50 to 350ms).jamesedwards wrote: ↑Sat Jan 18, 2025 10:35 amPractice 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.
- jamesedwards
- Posts: 3463
- Joined: Wed Nov 21, 2018 6:16 pm
Is this the period of time it takes for your trigger request to leave your PC and reach Betfair servers?ShaunWhite wrote: ↑Sat Jan 18, 2025 1:13 pmAlso simulations use a fixed bet placement latency, in the real world that varies considerably (anything from 50 to 350ms).
- ShaunWhite
- Posts: 9920
- Joined: Sat Sep 03, 2016 3:42 am
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.jamesedwards wrote: ↑Sat Jan 18, 2025 1:21 pmIs this the period of time it takes for your trigger request to leave your PC and reach Betfair servers?ShaunWhite wrote: ↑Sat Jan 18, 2025 1:13 pmAlso simulations use a fixed bet placement latency, in the real world that varies considerably (anything from 50 to 350ms).
- jamesedwards
- Posts: 3463
- Joined: Wed Nov 21, 2018 6:16 pm
So the time difference is:ShaunWhite wrote: ↑Sat Jan 18, 2025 1:59 pmIt 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.jamesedwards wrote: ↑Sat Jan 18, 2025 1:21 pmIs this the period of time it takes for your trigger request to leave your PC and reach Betfair servers?ShaunWhite wrote: ↑Sat Jan 18, 2025 1:13 pmAlso simulations use a fixed bet placement latency, in the real world that varies considerably (anything from 50 to 350ms).
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.
- ShaunWhite
- Posts: 9920
- Joined: Sat Sep 03, 2016 3:42 am
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.jamesedwards wrote: ↑Sat Jan 18, 2025 2:10 pmSo 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.
Plus what you said about not actually being in the market so if the price goes through you how much would you have matched?
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.
- ShaunWhite
- Posts: 9920
- Joined: Sat Sep 03, 2016 3:42 am
It's a classic case of the real world being messy and you can't do anything about it.jamesedwards wrote: ↑Sat Jan 18, 2025 2:10 pmSo 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.
A typical afternoon/evening:
You do not have the required permissions to view the files attached to this post.
- jamesedwards
- Posts: 3463
- Joined: Wed Nov 21, 2018 6:16 pm
Interesting info.ShaunWhite wrote: ↑Sat Jan 18, 2025 3:46 pmIt's a classic case of the real world being messy and you can't do anything about it.jamesedwards wrote: ↑Sat Jan 18, 2025 2:10 pmSo 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.
A typical afternoon/evening:
Screenshot_2.jpg
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?