Forum Article

Bot Trigger - Miro Strategy

Hi,

sometimes I must kill bets which are too far from "trading edge". Placed by me or by bot.

 

What do you think, will be useful the parameter which kills bets in the distance bigger than 10 ticks from last traded odds?
For my "healthy" liquidity certainly.

 

Feature is for:

- running bots; for example if bot offered Open Lay bet at current Odds and the market drifted out; robot may restart after a kill bets

- manual trading; with many open bet - maintains a maximum size of accounts available, for next trading opportunity on market

 


 

Updated by Stefan, August 15, 2015


Your new bot trigger offers 4 parameters, the one is mandatory: CsvFile

The default setting for other 3 parameters are: CheckTimeSpan:20.0;BackRange:2;LayRange:6

For those who want to use this bot trigger as an inspiration or as a sample to build your own bot triggers, this bot script shows how to implement the following features:


1) Loading and processing csv file.

2) Filtering bot criteria by two parameters.

3) Implementation of the bot state machine.

4) Stopping not active bots.

5) Executing a bot action in set time interval.

6) Executing a list of action bots with different parameters.

Download “MiroStrategyBotTrigger” script if you want to test it or build your own script from it.

  • Add Your Comment

    +

    Please login to your bfexplorer account, if you want to add a comment to this article.

Comments ( 20 )


  • Betfair Bot
    13.8.2015 17:22:44

    You say, example situation:

    Handy trading -> I clicked on:

    3,80 Back

    3,70 Back

    3,60 Back

    3,50 Lay

     

    Your bot will check bots to execute in odds range, on your picture, conditions are fulfilled for rows with odds: 3.8, 3.7, 3.6, 3.5 and what about when odds moves, on your picture is 3.5 offered to back, but what if 3.5 will be offered to lay? Once was bot executed in 3.5 back offering position but now will be offered in 3.5 lay position.

  • Mir.
    13.8.2015 21:48:01

    Yes, this is not smart example.

     

    But why not?
    Each of bots open trading state and if each "take profit" make profit twice.
    If one take profit and one stop loss both made scratch trade ( if parameter of profit and stop loss are same).

  • Betfair Bot
    14.8.2015 14:32:46

    I created your bot trigger two days ago, just for education purposes, but the way you want to use it is just wrong, until you change your trigger part to be just a little bit useful, I do not release this bot for public testing.


    Most people would not understand that it is just for education purposes, to learn how to make own bot triggers by programming them using Bfexplorer BOT SDK.

  • Mir.
    14.8.2015 15:08:08

    Why is wrong?

     

    This only simulates what I do manually...

    It is not universal trigger for most markets, I prefer horse racing market. You need some extra conditions?

  • Mir.
    14.8.2015 15:36:28

    Is the trigger complicated?
    Is problem that on Selection runs 10 or more bots?

    Many bets?

    ---------------------------------------
    I think the key is parameters of action bots.
    If runs without bet actions, no problem for me.

  • Mir.
    14.8.2015 17:17:46

    One problem is border where bots are start/stop
    Better set: start 2 ticks/ stop 6 ticks from best back/lay price...

  • Mir.
    11.3.2016 2:34:35

    I can´t change StakeType in my CSV file.

     

    Is my syntax correct?

    670.00;Back;Place Bet;Odds;670.00;BetType;Back;Stake;2.22;StakeType;Tick Profit

     

    StakeType

  • Mir.
    13.3.2016 0:35:13

    Problem solved.
    I do not have to use parameter "StakeType" in my CSV file.
    -------------------------------------------------------
    All Stakes I can define exactly as Stake; prepared before

    Example:
    Tick Profit €1@3.65 is Stake €73@3.65

  • Betfair Bot
    13.3.2016 12:30:28

    Miro, your custom bot script had been developed without supporting StakeType parameter. Actually when your bot script was developed such bot parameter (StakeType) was not offered by bfexplorer bots.

    After I finished your custom bot I sent you the source code as well, so just have a look on function: ToObjectValue, if you want to add support for StakeType then add it to this function.

  • Mir.
    13.3.2016 14:04:28

    Thank you again for this bot, Stefan!

    Prepared stakes is not problem.