How to run a bot on each market selection

The Bot Executor is very simple tool for setting bot criteria for automated trading or betting. It is a tool which will help you to set your triggers and select a betting or trading strategy you want to execute on qualified market selection.

The Bfexplorer PRO - Bot Executor

If you want to execute any betting or trading strategy on all market selections you need to use the bot script you can find in MyBots folder:

  • Bfexplorer.Scripting.SetupBotOnRunners.cs

To better understand how this bot works first I will explain how bot criteria settings are entered into the bot executed on the market selection. Any bot parameters are entered into the selection property. When you open a market with bfexplorer pro and click on the menu item View / Selection Property the Selection Property window is displayed, in this window you can see all parameters which can be used by bot script. The parameters are grouped into 5 sections:

  • Analyze
  • Bot
  • Bot Parameter - Place Bet
  • Bot Parameter – Trading Odds

Not all parameters are used by a bot, some of them use just couple parameters the others more than 20, when writing your own bot script you can use any of these parameters and actually it is the only way how to enter any parameter from the bfexplorer user interface you have got, with the new release of bfexplorer pro 3.0 this mechanism will be changed.

How to use Bfexplorer.Scripting.SetupBotOnRunners

Have a look on some trading strategy you would want to run.

I want to trade a selection starting to lay with 100 on better odds when odds are in range from 4 to 6, if matched trading out with the profit of 3 ticks or a loss of 20% of my liability closing my position at the official start time if not done before.

To create such trading strategy you need to use the bot: Place bet and close position setting the following parameters with the Bot Criteria Editor:

ParameterValue
BetType Lay
MinOdds 4
MaxOdds 6
AllowPlacingBetInPlay False
AtInPlayCancelBet False
PlaceBetAtBetterOdds True
PlaceBetOnRunner 0
Stake 100
MinOddsDifference 3
UseMinOddsDifference True
StopLossOnPercentageLiability 20
ClosePositionAfter 00:00:00
ClosePositionAfterEnabled True

It is a good idea to test these bot criteria parameters in the practice mode executing them on the market selection with the Bot Executor, to ensure that no parameter was missed and bot works as it was intended.

Now we can finally setup these bot criteria setting to run on all market selections. As it was mentioned at we will need to setup MyBot: Bfexplorer.Scripting.SetupBotOnRunners and as the parameters we will use the bot parameters we used for the PlaceBetClosePosition bot adding the following parameters:

ParameterValue
BotType MyBot
ExtraBotType PlaceBetClosePosition
MyBotClassName Bfexplorer.Scripting.SetupBotOnRunners

We can again test it first in the practice mode starting these bot criteria setting with the Bot Executor.

You can download the bot criteria setting to import into the Bot Executor here.


Do you want to comment this article? Sign up here or login.

User Menu