User Comments

  • Betfair Bot
    27.3.2026 9:03:29

    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
    5.1.2026 15:53:17

    You must have switched bfexplorer to practice mode; switch practice mode off and you will place real bets.

  • Betfair Bot
    18.6.2025 20:59:07

    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

  • Betfair Bot
    29.3.2024 9:13:36

    LastPriceTraded and you must run Cancel Strategies on Selection on all selections. 

    The other alternative is write your own custom trigger bot script.

  • Betfair Bot
    3.2.2024 13:55:11

    When compiling you certainly have got errors, so just read the errors and try to fix the problem.

    The same project is included to my bfexplorer app solution, just to check possible compatibility issues if I had changed anything in the code base of the SDK. I have got no compiling errors for this project.

    I did not yet released SDK for preview version which is build on .net 7/8.

  • Betfair Bot
    3.2.2024 13:49:10

    Yes, use web page to login, in the Application / Settings, then when login you will use betfair web page login dialog with two factor authentication. 

  • Betfair Bot
    21.12.2023 16:29:15

    There are two versions of bfexplorer apps. The old version released on 28th March 2023. This app version is built on .net framework 4.8


    The latest version I call the preview is relaesed o .net 7, and you can install it from the link above, from my dropbox drive.


    This preview version contains the latest version of new bot stratregies like the one described in this post: Execute Strategy Rules Bot

  • Betfair Bot
    3.12.2023 15:47:54

     

    Open Task Manager and check how much CPU and Memory your bfexplorer app uses on your desktop pc. Bfexplorer uses really small amount of CPU but used memory depends on how much markets you open, or how many bot strategies you executes concurrently.

    When using Strategy Bot Executor tool, markets are monitored only from set time and when bot strategy ends its execution the market monitoring is automatically stopped.

  • Betfair Bot
    25.8.2023 15:19:12

    Quite strange:

    I am looking for an experienced F# programmer to assist me with a project involving Betfair. Specifically, my project requires a script that can be run on Betfair’s bf explorer. The script needs to have the capability to place bets, based on a detailed strategy I have in place. My end goal is to efficiently place bets and manage them without too much hassle. I am expecting that the total timeline from start to finish should be less than two weeks for this project. The successful freelancer will have extensive knowledge and experience in F# programming as well as Betfair.Applicants with prior experience with using bfexplorer on Betfair are strongly encouraged to apply. Do you think you are a good fit for this project? I look forward to hearing from you soon!

    https://www.freelancer.com/projects/php/script-run-explorer-betfair/details

     

  • Betfair Bot
    18.8.2023 23:16:42

    When open Execute Trigger Strategy dialog, either by adding or updating the strategy, select TriggerParameters and in the right column click on …

    Trigger Parameters dialog appears and there type:

    CsvFile

    and to other column:

    c:\run.csv

    Select BotName/StrategyName and in next column click on …

    Here you can choose your strategy, of course you must create such strategy before, using any of existing strategies like Place Bet and so on.

    The strategies represents exact betting or trading strategy you can parameterized by entering different values to available strategy parameters.

    Execute Trigger Strategy just triggers execution on dedicated selection/s, and what is executed is defined by the parameter: BotName/StrategyName

  • Betfair Bot
    18.8.2023 15:37:52

    HorseRacingCsvSelectionBotTrigger loads csv file where you define selection name (horse name) and strategy to execute on this selection/horse.

    CSV file must use ; as the field separator.

    Yes, if no data are in csv file or there is no selection with set horse name then bot execution does nothing, ends execution.

  • Betfair Bot
    18.8.2023 15:37:28

    MySelectionsBotTrigger script is simpler one. The csv file contains just selection names, so loads the file defined by parameter CsvFile, you put there the full path name of the cvs file.

    If on a market there is your selection/s then strategy is executed on those selections. The strategy is set by BotName/StrategyName in the Bot/Strategy dialog.

    I do not remember for whom I made those two scripts, but the functionality of any script/code can be known by reading the code. If you wan to learn exactly what is going on when the script code is executed, you should build bot assembly from the script, then you can debug the code, like I do here:

    http://bfexplorer.net/Products/BfexplorerBotSDK

    All scripts were programmed to the old version of bfexplorer.

    The preview release have a problem with compiling the script, so you actually have to use the second path of bot execution, so making from the script the bot assembly you can execute with the Execute Trigger Strategy.

  • Betfair Bot
    17.8.2023 20:58:05

    May I ask for link to the bot script are you trying to use?

  • Betfair Bot
    30.5.2023 11:32:29

    I already shared an article explaining how you can manually initiate the Stop Strategies and Cancel Bets bot in markets that don't have an active score feed.

    I'm curious, do you have any difficulties understanding written text?

  • Betfair Bot
    27.5.2023 17:30:43

    Please read the following article to understand the process of manually stopping and canceling bets on markets that do not have a live score feed.

  • Betfair Bot
    27.5.2023 10:22:46

    Vy ste sa informovali o FootballBote, robote, ktorý sa spolieha na živé výsledky zápasov, a vyjadrili ste otázku týkajúcu sa jeho fungovania na trhoch, kde takéto výsledky nie sú dostupné. Táto otázka pôsobí nezvyčajne, pretože predpokladá, že robot sa používa na trhoch bez prístupu k živým aktualizáciám výsledkov.

    Odporúčam spúšťať tohto robota výhradne na udalostiach, ktoré sú pokryté živými výsledkami od Betfairu, s dôrazom na hlavné európske ligy.

    Nepreveril som dostupnosť živých výsledkov pre všetky futbalové udalosti ponúkané Betfairom.

    Ak sa vaša otázka týka zastavenia už spustených alebo bežiacich robotov na trhoch, kde nie sú dostupné živé výsledky, a pôvodne ste očakávali, že takéto výsledky budú k dispozícii, riešenie tejto situácie je komplexné. Neexistuje priamočiary spôsob, ako vás informovať, že živé výsledky nie sú k dispozícii.

  • Betfair Bot
    27.5.2023 9:50:40

    It seems that you are referring to a specific scenario involving a FootballBot that utilizes a live score feed. To ensure accurate understanding, let me rephrase your statement:

    "You inquired about the FootballBot, a bot that relies on live score feeds, and expressed a query regarding its operation in markets where such feeds are unavailable. This question appears unusual, as it assumes running the bot in markets without access to live score updates."

    "I would recommend running this bot exclusively on events covered by Betfair's live score feed, primarily focusing on major European leagues."

    "I haven't verified the availability of live score feeds for all football events offered by Betfair."

    "If your question pertains to stopping already executed or running bots in markets where live feeds are not available, and you initially expected the availability of such feeds, resolving this situation becomes complex. There is no straightforward indication to inform you when the live scores are unavailable."

    Please let me know if I have accurately captured the intended meaning of your statement or if there is any additional context I should consider.

  • Betfair Bot
    26.5.2023 21:35:44

    You ask about FootballBot, the bot using live score feed, and you want to run this bot on markets without such live score feed, very strange question.

    Please, read what you had wrote: “..to start a FootballBot..”

    I would suggest to run this bot only on events which are covered by betfair live score feed, so mainly big leagues in Europe, I think.

    I did not check availability of live score feed for all football events betfair offer.

    If your question is about stopping already executed/running bots, on markets which actually do not offer live feed, and you expected the live feed will be available, then such case cannot be done a simple way, as there is no signal available for you saying the live score is not available.

  • Betfair Bot
    17.11.2022 12:49:58

    The web site has no security certificate (https), therefor when installing Bfexplorer app click on More info ..  and Run anyway button.