Author Topic: Time to End of Race  (Read 4713 times)

Tags:
  • All members
  • Posts: 42
Time to End of Race
« on: 11 May 2015, 10:04 »
I cant find the old trigger to determine how long is left till the end of a race, does anyone have it?

  • Tim Vetrov
  • Administrator
  • Posts: 4870
  • Gender: Male
*
Re: Time to End of Race
« Reply #1 on: 11 May 2015, 11:09 »
Proud to be 🇺🇦
I'm happy to help Monday - Friday, 08:00-18:00 GMT
Буду рад помочь с понедельника по пятницу, 08:00-18:00 GMT

  • All members
  • Posts: 42
Re: Time to End of Race
« Reply #2 on: 11 May 2015, 11:37 »
When you click the link for the trigger the page does not exist any more

  • Tim Vetrov
  • Administrator
  • Posts: 4870
  • Gender: Male
*
Re: Time to End of Race
« Reply #3 on: 11 May 2015, 12:14 »
Oops, right.
The reason of creating that trigger was absence of the market_length trigger variable. Now it's a part of the software so to determine approximate time of the race you need to divide that value to approx. horse speed for that length. As I remember I got the speed from Google or calculated by myself for significant ranges. If you need I could re-create the trigger example for you.
Proud to be 🇺🇦
I'm happy to help Monday - Friday, 08:00-18:00 GMT
Буду рад помочь с понедельника по пятницу, 08:00-18:00 GMT

  • All members
  • Posts: 42
Re: Time to End of Race
« Reply #4 on: 11 May 2015, 13:01 »
Yes please, I used to use that all the time but couldnt find it again.

  • All members
  • Posts: 490
  • Gender: Male
Improvise Adapt Overcome

  • All members
  • Posts: 54
Re: Time to End of Race
« Reply #6 on: 12 May 2015, 05:21 »
As a newcomer may I ask a question along similar lines.
I have developed a trigger which I would like to activate 15 secs before scheduled race start time. Can someone help me with the time angle plse?

  • Guest
Re: Time to End of Race
« Reply #7 on: 12 May 2015, 07:22 »
I have developed a trigger which I would like to activate 15 secs before scheduled race start time. Can someone help me with the time angle plse?

Write a constant that sets the time you want and then in the trigger file have a condition that instructs to bet when the time to the off is breached. You can change the constant to other times when you need to. The condition is based on minutes to the off. 0.16 minutes is equal to 10 seconds, so 0.24 is the correct fraction for 15 secs.
See attached

Larp

  • All members
  • Posts: 54
Re: Time to End of Race
« Reply #8 on: 12 May 2015, 10:36 »
Thank you for the quick reply and the example. I understand it now.
Goodonya, as we say in Australia

  • All members
  • Posts: 54
Re: Time to End of Race
« Reply #9 on: 13 May 2015, 13:32 »
With help from the forum I have a trigger which is doing everything right ( checked trigger log ) . When it passes the trigger time it tries to place a bet and I get the message.

Error in the trigger expression of price or amount for selection "Destinys Gold".
21:29:30   All bets will be discarded.

I've tried a couple of ways to have the bet amount present and it seems fine to me. Can somebody shed any light on this error msg plse.
Jack

  • Guest
Re: Time to End of Race
« Reply #10 on: 13 May 2015, 16:41 »
Hi,

what is the Bet Amount expression you are using in the trigger file?

  • All members
  • Posts: 54
Re: Time to End of Race
« Reply #11 on: 14 May 2015, 00:07 »
Hi
I've included the triggers, which I meant to do the first time.
Thanks for your help.

  • Guest
Re: Time to End of Race
« Reply #12 on: 14 May 2015, 07:41 »
Hi,

Here are your amended triggers

Larp

  • All members
  • Posts: 54
Re: Time to End of Race
« Reply #13 on: 14 May 2015, 08:52 »
Thank you very much. I'll load it up and test it on the UK races.

 

Please note, BetFair is seems to be currently OFFLINE