Pages:
Actions
  • #1 by Oxa (WellDoneSoft) on 09 Sep 2013
  • Copied from a support request:
    Quote
    Is it possible to develop a trigger for the following horse racing scenario during IN PLAY :

    I want a trigger during in-play when a horses LAY odds go down to say 1.01 and the trigger LAYS the next best LAY odds available for another horse. It lays 1 horse only.

    eg - in a typical race with 6 runners horse A is winning towards the end of the race and its  LAY odds hit 1.01. On that signal the trigger kicks in and immediately LAYS horse B who is second with LAY odds of 40.0. It lays horse B when horse A's Lay odds hit 1.01 and thats it no more bets on that race.
  • #2 by kallixx on 09 Sep 2013
  • I've done something like this before.

    I had an In-Play Trigger for Second Favorite.
    Laying £2 at Price 40
    it would trigger when r_1_lay_price = 1.01

    Does this help?
  • #3 by MarkV on 09 Sep 2013
  • Hi
    Similar to the post by kallixx, attached is a trigger which will:
    lay 2nd favourite
    at best available price
    if favourite's lay price is equal to 1.01
    There is a constant you can set for maximum lay price on second fav

    If you want to specify a price to lay at, change "best" for your price, and ensure the constant is set accordingly.

    Please use test mode to try it out.
  • #4 by 3daydealer on 10 Sep 2013
  • Hi,

    I have been trying this with the stake of 0.02 and constant price of 45.0 with the max lay price of 82.0 when the fav price is 1.02, but in all the races today the bet has not fired.
    I think the reason is because when a horse ends up 1.02 the 2nd fav is never below 80.0 and the bet therefore doesnt go?

    Is this the case, or have I got it setup incorrectly? (Maybe this bot is too slow to react in the market...)

    Any advice would be appreciated as I think its a good idea.
  • #5 by MarkV on 10 Sep 2013
  • Hi
    If you work to an exact 100% book (on the first 2 favs) and calculate the opposite lay price to current back price using this formula: 1 / (back_price -1) +1

    1 / (1.01 -1) +1 = opposite lay price of 101.00
    1 / (1.02 -1) +1 = opposite lay price of 51.00
    1 / (1.03 -1) +1 = opposite lay price of 34.33
    1 / (1.04 -1) +1 = opposite lay price of 26.00
    1 / (1.05 -1) +1 = opposite lay price of 21.00

    I think you need to move your trigger activation to between 1.03 to 1.05 fav back price to have any chance of being matched. Even further if you take into account transaction latency time. Problem is risk increases.
  • #6 by rubold on 10 Sep 2013
  • It works in test mode using a back price of 1.02 or less and a lay price for the second favourite of <60.

    When using stakes below the minimum, which I agree you would need to use in early live tests, there will be more delay as it takes 3 transactions to successfully place the small bet.
  • #7 by 3daydealer on 10 Sep 2013
  • It works in test mode using a back price of 1.02 or less and a lay price for the second favourite of <60.

    When using stakes below the minimum, which I agree you would need to use in early live tests, there will be more delay as it takes 3 transactions to successfully place the small bet.

    I thought I read somewhere that when using the API you can place bets let than £2 minimum and it just goes through, or does it have to do it the same way?
  • #8 by rubold on 10 Sep 2013
  • The bot handles small bets seamlessly, but it needs 3 transactions to achieve it rather than one for a normal bet, so this further delays live bet matching which is a serious problem with in-play betting.
  • #9 by 3daydealer on 11 Sep 2013
  • Would you expect the trigger to fire if I did £2 as the stake then?
    As I am just trying to get it to fire so I can see it in my lapsed bets or whatever in history so I can do some analysis and see what price I need to be at and everything.
  • #10 by rubold on 11 Sep 2013
  • I would expect my trigger to fire with £2 bets, but possibly not using a back price of 1.02 or less.  So this threshold may need to be increased in steps of 0.01, until you find a suitable compromise that gives enough bets.  It is better to enter a lay order at the max. price you are happy with eg. 60.  Also use the fastest refresh rate which is 0.2 or 0.3 - check manual.
  • #11 by alfaman on 11 Sep 2013
  • A word of warning - 1.01 does not mean it is going to win.

    Take Pelmanism in the 15:35 at Doncaster (UK horse win market) today. Pelmanism  got to 1.01 to and Danas Present to 1.02.

    Danas Present was trading at 980 just prior to falling right down again - someone may be a very lucky winner there !  winner yet to be announced.

    [Post race note:  Excellent Puck won so that was resumably three selections trading at very low prices.  Excelent Puck was trading at 1000 before it won - so there were some lucky in-play punters out there - not me unfortunately]
  • #12 by 3daydealer on 11 Sep 2013
  • What do I need to put into this trigger to cancel the bet after 1 second of being in the market if it does not get matched?
  • #13 by alfaman on 11 Sep 2013
  • A cancel trigger with a condition:

    Trigger expression    (now_time - bu_backtime) / 0.00001157 is greater than 1

    What that says is subtract from the time now,  the time of the last unmatched back,  bet and that gives a number in days since the bet was placed, dividing by the number above converts that into seconds. 
  • #14 by Oxa (WellDoneSoft) on 13 Sep 2013
  • Following alfaman's post, there is a variable in MF Pro for the fraction of time equal to a second, minute or hour:

    mf_second, mf_minute, mf_hour

    So the same condition can be written as:

    Trigger expression    (now_time - bu_backtime) / mf_second is greater than 1
  • #15 by alfaman on 14 Sep 2013
  • Ah thanks Oxa - I had not noticed those - I am still dawdling in V6 as I still find V7 difficult to do what I want regaring statements, log files and other things and V6 still works well for me.
Pages:
Actions