Pages:
Actions
  • #1 by Blacksheep on 21 Jun 2020
  • How would I set up a trigger based on the best 3 lay_amounts prices available?

    I'm looking at, for example, all horses with amounts over £50 but I only want to bet on the horse with the highest amount. The example below 2 horses have prices over £50 but I would want to only bet on Horse 2 with £52 amount

    Example 

    Horse1 Lay amounts £25 £51 £17
    Horse2 Lay amounts £17 £52 £12
    Horse3 Lay amounts £25 £10 £5

    I have selections Trigger Expression lay_amount, lay_amount2, lay_amount3
     is equal or greater than the min_lay_adv 

    selections Trigger Expression lay_amount, lay_amount2, lay_amount3 is the maximum


    The section in Bold is wrong I need correct formula thanks 


  • #2 by MarkV on 22 Jun 2020
  • Hi

    lay_amount+lay_amount2+lay_amount3

    you can also use lay_volume which is the sum of the three amounts offered at the best lay prices.
    In the settings, retrieve all price offers should be unticked. If it is ticked lay_volume will return the sum of all the amounts that are offered for the selection on the lay side.
  • #3 by Blacksheep on 22 Jun 2020
  • Thank you for your reply 

    If I use lay_amount+lay_amount2+lay_amount3 does this add up the 3 available amounts?

    For example 3.2@£10 + 3.4@£20 + 4.0@£52 =£82 

    I need the formula to check prices with amounts over £50 for example on all horses and back the horse with the highest amount if that makes sense.



  • #4 by Blacksheep on 22 Jun 2020
  • I 've uploaded a screenshot for example.

    You can see Birdie Bowers has £281 @ odds of 2.38 sitting on Lay_amount2
    also, Manolith has £115 @ 5.0 sitting on Lay_amount3

    If I was looking at the all amounts over say £100 what calculation would I use to back the highest amount Birdie Bower at the current price.

    There are other factors within the method but I can work out this section

    Thanks
  • #5 by MarkV on 22 Jun 2020
  • Hi
    Please see attached screenshot.

  • #6 by Blacksheep on 22 Jun 2020
  • Hello, thanks for your reply,

    I have run trigger through the test and I'm getting different results ( attached examples)

    The Trigger has placed a bet on Exchequer with money available at £204 lay_amount2
    however, if you look Knowing Glance has lay_amount2 of £227 that's the selection it should have chosen.

    It shouldn't include the other totals lay_amount & lay_amount3 in this instance  

    Thanks 
  • #7 by MarkV on 22 Jun 2020
  • Hi
    Sorry I misunderstood you did not want the 3 lay_amounts added together.

    Please try this condition block:

    AND
        OR
          selections trigger expression lay_amount is greater than 100.00
          and selections trigger expression lay_amount is the maximum
        OR
          selections trigger expression lay_amount2 is greater than 100.00
          and selections trigger expression lay_amount2 is the maximum
         OR
          selections trigger expression lay_amount3 is greater than 100.00
          and selections trigger expression lay_amount3 is the maximum
    and selections trigger expression MAXV(lay_amount, lay_amount2, lay_amount3) is the maximum
  • #8 by Blacksheep on 22 Jun 2020
  • Thanks, I have tried but won't let me save the trigger with AND & OR combined.
  • #9 by Blacksheep on 22 Jun 2020
  • I have tried the triggers below and almost achieves what I want it to do but must be a better way.
  • #10 by MarkV on 22 Jun 2020
  • start with an AND block and put the ORs in
    see attached screenshot 
  • #11 by Blacksheep on 22 Jun 2020
  • Works a treat thank you ... I 've been experimenting all-day trying different methods :)
Pages:
Actions