Lay All Runners Bot in TOLS

Hi Stefan,

I'm being a little slow trying to figure this out, so a little help would be very much appreciated.

I want to lay all horses at a set odds, lets say 1.8 for a fixed stake say £20 per lay and allow it to go in play. I wish to run this in TOLS, but I am struggling to get the bot to work properly, could you help me out please

 

thanks

Adam

Comments (3)

  1. StefanBelo Says:
    Wednesday, August 19, 2009

    Betfair bot name

    Hi Adam, I already explained you through technical support window what was the problem when you tried to run custom LookUpBot script in the Trade Opportunity Lookup Service (TOLS), but it could be interesting for other users as well.

    You typed bot script file name as the name of bot script you wanted to execute, so including the file name extension: .cs, you should use only bot script file name without extension.

    You can read more about it in this form article: Trailing stop robot, the answer to Alan’s question.

  2. Adam Says:
    Wednesday, August 19, 2009

    Yep got that bit, its my bot that did not work

    Hi Stefan,

    Sorry I should have been more clear, I am actually having trouble getting the Bot to do what I want it to do, I can now get it to execute, whihc is what you helped me with before.

    Could you tell me which paramters I need to set when I want to lay all horses at a set odds, lets say 1.8 for a fixed stake say £20 per lay and allow it to go in play

     

    Thanks

    Adam

  3. StefanBelo Says:
    Wednesday, August 19, 2009

    Use the Bot Executor instead

    You told me you try to run the custom LookUpBot script:

    Bfexplorer.Scripting.LayAllInPlayLookUpBot2

    So the only way to change parameters is to edit the source code of this betfair bot:

            private const double Odds = 1.45f;
            private const double Stake = 20;
            private const int StartPlaceBetFromSeconds = 3;
    

    Change parameter to:

            private const double Odds = 1.8f;
    

    and for placing bets with keep bet attribute change the line:

    runnerProperty.StakeIsMyLiability = true;
    runnerProperty.AtInPlayKeepBet = false;
    

    to:

    runnerProperty.AtInPlayKeepBet = true;
    

    You try to execute custom bot script, but you can do the same using the action bot setup with Bot Executor, please read following article on my web blog: How to run a bot on each market selection 

    I would suggest using the Bot Executor, to use custom bot scripts you need to know at least something about programming.


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