Author Topic: Random selection  (Read 10222 times)

Tags:
  • All members
  • Posts: 35
Random selection
« on: 29 Jun 2012, 20:53 »
Hi Guys

Is it possible to set a trigger to randomly chose 1 selection in a market?

This may seem silly but I need to rest it out in some markets. If this is possible please help.

Thanks

  • Tim Vetrov
  • Administrator
  • Posts: 4870
  • Gender: Male
*
Re: Random selection
« Reply #1 on: 30 Jun 2012, 04:17 »
Any Selection's Index is equal to INTEGER(ABS((event_start-now_time)/0.00001157))%runner_number+1
Proud to be 🇺🇦
I'm happy to help Monday - Friday, 08:00-18:00 GMT
Буду рад помочь с понедельника по пятницу, 08:00-18:00 GMT

  • All members
  • Posts: 35
Re: Random selection
« Reply #2 on: 30 Jun 2012, 09:35 »
Hi and thanks for your reply.

I put into the conditions of the trigger for greyhound races, Any Selections Index is equal to INTEGER(ABS((event_start-now_time)/0.00001157))%runner_number+1

but the trigger will not fire a bet, could you please tell me how to set this up correctly please.

Thanks

  • Tim Vetrov
  • Administrator
  • Posts: 4870
  • Gender: Male
*
Re: Random selection
« Reply #3 on: 30 Jun 2012, 11:00 »
Check other trigger fields (market, status, etc.) then trigger log.
Proud to be 🇺🇦
I'm happy to help Monday - Friday, 08:00-18:00 GMT
Буду рад помочь с понедельника по пятницу, 08:00-18:00 GMT

  • All members
  • Posts: 35
Re: Random selection
« Reply #4 on: 30 Jun 2012, 12:31 »
Hi cant find the problem I think my trigger is not set up correctly please give me an example so that I can check against my trigger. I am using MF V6

Thanks

  • Élite
  • Posts: 3698
  • Gender: Male
*
Re: Random selection
« Reply #5 on: 30 Jun 2012, 12:36 »
hi
i do not think the formula is for v6.

mcbee
Please read the following  disclaimer with regards to the information you may request and obtain on our forum. This specifically concerns trigger files and various instructions as to how to implement a strategy.

  • Tim Vetrov
  • Administrator
  • Posts: 4870
  • Gender: Male
*
Re: Random selection
« Reply #6 on: 30 Jun 2012, 14:24 »
Oh, the 6th ;(
Then
(now_time*10000000 - INTEGER(now_time)*10000000)%runner_number+1
Proud to be 🇺🇦
I'm happy to help Monday - Friday, 08:00-18:00 GMT
Буду рад помочь с понедельника по пятницу, 08:00-18:00 GMT

  • All members
  • Posts: 35
Re: Random selection
« Reply #7 on: 30 Jun 2012, 14:38 »
Ok I have set-up MF 7 and added the trigger but there is no Any Selection's in conditions just Selection's

I have:

Lay: lay_price Amount ( default_laya)/(1-commission)
Selections: All Matching Selections
Markets: All Markets
Market Status: All Except Settled

CONDITTION

Ans Selections Index is equal to INTEGER(ABS((event_start-now_time)/0.00001157))%runner_number+1

Any clues please, Ho and I had to leave   All Except Settled because it will change but then reverts back when saved or when on exiting the editor.

  • All members
  • Posts: 35
Re: Random selection
« Reply #8 on: 30 Jun 2012, 14:50 »
where do I put Oh, the 6th ;(
Then

Is it like this

AND Any Selection's index is equal to 6th ;((now_time*10000000 - INTEGER(now_time)*10000000)%runner_number+1

  • Tim Vetrov
  • Administrator
  • Posts: 4870
  • Gender: Male
*
Re: Random selection
« Reply #9 on: 30 Jun 2012, 14:53 »
Here the triggers.
Proud to be 🇺🇦
I'm happy to help Monday - Friday, 08:00-18:00 GMT
Буду рад помочь с понедельника по пятницу, 08:00-18:00 GMT

  • All members
  • Posts: 35
Re: Random selection
« Reply #10 on: 30 Jun 2012, 15:31 »
Here the triggers.


Thank you so much for this help, the trigger is firing fine but all it is doing is laying the favourite each time, I thought that it would pick any random selection.

  • Tim Vetrov
  • Administrator
  • Posts: 4870
  • Gender: Male
*
Re: Random selection
« Reply #11 on: 30 Jun 2012, 18:28 »
That's strange. Are you sure?
It works pretty well with my MF...
Proud to be 🇺🇦
I'm happy to help Monday - Friday, 08:00-18:00 GMT
Буду рад помочь с понедельника по пятницу, 08:00-18:00 GMT

  • Élite
  • Posts: 3698
  • Gender: Male
*
Re: Random selection
« Reply #12 on: 30 Jun 2012, 19:23 »
hi
i have tested both downloads with v7 and they are random.
tested the download for v6 only and it is random.

mcbee
Please read the following  disclaimer with regards to the information you may request and obtain on our forum. This specifically concerns trigger files and various instructions as to how to implement a strategy.

  • All members
  • Posts: 35
Re: Random selection
« Reply #13 on: 30 Jun 2012, 20:20 »
hi
i have tested both downloads with v7 and they are random.
tested the download for v6 only and it is random.

mcbee
Got it thanks mcbee I had
OR (now_time*10000000 - INTEGER(now_time)*10000000)%runner_number+1

and OR selections lay price is equal or less than 12 changed both to AND and all is fine

Thanks

  • Élite
  • Posts: 3698
  • Gender: Male
*
Re: Random selection
« Reply #14 on: 30 Jun 2012, 20:48 »
hi
we are all learning new tricks.
this is new to me and something that i have been looking for.

thanks
mcbee
Please read the following  disclaimer with regards to the information you may request and obtain on our forum. This specifically concerns trigger files and various instructions as to how to implement a strategy.

 

Please note, BetFair is seems to be currently OFFLINE