Pages:
Actions
  • #1 by liltbrockie on 20 Aug 2019
  • Really pulling my hair out here... this should be so simple but my mind has gone blank..!

    I need to recalculate a TARGET profit for the day at midnight or as close to after 00:00 as possible.

    How on earth do I do it??! reliably!

    I could have a trigger which does it between the times of 00:00 and 00:10 but what if there are no markets in that time? What if there are TWO markets in that time and it recalculates it twice?

  • #2 by liltbrockie on 20 Aug 2019
  • aha I can use total_won can't I!?
  • #3 by Oxa (WellDoneSoft) on 22 Aug 2019
  • Hi!

    If you set a trigger to be executed once per 3 minutes and add the condition that checks the current time is between 00:00:00 and 00:05:00, then trigger will be only executed once.

    But yes, you will need a market (any market) to be refreshed at that time, for triggers only work in refreshing markets.

    Quote
    aha I can use total_won can't I!?

    I guess you can, but I'm not sure for what purpose.
Pages:
Actions