Author Topic: Preferred method for resetting stuff at end of the day.  (Read 2063 times)

Tags:
  • All members
  • Posts: 345
Hello!

I am running triggers on greyhounds..

What is the preferred method for running a trigger at the end of the day ... To recalc a new target new bet sizes etc for the NEXT day? 

Can some one explain...

It would be super handy if we could just have MF run at trigger at a specific time! Say midnight.. but we can't so what is the best way to go about doing this?

ta

  • Moderator
  • Posts: 3654
*
Re: Preferred method for resetting stuff at end of the day.
« Reply #1 on: 10 Feb 2020, 14:20 »
Hi
I think it can be done if the variables to be reset are global.
There needs to be one market refreshing, I would suggest a long-term tournament or politics market, something like that.
Low refresh rate, e.g. 5 minutes (or you can set the refresh rate through triggers for this market as it gets closer to reset time)

one trigger to reset your global variables and also to include an action to reset win/lose history
conditions:
markets name (or betting code) is the long term market
and global current time is between 23:30 and 23:59
and any other conditions you need...
  
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: 345
Re: Preferred method for resetting stuff at end of the day.
« Reply #2 on: 10 Feb 2020, 14:29 »
Thanks MarkV... not ideal... as obviously need to make sure market is still current and active etc..

Oh well suppose it will have to do !

  • All members
  • Posts: 345
Re: Preferred method for resetting stuff at end of the day.
« Reply #3 on: 14 Oct 2021, 01:09 »
I still hate how unreliable this method is. Market Feeder really needs a method for performing actions like resetting variables at a specific time. Indep3of whether there are any markets running or not! 

 

Please note, BetFair is seems to be currently OFFLINE