Author Topic: How to trigger before first market from My Markets  (Read 75 times)

Tags:
  • All members
  • Posts: 4
Hi,
I have trigger to set user variable when first market from My Markets start (Global Current Time is between mr_1_event_start_timestr and mr_2_event_start_timestr) and it works.
But I'd like to set this user variable between 2 min and 0 min before start of first market from My Markets. 
I tried with condition Global Current Time is between mr_1_event_start_timestr - (1/1440) and mr_1_event_start_timestr - but this is not working...
What should be the correct syntax in the trigger conditions editor?

  • Moderator
  • Posts: 3693
*
Re: How to trigger before first market from My Markets
« Reply #1 on: 18 Jul 2025, 17:51 »
Hi
_timestr returns a string so cant do proper calculations on a string
 
use this condition instead:
selections trigger expression (mr_1_event_start - now_time)/mf_minute is less than 2

if you put
(mr_1_event_start - now_time)/mf_minute
into the variable viewer or an engineer mode cell you will see the countdown clock to event_start in minutes



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: 4
Re: How to trigger before first market from My Markets
« Reply #2 on: 18 Jul 2025, 20:01 »
Thank you!

 

Please note, BetFair is seems to be currently OFFLINE