StefanBelo
Planning a Day
Posted in Betfair Strategy by StefanBelo
Hi Stefan,
Sorry that I'm writing an email instead of posting a new forum post, but I cannot find where should I post a new topic over there.
So my question is, if I have a simple daily trading plan of my own (for example I know that in a market I want to back a player in an exact odds and then lay if the odds dropping into an exact odds, and that's it, I don't want to repeat it, I just want to do a simple thing), sometimes the backing odds are before the match, sometimes in-play. And I have the whole day planned.
Different markets with different back odds and lay odds, but I don't want to repeat the cycle, I just do it once (stop at a winner), and of course at every planning I have a stop-loss... So, basically, I'm planning everything, but I want that Bfexplorer does it to me, not by manually, how can I do that?
So:
1. the markets are different (I can setup in the morning by manually)
2. the back and lay odds are different (but I know these odds in the morning as well)
3. I can setup a stop-loss for every trading, and that's it. A whole day-plan. How should I do that? (of course, it is very useful during the night)...
Thank you
Áron (from Hungary)
Are you from Russia or former USSR?
Posted in Suggestions by StefanBelo

If you are from Russia or former USSR ask for your free bfexplorer subscription posting a comment to this article, and let me know your betfair user name by email.
Update (December 2010):
This offer for Russians is over. Read this article if you want to use Bfexplorer PRO for free: Free Betfair Trading Software
How to program a bot to save betfair charts
Posted in Bot programming by StefanBelo
Yesterday I read this Czech blog that discusses the use of betfair charts to analyze different betting or trading strategies. It is quite easy to program such betfair bot, so here there is my code:
class SaveBetfairChartsBot : Bot
{
private const string ChartFolderName = "My Charts";
private const string BetfairChartUK = "http://uk.site.sports.betfair.com/betting/LoadRunnerInfoChartAction.do?marketId={0}&selectionId={1}&asianLineId={2}";
private const string BetfairChartAUS = "http://au.site.sports.betfair.com/betting/LoadRunnerInfoChartAction.do?marketId={0}&selectionId={1}&asianLineId={2}";
private string chartsFolder;
public SaveBetfairChartsBot(IBetfairService betfairService,
MonitoredMarket monitoredMarket, Runner runner)
: base(betfairService, monitoredMarket, runner)
{
chartsFolder = Path.Combine(
betfairService.ApplicationDocumentPathName,
string.Format("{0}/{1}", ChartFolderName,
DateTime.Now.ToString("yyyy_MM_dd")));
if (!Directory.Exists(chartsFolder))
{
Directory.CreateDirectory(chartsFolder);
}
}
public override void DoYourJob()
{
base.DoYourJob();
string myChartsFolder = Path.Combine(
chartsFolder,
monitoredMarket.Description.Replace(':', '_'));
if (!Directory.Exists(myChartsFolder))
{
Directory.CreateDirectory(myChartsFolder);
}
int marketId = monitoredMarket.MarketId;
string betfairChartUrl =
monitoredMarket.ExchangeId == ExchangeId.UK ?
BetfairChartUK : BetfairChartAUS;
foreach (Runner myRunner in monitoredMarket.MarketDetails.Runners)
{
SaveRunnerChart(myRunner, marketId, betfairChartUrl, myChartsFolder);
}
ShowMessage(
string.Format("Saving charts for the market: {0}",
monitoredMarket.Description));
Stop();
}
private void SaveRunnerChart(Runner myRunner,
int marketId, string betfairChartUrl, string myChartsFolder)
{
ShowMessage(myRunner.Name);
try
{
WebRequest request = WebRequest.Create(
string.Format(betfairChartUrl,
marketId, myRunner.SelectionId, myRunner.AsianLineId));
using (WebResponse response = request.GetResponse())
{
using (Image image = Image.FromStream(response.GetResponseStream()))
{
image.Save(string.Format(
Path.Combine(myChartsFolder,
string.Format("{0}.png", myRunner.Name))), ImageFormat.Png);
}
}
}
catch (Exception exception)
{
ShowMessage(exception.ToString());
}
}
private void ShowMessage(string message)
{
betfairService.AddMessage(message, monitoredMarket.MarketId);
}
}
You can download the source code here, unzip the file and copy the betfair bot script and xml file to MyBots folder.
Using TOL to load markets by odds criteria
Posted in Suggestions by StefanBelo
Trade opportunity lookup (TOL) tool is able to execute your bots automatically on all loaded markets. You can set a bot execution to be started at exact time relatively to event start time, the parameter Start monitoring.
If you set the parameter Start monitoring to a negative value the market monitoring (or bot execution) is started before the event start time, for instance -120 seconds means 2 minutes before the event start time.
If you do not set the Start monitoring parameter (this parameter is unchecked) then loaded markets are monitored immediately inside TOL, so your lookup bot is started for each market and evaluates criteria you set in your bot setting.
If your bot criteria are met, your lookup bot does what is instructed to do and the market is opened for monitoring in the Market window.
This is the main TOL functionality you should know about when using this tool.
What you maybe do not know is that you can use TOL without adding a lookup bot to TOL Bots to run list. In this cases as there is not lookup bot to run, TOL will open markets for monitoring at time you set in the Start monitoring parameter.
Peter asked how to load automatically all football Over/Under markets where Over 2.5 Goals will be equal or higher than 2,0 and Under 1.5 Goals will be equal or higher than 4,0. We know that TOL is able to run and evaluate bot criteria only for one market. It is possible to load two or more different markets at once, but TOL will always run your bot on one market only. So what Peter asked is not possible without building a special bot, but for one market we can use TOL to filter markets by setting market or selection criteria.
In this case we do not want to place any bet/s, only open a football Over/Under 2.5 Goals market if Over 2.5 Goals will be equal or higher than 2, so in this case we have to use a bot that will do nothing but evaluate if Over 2.5 Goals will be equal or higher than 2.
We can use bot called: Execute a bot on selections without setting the parameter BotToExecute, so no action bot will be executed. In the Selection criteria we must add the following criteria: Best odds >= 2, selection 2 (Over 2.5 Goals is 2nd selection). On the Bot Setup page we must set the parameter: Evaluate market or selection criteria only once.
If we add this bot to TOL and load all in-play Over/Under 2.5 Goals markets then TOL will open for monitoring to the Market window only those markets where Over 2.5 Goals will be equal or higher than 2.
Betfair Market Search Using Trade Opportunity Lookup Service
Posted in From My Inbox by StefanBelo
Do any of your products include a customizable (Betfair) search function? I generally bet football and for example may want to search for all matches (regardless of country, league, competition etc) where the draw is available to lay at less than 3.0 or back at greater than 4.0.
As the Trade Opportunity Lookup service (TOLS) is able to load markets and evaluates market data against the LookUpBot logic we can use the TOLS also for this purpose, to search betfair markets. What we need is to create a lookup bot script which will evaluate our search logic.
using System;
using BeloSoft.Betfair.Data;
using BeloSoft.Betfair.Service;
using BeloSoft.Betfair.Trading;
namespace Bfexplorer.Scripting
{
class StartMonitoringLookUpBot : LookUpBot
{
// Const
private static string[] AllowedCountries = { "GBR", "DEU", "ESP" };
private const int NumberOfSelections = 3;
private const int CheckOddsRangeForSelection = 2;
private const double MinOdds = 3.0;
private const double MaxOdds = 4.5;
public StartMonitoringLookUpBot(IBetfairService betfairService)
: base(betfairService)
{
}
public override bool DoYourJob(MonitoredMarket monitoredMarket)
{
if (GetIsMyMarket(monitoredMarket))
{
MonitoredMarket myMonitoredMarket =
betfairService.GetMonitoredMarket(monitoredMarket.MarketId);
DoStartMonitoring(
myMonitoredMarket != null ? myMonitoredMarket : monitoredMarket
);
}
return false;
}
private bool GetIsMyMarket(MonitoredMarket monitoredMarket)
{
MarketDetails marketDetails = monitoredMarket.MarketDetails;
Runner[] runners = marketDetails.Runners;
// Number of selections
if (runners.Length != NumberOfSelections)
{
return false;
}
// Odds range
BetPrice betPrice = runners[CheckOddsRangeForSelection].BestPriceToBack;
if (betPrice != null)
{
double odds = betPrice.Price;
if (odds < MinOdds || odds > MaxOdds)
{
return false;
}
}
else
{
return false;
}
// Country filter
string myCountry = marketDetails.Country;
foreach (string country in AllowedCountries)
{
if (myCountry == country)
{
return true;
}
}
return false;
}
private void DoStartMonitoring(MonitoredMarket monitoredMarket)
{
betfairService.StartMonitorThisMarket(monitoredMarket);
}
}
}
The lookup bot will check if a market has 3 selections and the event is taking place in the allowed countries: Great Britain, Germany and Spain. If the third selection is offered in the preset odds range (MinOdds, MaxOdds) the market is opened for monitoring.
This custom LookUpBot script can be programmed the way it would place bets or run a trading bot as well.
To run such custom betfair market search task you need to add the LookUpBot script:
- Bfexplorer.Scripting.StartMonitoringLookUpBot
And then loads markets using the Browse selected market type. You can set the Start monitoring parameter so a market will be evaluated at preset time before or after the official event start time, or you can switch off this parameter so markets will be evaluated immediately.
If you run this betfair market search bot on today soccer fixtures the TOLS would open 3 markets from 8 offered markets.
Bfexplorer PRO a Betting Assistant problém
Posted in Bfexplorer PRO by StefanBelo
Cez víkend som posielal info o novom Bfexplorer PRO 2, dostalo sa to aj k jednému českému užívateľovi, ktorému som dal voľný prístup k Bfexplorer PRO zato, že umiestni na jeho blog linku na môj web. Tohto roku (pred 2 - 3 mesiacmi) som sa pozrel na jeho blog a tú svoju linku som tam nemohol nájsť, pozrel som si Google Analytics pre bfexplorer.net, a z jeho stránky som nenašiel žiadnu referenciu na môj web, preto som mu zrušil prístup.
Tu je jeho email:
No , jen abych to ukončil.Tvůj soft opravdu nepotřebuji a doprošovat se o něj rozhodně nehodlám,mám předplacený jiný na celý rok a jsem s ním spokojen.
Stále platí ,že Bfe jsi mi nabídl sám od sebe protihodnotou za umístění odkazu na můj web .O dalších podmínkách jsi se zřejmě "zapomněl " zmínit.
Lhát nemám zapotřebí ,takže platí ,že BFe při současném spuštění s BA prostě vytuhnul.Tobě ale tvoje ješitnost nedovolí tuto informaci zpracovat. Sorry ,ale tohle handrkování mě silně nebaví, takže nakonec Ti ještě ukážu tvůj odkaz(je tam od 3.11.2010) je zde:Odkazy /software
a popřeji Ti hodně úspěchů . dantroj
Ja som mu oponoval, že pri mojich testoch som skúsil spustiť Betting Assistant a súčasne Bfexplorer PRO, a nemal som žiadne problémy. Ukázal som mu aj toto video, kde Bfexplorer PRO užívateľ má súčasne spustený Bfexplorer PRO aj BA, (tuším od 5 minúty ide bfexplorer, a na lište vidno že je súčasne spustený aj BA) a jemu tiež všetko funguje.
Mám teda na vás otázku, mali ste podobné problémy s Bfexplorer PRO a BA?
The Next Sports Exchange API is Coming
Posted in Betfair Forum by StefanBelo
Betfair is hard at work on the next version of the Betfair Sports Exchange API. It’s been a long time since we made any significant changes to the API and we know there is lots of pent up demand for some new features, etc.
As you may know, Betfair has been busy re-building the underlying infrastructure of the Sports Exchange. The Betfair.com website has had a facelift and is now powered by a new set of internal services. The next version of the Betfair Sports Exchange API is going to be built on top of these new services.
The goals for the new API are:
Simple things should be simple, complex things should be possible The best way to build an interface to the Exchange Anything you can do in a Betfair built interface can be built on the API Build a modern web API (HTTP/JSON) Fix the missing features in the API (compared to the Website) Satisfy some long-standing feature requests Access to the same data Access to the same products (Sports Exchange, Sportsbook, etc) Easy to use and easy to learn.
Bfexplorer PRO plugin: NinjaTrader Betfair Data Feed
Posted in Bfexplorer Products by StefanBelo
On the chart above I used the following indicators:
- VOL - Volume
- MACD - Moving average convergence/divergence
- VMA - Variable moving average
- Bollinger - Bollinger bands
You can read more about it in this article.
My Football Strategy - Test of Football Bot Executor
Posted in Betfair Strategy by StefanBelo
Last days there was a lot of discussion about Football bot executor and how to use it on different football betting or trading strategies on betfair. I summarized it in this article because most of it was discussed on Czecho-Slovak forum.
Today I will run a test of this football bot on two different scenarios. The first one will start its lay the draw trading on each in-play football match today. The second one will start trading only on those matches for which there is available some match statistic. The bot will evaluate most recent matches and start lay the draw trading only if there is more than 50% recent matches that ended without the draw.
I prepared a simple bespoke trading solution to automate my trading with preset parameters. I will compare my results later today.
This picture shows my test from yesterday night.
*
My bot test was interrupted yesterday by lost connection to the Internet.
After the Internet connection has been restored almost after 18 hours, Bfexplorer PRO continued running without any problems.
I will continue testing today.
*
You can download and use MyFootballStrategy.Plugin for your testing.
Sharing a cost of bot development or bot strategies
Posted in From My Inbox by StefanBelo
http://bfexplorer.net/Forum.aspx/Show/439?page=3 - your last post concerning bot development
This is just an idea.
Would it be possible to develop bot strategy's with other members within a closed forum (invite only)
For example:-
I post an idea for a bot strat in the main forum ie Lay The Draw.
Then who ever is interested in contributing to the project express their interest via a follow on post.
Once the desired range of people have expressed an interest the thread op can invite them to a closed forum for full development and disclosure including final bot settings and setup.
Obviously disclosure of the final bot settings etc to the main forum should remain at the discretion of the original op.
Un-finished projects could also be disclosed to main forum after a period of time (1 month after last post) this would allow new and existing members the opotunity the pick up and maybe finish the project.
Like i said it is only an idea and im not even sure how feasible it would be to impliment such an idea.
To conclude i will say that this would make any bot strategy thats developed more exclusive(as we know the less people who are operating the same bot strat will prolong the life cycle of said bot strat) it would also encourage members to activly contribute to the development process instead of reading forum threads and 'ripping' the idea for themselves without make a single post.
Regards
This is maybe a good idea, if you find bfexplorer users who will be able/willing to participate on development of bot strategies or share bot development cost.
Bfexplorer web site has no such facility for exclusive membership but your idea can be made by using facebook groups for instance.






