Hi, I’m a new member here. I've spent some days watching a number of videos, reading community and blog articles, and testing the software in Practice Mode, and I must say it’s really awesome. There are still many details I don't know, but to date I've managed to set up a sort of Lay ...


Betfair Bot
http://bfexplorer.net/Content/Bfexplorer/BfexplorerAI.png
Betfair Bot
I do not know if you are aware that Bfexplorer is the first app on the Betfair App Directory to support AI agents. Here is the AI's answer to your question, which you could have found yourself:
Nice work — your setup is logical and follows the common “Lay the Draw at half / hedge if a goal” pattern. Below I’ll walk through what you’ve done, point out where it’s correct, suggest improvements (hedges / risk controls), show options to auto-select matches, and explain how to keep bots running continuously.
1) Quick review of your current bot choices (correct / sensible)
- Place Bet bot ("Lay draw"): correct for placing a lay in-play (AllowPlacingBetInPlay = True, OfferMyBet = False, BetType = Lay). Good.
- Close Selection Bet Position at Odds ("Back and cash out"): sensible choice to hedge/close the lay position automatically when conditions met (HedgingEnabled = yes). Using CheckingLastPriceTraded is a common way to trigger on price movement.
- Football bot to start the hedge when score/time changes ("Back draw when 0–0 breaks"): correct trigger logic (Score or MatchTime).
- Sequence Execution to run the lay then waiting/trigger bots: correct approach to keep a single strategy that performs the sequence.
- Execute Bots (entry price filter) to only run when draw odds < 2.9: good pre-entry price filter.
So overall your choice of bot types and the sequencing is appropriate and follows typical practice.
2) Improvements and suggestions (risk control, robustness)
- Add an explicit liability / stake cap: make sure your Place Bet bot has a known maximum liability exposed if possible. If the Place Bet bot doesn't have a direct max-liability field, calculate the lay stake by formula so you never exceed desired liability.
- Add a late-time stop earlier or scale: 75' is reasonable, but consider:
- A staggered stop (e.g., stop new entries at 60' and close remaining exposure at 70') or
- Lower stakes for matches that remain 0–0 after 60' (because late goals become more likely).
- Add a price-based stop-loss/exit: if the draw price drifts up significantly (e.g., > X ticks above entry) you may want to close or partially close to limit loss. Implement with a "Close Market Bet Position" or "Trailing Stop Loss" strategy:
- Example: if draw LTP > 4.0 (or X ticks worse than your entry) then close position (partial/full).
- Or use a trailing stop so that if the odds retrace by Y ticks you lock-in partial loss control.
- Partial hedging / scaling out instead of single all-or-nothing:
- Hedge part of the stake when small favorable price change occurs (lock small profit) and keep remainder running to target larger hedge — reduces variance.
- Handling unmatched bets / latency:
- Consider adding a check to cancel/replace unmatched bets after N seconds or only place bets if last traded price within small window of offer price. This avoids getting matched at a very bad price.
- Use "CheckingLastPriceTradedDifference" carefully:
- A difference of 3 ticks is common, but check how your odds ticks map and do some backtesting in Practice Mode to avoid premature or late hedges.
- Reaction to in-game events (red cards, injuries):
- If you want more safety, add criteria to stop/close if Cards or exceptional events are available in your data feed — but note not all matches provide reliable card/event feeds to the bot.
3) Hedging formulas and practical hedge setup
- Full green-up hedge formula (to calculate back stake for zero profit):
backStake = (layStake * (layOdds - 1)) / (backOdds - 1)
- Use the Close Selection Bet Position bot or a “Green Up / Hedging” bot that calculates and places the required back stake automatically.
- If you prefer target profit: calculate back stake to leave a desired profit instead of zero.
4) Automation: selecting a series of matches in advance
Yes — you can automate market/selection choice using these approaches:
- Favourite events and saved filters:
- Use Bfexplorer’s favourite events or event groups (your “My Favourite Bet Events”) to group competitions you want to trade.
- Market scanners / filters:
- Create a scanner or market filter (competition, kickoff time window, pre-match draw odds < X, in-play availability) and bulk-add results to monitored markets.
- Execute a strategy over multiple selections:
- Use “Execute strategy on multiple selections” (ExecuteBfexplorerStrategySettingsOnSelections) or an equivalent app action to run your sequence on many markets/selections at once.
- Scheduling:
- You can pre-select markets (by market ID or by adding events to favorites) and have a single ExecuteBot run across that list at kick-off time.
If you want, I can help design the exact filter rules you need (competitions, kickoff window, pre-match draw range, bookmaker implied probability filters, etc.), and show how to turn them into a list that the Sequence Execution can run across.
5) Running bots when your computer is off
- Bfexplorer must be running and connected to Betfair for bots to execute. If your PC is off, bots cannot run.
- Two practical options to keep bots running 24/7:
1. Run Bfexplorer on a VPS (Windows VPS) or always-on remote PC — this is the recommended, common solution. Use a reputable VPS provider (low latency to Betfair endpoints), keep Betfair session authenticated, and ensure Bfexplorer auto-starts on login.
2. Leave a dedicated local machine on (e.g., an old PC or mini-PC) with unattended operation and remote access.
- Running minimized/in-background: Bfexplorer can run minimized; the app doesn't require the UI to be visible. But it still requires the machine and network to be on.
- Consider automation precautions on VPS:
- Secure the VPS (login credentials, 2FA),
- Keep Bfexplorer and Windows updates in mind,
- Monitor logs and have remote alerts for failures.
- There is no way for Bfexplorer to continue to run if the machine and service are completely powered down (no cloud execution without a VPS).
6) Testing, monitoring, and risk management
- Always test in Practice Mode first (you already are — good).
- Start with very small stakes when moving to real money.
- Keep a monitoring dashboard or alerts (email/SMS) to notify if something unexpected happens (bot error, disconnection, large loss).
- Keep a historical record (GetAllBetResults) and review performance periodically, tweak parameters and re-test.
7) Potential alternative/advanced bots to consider
- Trailing Stop Loss bot: to lock profit / limit loss dynamically if the odds move after you’ve placed a lay.
- Close Market Bet Position: more flexible ways to set profit or loss thresholds.
- Sequence Execution across selections: to run the same full sequence across multiple matches automatically.
- AI/ML or selection-filter bots: if you want to pre-filter markets based on historical features or machine learning ratings (advanced).
8) Next steps I can help with
- Review your exact strategy settings and suggest concrete parameter values (e.g., ticks for trailing stop, price thresholds).
- Build a market-filter for auto-selection (competition, kickoff window, pre-match draw odds, etc.).
- Create sample hedging calculations and show how to configure the Close Position bot for partial/targeted hedges.
- Recommend VPS specs and setup checklist to keep your bot running 24/7.
If you like, share:
- an example match/market ID you trade (or the competitions/time window you target),
- your exact lay stake/liability rules,
- whether you prefer full green-up or target-profit hedges,
and I’ll produce concrete parameter suggestions and an improved sequence (including sample stake/hedge calculations) you can test in Practice Mode.
Betfair Bot
You must have switched bfexplorer to practice mode; switch practice mode off and you will place real bets.
rxstrading01
how is your model performing now?
rxstrading01
Best one for me has been the one from Bet Angel it's UK based so you can trade anywhere in the world
o.cliff@gmail.com
sounds amazing has it kept up that strike rate?
Betfair Bot
BotTriggers are not distributed with bfexplorer app instalation. You can either download them from my gist, or when testing some of strategies on Betfair AI Trading community.
HorseRacing/BookmakersOdds.md
jakewins
Really impressive use case. I’ve been integrating the same Strategy Expert Prompt and found it drastically improves clarity when chaining multiple strategies. What blew me away was how quickly it aligned execution logic like ShareBetPosition and StrategyNames into a working config. Massive time-saver and helps bridge the gap between concept and automation. 🔄 Curious—has anyone tested this with dynamic triggers (e.g., price movement or volume thresholds) layered into the sequence?
adska
just don't forget to check the VPS country, because I bought one in Germany but unfortunately, I cannot use it due to restrictions
adska
what errors are you getting?