Bot Executor and building advance betfair bot without programming

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).

Comments (37)

  1. Couronne Says:
    Monday, August 30, 2010

    Automatically switch between the markets

    //edit

     

    I got it :)

  2. Mir. Says:
    Monday, September 20, 2010

    IfProfitThenElse

    please, could you explain, how use conditional statement to execute two different bots in bot batch file (IfProfitThenElse)?

     

    ... with some concrete example ... thx

     

  3. Sipkar.cz Says:
    Monday, September 20, 2010

    IfProfitThenElse

    Take mne zajima prakticky priklad.

  4. StefanBelo Says:
    Tuesday, September 21, 2010

    How to use IfProfitThenElse bot

    First you have to prepare two bot settings you will use with IfProfitThenElse bot. Let us say you want to want to back selection if previous betting or trading activity made a profit and to lay if otherwise.

    You would prepare two bot settings and name them for instance:

    • Back 5 Euro
    • Lay 5 Euro

    Now you can prepare your IfProfitThenElse bot settings. Click on toolbar button: Add a new bot criteria, and name you bot setting.

    In the Bot Setup page select My Bot, and in My Bot property values select BotType and change it to: IfProfitThenElse

    The bot: IfProfitThenElse uses only one parameter: MyBotClassName, select it and enter the following value for this parameter:

    Back 5 Euro;Lay 5 Euro

    As you can see the parameter value are the names of bots you want to execute separated by semicolon ;

    It is important than bot names are exact names of your bot settings you created before. The semicolon is used to separate those bot names, the firt bot name represents the bot you want to execute when there is a profit on the market selection, and the second bot name represents the bot you want to execute when there is a loss on the market selection.

    In your example you want to execute a bot if there is a profit, and stop if there is a loss. In such case you will enter no name after semicolon:

    Back 5 Euro;

    Or similar if you want to stop if there is a profit, and execute a bot if there is a loss, you would type:

    ;Lay 5 Euro

  5. Sipkar.cz Says:
    Tuesday, September 21, 2010

    Vypada to dobre

    OK, diky za srozumitelne vysvetleni, ted jiz jen vymyslet co nejlepsi strategii ci  ji prevest

    do slozeneho botu, ale kazdopadne lze ted jiz kombinovat pravdepodobne cokoli.

  6. Mir. Says:
    Wednesday, September 22, 2010

    now, it is quite easy

    bot criteria editor

     

    Q1: Profit, means hedged profit or actual P/L on selection?

    hedged profit

     

    Q2: There is not defined parameter PlaceBetOnRunner (favorite, second favorite, ect.) I therefore conclude that the bot will continue on same selection (like bot before, Bot2) until the other bot will change; for example Bot3.

     

  7. StefanBelo Says:
    Wednesday, September 22, 2010

    Yes, it is really quite easy and you can create without programming complicated bot just using the bot settings of existing bots and either chaining them or grouping them for concurrent execution.

    IfProfitThenElse bot evaluates closed position on your selection, not current position. The bot was meant to be used in the chaining bot scenarios so there was no need to use the parameter: PlaceBetOnRunner.

    Evaluating the current bet position is maybe a good idea so I will add this feature as well.

  8. StefanBelo Says:
    Wednesday, September 22, 2010

    Ako bez programovania zostaviť dosť komplikovaného betfair robota

    Jirka, napíšem ti po slovensky ak ti angličtina robí problémy.

    Na Mirovu otázku som odpovedal len popisom ako použiť robota IfProfitThenElse, pretože som nechcel príliš komplikovať odpoveď podrobným popisom ako nastaviť parametre pre 6 robotov, ak rozumieš tomu prečo 6 robotov, tak ti už netreba nič vysvetľovať.

    Ak by som mal presne popísať Mirov obrázok a dosadiť doň možné roboty, tak by som si mohol vymyslieť nasledovnú stratégiu.

    Podať stávku (PlaceBet) a následne uzavrieť pozíciu za prednastavených parametrov, buď do zisku alebo do straty (ClosePosition).

    Slovíčko následne v tomto príklade znamená použitie robota ExecuteBotCriteraFile, pomocou ktorého si dokážeš vytvoriť robota ktorý podá stávku a uzavrite pozíciu NET stávkou.

    Ako dobre vieš 2 roboty ktoré má bfexplorer v ponuke pre automatické obchodovanie PlaceBetClosePosition a AutoTrader, uzatvárajú pozíciu len HEDGE stávkou. Takže ak chceš mať robota ktorý uzatvára NET stávkou, môžeš si ho zostaviť bez programovania za pár minút.

    Takže teraz sme v Mirovom obrázku za 2 bot, na úrovni IF PROFIT THEN 3 bot ELSE Stop

    Zostavili sme si 3 robotov, ktorých môžeme použiť aj samostatne. Takže robot nám uzatvorí pozíciu NET stávkou buď do zisku alebo do straty. V mojej stratégii chcem aby robot hedge-ol net pozíciu ak je zisková, nastavím si teda 4 robota (ClosePosition) ktorý mi hedge-ne moju pozíciu. Až teraz môžeme pokračovať s nastavením robota, ktorý na Mirovom obrázku rozhodne či robot hedge-ne pozíciu, alebo ukončí činnosť (IfProfitThenElse).

    Zostavili sme doteraz 5 robotov, ako som už spomenul každý z nich môžeme použiť aj osobitne, mi však chcem aby sa nám táto stratégia vykonávala v poradí ako Miro znázornil na obrázku, dáme to teda všetko dokopy (ExecuteBotCriteraFile).

    Za 15 minút sme zostavili robota, tým že sme dali dokopy to čo vykonáva 5 iných robotov, bez programovania len nastavením parametrov v Bot Executor-ovi. Ak by som mal poradiť, najprv si otestuj každého robota v učiacom režime, aby si mal istotu, že to čo si nastavil aj naozaj funguje tak ako si chcel.

    Mám taký pocit, že tomu čo som práve napísal aj tak väčšina z vás nerozumie, bolo by preto dobré ak by tí čo sú ochotní skúšať rôzne stratégie to skúsili prezentovať na svojich blogoch, alebo tu na fóre ukázali, ako jednoducho je možné zostaviť betfair robota bez žiadneho programovania.

  9. Sipkar.cz Says:
    Wednesday, September 22, 2010

    Ako bez programovania zostaviť dosť komplikovaného betfair robota

    Ahoj Stefane, diky moc za vyborny navod v cestine, po nekolikerem precteni mi je myslim jasne, jak

    vytvorene boty pospojovat vcetne IfProfitThenElse.

  10. StefanBelo Says:
    Wednesday, September 22, 2010

    Príklad robotov

    Do najnovšej verzie robota IfProfitThenElse som pridal parameter: UseAnyTradingOpportunity, ak ho nastavíš na True, robot bude pracovať s otvorenou pozíciou.

    Aby bola možná jednoduchá výmena robotov aj medzi užívateľmi, hlavne u tých ktoré využívajú roboty ExecuteBotCriteriaDataFile a ExecuteConcurrentlyBotCriteriaDataFile, upravil som roboty tak, aby bolo možné importovať nastavenie aj z hlavného adresára Bfexplorer PRO:

    Documents\Bfexplorer PRO

    teda nielen z absolútnej cesty k bcd súboru, stačí teraz zadať len meno súboru, a nie jeho úplné meno aj s adresárom. BCD súbor musí byť samozrejme umiestnený v Bfexplorer PRO adresári.

    Pripravil som aj nastavenie robotov z príkladu ktorý som uviedol k Mirovmu obrázku. Rozbaľ nasledovný súbor a skopíruj súbory: Back10EuroNet3ticksOr25loss.bcd a MiroBotExample.bcd do adresára:

    Documents\Bfexplorer PRO

    Importuj nastavenie robotov zo súboru: AllMiroBotExamples.bcd


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

User Menu