Author Topic: Start trigger to load variables then pause monitoring.  (Read 927 times)

Tags:
  • All members
  • Posts: 207
Hi
Often, I bet on later races, I wish to start the trigger earlier, so I can take the reduction from non-runners into account in my lay trigger. So, though the race is say 5 p.m. I want to be able to load variables at 10 am.
If I run the trigger at 10 am  and then pause market using the button at bottom of my markets panel, the market does not seem to reopen two minutes before race time as set to do in settings.
Is there anyway I could get around this using a trigger or a condition? So monitoring is paused but will re-open on the set pre race time.
Thanks Mike

  • Tim Vetrov
  • Administrator
  • Posts: 4870
  • Gender: Male
*
Re: Start trigger to load variables then pause monitoring.
« Reply #1 on: 26 Jun 2022, 09:03 »
Hello,

I'm afraid the nature of the triggers supposes they are executed only on refreshed markets. So you can't start refreshing the market with a trigger.
And yes, MF doesn't start markets you've stopped manually before for security/safety reason.
But you can change market refresh rate to say 60 seconds when it's not needed and then back to X seconds 2 minutes before the off.
Proud to be 🇺🇦
I'm happy to help Monday - Friday, 08:00-18:00 GMT
Буду рад помочь с понедельника по пятницу, 08:00-18:00 GMT

  • Moderator
  • Posts: 3597
*
Re: Start trigger to load variables then pause monitoring.
« Reply #2 on: 26 Jun 2022, 09:04 »
Hi
Just continue to monitor the markets but at a slow refresh rate. For example:
start monitoring markets 10am, get variables set etc.
set market idle refresh rate to say 240 secs between 10:15 and 10:30
set market idle refresh rate to say 30secs when minutes before the off is between 2 and 5
set market idle refresh rate to 1sec when minutes before the off is less than 2

several triggers are needed to steadily speed up refresh rate because if refresh rate is changed from 240 to 1 at 2mins before the off it may not catch the 4 minute (240sec) refresh

example trigger:
set market idle refresh rate to: 240
first matching selection
all markets
once per market
conditions:
global current time is between 10:15 and 10:30
and one of the variables you want set has a value 
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: Start trigger to load variables then pause monitoring.
« Reply #3 on: 26 Jun 2022, 09:07 »
Morning, Mark ;)
You are the best, thank you!
Proud to be 🇺🇦
I'm happy to help Monday - Friday, 08:00-18:00 GMT
Буду рад помочь с понедельника по пятницу, 08:00-18:00 GMT

  • All members
  • Posts: 207
Re: Start trigger to load variables then pause monitoring.
« Reply #4 on: 27 Jun 2022, 09:24 »
Excellent thanks
Mike

 

Please note, BetFair is seems to be currently OFFLINE