Author Topic: Trigger condition  (Read 522 times)

Tags:
  • All members
  • Posts: 231
  • Gender: Male
Trigger condition
« on: 08 Feb 2023, 01:34 »
Hi all,

I'm hoping this has a simple solution, but I can't work it out!

I have a trigger that throws up a few qualifiers (eg selections under $5.00 say), and I then only want to back the runner with the least days since last run (ie 10 is better than 21).

Is there a condition that will do this?

Thanks in advance, and apologies if it is a simple solution.

Bobh

  • Moderator
  • Posts: 3606
*
Re: Trigger condition
« Reply #1 on: 08 Feb 2023, 07:45 »
Hi
The variable is silk_days. When I tested it there were quite a few selections where silk_days = zero i.e. 1st run.

Try this in test mode:

...your conditions first, then
and selections trigger expression silk_days is greater than 0
and selections sorting order is defined by silk_days
and selections match_index is equal to 1

this will pick the selection with the smallest number of days since last run but greater than zero 
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: 231
  • Gender: Male
Re: Trigger condition
« Reply #2 on: 08 Feb 2023, 12:56 »
Thanks Mark,

I'll give it a try asap.

bobh

 

Please note, BetFair is seems to be currently OFFLINE