Bot Executor and building advance betfair bot without programming
Posted in From My Inbox by StefanBelo
Hi, I bought the PRO today.
Before I tested a little bit "Bfexplorer for Horse Racing". Works fine. But in the PRO-Version I can't import or add new bots. The buttons are grey.
How can I import the .cs-files? It's hard to find your way around in this forum.
Thank You. Sorry for my bad English.
You can add a new bot setting in the Bot Executor only if you opened a market for monitoring before. You can execute a bot only on a market selection, so when testing your bot in the practice mode it makes sense that icons for starting a bot, or adding new one are disabled.
When you add a new bot setting, each bot has its own default settings because some of bots have many parameters and for inexperience users it would be difficult which parameters to set and which not. The bot default setting presents mandatory parameters in most cases, so if you are just testing a bot and all its functionality it is a good start to use this default bot setting.
If you forgot to enter values to mandatory bot parameters and you start a bot with missing parameter, the bot will stop and in the Output window you could read what parameters you have to set to run a bot, for instance:
"Please set the Stake if you want to run the bot."
The latest version of Bfexplorer PRO offers 16 built-in bots you can use with different settings. You can import some bot settings clicking on the toolbar button: Import. In the application folder:
C:\Program Files\BeloSoft\Bfexplorer\MyBots
or
C:\Program Files (x86)\BeloSoft\Bfexplorer\MyBots
when you have got 64 bit version of Windows operating system. You can find it this folder the file: MyBotCriteria.bcd that contains some base bot settings you can import.
You can export bot settings clicking on the toolbar button: Export. This way you can set your bot settings to your betfair friend who uses the Bfexplorer PRO as well, or in a case you have got a problem with bot setting you can send it to me, and I will tell you what you did wrong, If you are familiar with C# or Visual Basic programming langue, then you can create your betfair bot, in such case your create a bot script (a .cs file).
If you are not familiar with programming, you can use just Bot executor and create bots with different settings. You can even create a new bot from those bot settings you would create in the Bot Executor, by creating a bot batch file, to chain bot execution (ExecuteBotCriteriaDataFile) or to concurrently execute more bots (ExecuteConcurentlyBotCriteriaDataFile) on one selection, and you can even use conditional statement to execute two different bots in your bot batch file (IfProfitThenElse).
Wednesday, September 22, 2010
PrĂklad robotov
Diky moc, vyzkousim, novou verzi jsem jiz stahl, v noci ji nainstaluji.
Thursday, January 06, 2011
Import *.cs Files
Hi, please can anyone tell me, how I can use the *.cs files installes in the MyBot Directory?
I can only import th *.bcd file.
What´s about the *.cs files?
I ´ve downloaded much more from this forum. How can I use this *.cs files pls?
Thanks
Thursday, January 06, 2011
MyBot
If you want to execute betfair custom bot script from MyBot folder then read about MyBot setting the Bot Executor offers: MyBot
Sunday, April 03, 2011
Hello
1.I have a question about ExecuteConcurrentlyBotCriteriaDataFile. I have created 2 bots, I have made a .bcd file with them (with the export option). I´m trying to make a bot that executes those 2 bots at the same time but when any of them is matched CANCEL the other one. I´m not sure if I´m doing it correctly. I have sent you a screen capture.
When I run it it seems it executes one of the bots and when it is matched then it starts the other one. It seems it doesn´t execute both of them at the same time. Is there anything wrong in the screen capture?. How could I do to execute both at the same time and when any of them is matched then stop the other bot?. Instead ot if should I put on Mybotclassname the 2 bots with a ";"?.
2.What would be the difference in the 3 cases that I show you in the following image?. I still don´t know what the difference that there is between "Bot" and "Extrabot" and how they work when they have to execute a scripting.
Regards.
Monday, April 04, 2011
1) If you want to create a new bot combining functionality of two bots (maybe two different bots) with different settings, then you can do so, but your bot execution must make sense. What the bot ExecuteConcurrentlyBotCriteriaDataFile does is to execute concurrently each bot settings.
So if you added two bots setting into your bot criteria file, then the bot ExecuteConcurrentlyBotCriteriaDataFile tries to execute each bot at the same time, when first bot in your bot criteria file ends, the rest of bots in the file is executed till all bots end execution. When all bots end the bot ExecuteConcurrentlyBotCriteriaDataFile ends its execution as well.
2) The bot ExecuteConcurrentlyBotCriteriaDataFile has only one parameter: MyBotClassName that must be set to the bot criteria file you want to execute. If you want to execute the bot ExecuteConcurrentlyBotCriteriaDataFile, then you must set the parameter BotType to ExecuteConcurrentlyBotCriteriaDataFile, and of course mentioned parameter MyBotClassName.
Monday, April 04, 2011
1. But what I wanted to know is how could the other bot be stopped when one of them is matched?. I don´t want both of them matched, just one or the other (are exclusive). Is it possible to do it with parameters or will it have to be added on a script?. If so, could you put the 2 or 3 lines of code that allow to stop the other bot so I can add them to a script?.
2. I didn´t mean necessarily with ExecuteConcurrentlyBotCriteriaDataFile but with any bot. What would be the difference in the 3 cases?. What is the difference in BoType and ExtrabotType?. When one of them is needed and when not?. I have read other threads in the forum but I still don´t know why to use one or the other and their combinations.
Thursday, April 07, 2011
To stop a bot execution from inside the bot call Stop method. To force stopping execution of running bot/s from outside, so you can stop this way other running bots on a market, set the property:
myRunner.RunnerProperty.BotEnabled = false;
When you install Bfexplorer PRO in the bfexplorer pro application folder MyBots you can find a lot of betfair bot script sample. And of course on the forum.
The parameter ExtraBotType is used only by custom bot script: Bfexplorer.Scripting.SetupBotOnRunners
Friday, April 08, 2011
Hi Stefan,
Could you confirm me this: ExecuteConcurrentlyBotCriteriaDataFile or ExecuteBotCriteriaDataFile can not be use simultaneously with more than 1 runner (same market) at least with the TOL.
I made two very simple chain bots "place a bet (a back) and close position" then 10 minutes before the event start "place a bet (a lay) and close position". One with runner 1 and the other with runner 2. The chain bot with runner 1 works the other with runner 2 works also but if I try to start the chain bots simultaneously only one works not the other.
thanks.
Friday, April 08, 2011
Both bots can be used simultaneously and even in more instances, but there is only one issue, all that have to make a sense. I mean a bot which could be setup by such combination of chaining bots and simultaneous execution of more bots.
Friday, April 08, 2011
Hi,
"all that have to make a sense"! How does the bot know what makes sens and what does not?
I tried something very simple: Place a lay at 1,55 for 50 and place a back at @2,08 for 75 with ExecuteConcurrentlyBotCriteriaDataFile.
I want to offer the best price for the first runner in the back book and in the lay book (you can see a screen shot of betfair below).
The result on the output was:
Placing the bet back, 2,08 ($75) ---> which is correct.
Placing the bet lay, 2,08 ($75) ----> which is not correct, the odds and the stake are not right.
If MSR or someone else could make the test it would be nice.