Article

Automated repeating

Hi. I want to be able to place a bet and either have it hit the profit target or the stop loss, and when it is finished I want the bot to try again. I want to do this repeatedly until either the loss is too much or it is 1 minute before a race.

I have tried using the "Repeat Until" bot but that does not wait until back side and lay side are completed, and I end up having several bets running simultaneously.

Maybe pseudo-code explains it better:

Repeat

   Place back bet

   Back bet matched

   Place lay bet with stop loss

   Lay bet matched or stop loss triggered

   Wait 10 seconds

Until Loss>=10 or time<=-0:01:00

I hope that makes sense

Thanks.

Comments ( 3 )


  • Betfair Bot
    18.1.2018 16:40:21

    Use trading bot: “Place Bet and Close Selection Bet Position” setting Profit and Loss parameters (of course you can set different parameters for this bot to influence bot behavior when placing opening bet and closing one, test different settings).

    “Repeat Until” bot did not offer parameters required by your strategy, but I have just added two parameters: StopOnTime and to RepeatUntilParameter has been added “LossTarget”.

    Install the latest version of bfexplorer. First, test in practice mode only.

  • MopsyTurtle
    18.1.2018 17:42:48

    Many thanks for adding those clauses to the Repeat bot.

    I haven't yet figured out a way to tell a bot where the trading range is. So unfortunately a horse that is drifting will continue to lose money. Is there anyway to do that and I have missed it?

    I want to put a back bet in at the upper part of the trading range and then wait for a favorable swing.

    Thanks.

  • Betfair Bot
    18.1.2018 19:16:05

    I did not implement any kind of algorithm to evaluate entry points, the moment in time when your unique strategy should be executed on exact selection and exact but type.

    If you think about it, it is actually the key factor to become profitable bettor or trader.

    There is zillion of ways to achieve it and any of the ways is unique depending on your knowledge of sport, betting/trading and mainly your knowledge of software development as in last year’s many could apply machine learning to this process.

    In your case you can create trigger script to evaluate what you say, so calculate traded odds range and from that decide at what odds range you allow to execute your trading strategy.

    If you are not able to program them you must do so manually selecting horses you think would moved favorably to your set trading criteria.

    This article shows what a trigger script is and how to use it.

    http://bfexplorer.net/Articles/Content/113