Pages:
Actions
  • #1 by 1oser on 28 Aug 2014
  • I am working on something for match odds. I start monitoring 30 minutes before the off and check for matching conditions every 66 seconds.

    I am now facing a problem with having too many markets starting more or less the same time where there are open bets (matched & unmatched) and this ends up affecting my other strategies as there's no funds to bet with. I've tried adding a limit by making sure the soccer strategy bets only if balance * 0.25 is greater than uk_funds ... however with the market refreshing at the same time when this condition is checked .. it's possible for the criteria to be fine then 20 open bets are fired at the same time finishing the available funds to bet.

    What I need is for monitoring markets to not start at exactly the same time ... is this possible?

  • #2 by 1oser on 28 Aug 2014
  • No worries .. I think I might have a solution ... I see that "no more than every x seconds" also depends on the market refresh rate. I have made this random and this should stagger the trigger firing on different markets.
  • #3 by LarpHager on 28 Aug 2014
  • Hi,

    Do you mind sharing what the code is for generating the "random" is

    larp
    • LarpHager
  • #4 by 1oser on 29 Aug 2014
  • No problem .. my default idle refresh in the setting is set to 10 seconds.


    The trigger  is below ... It's a separate Trigger

    Action = Set Market's Idle Refresh to
    Rate = Random(67)
    Selection = First matching selection
    no more often than 10 seconds
    Market status = idle or suspended

    Conditions are met
    Selections trigger expression idle_rate is less than 15

    ~~~~~~~~~~~~~~~~~~~~~~~~~~

    So every 10 seconds or so, the refresh rate is set to a random number of seconds between 0 & 67. Should the number be less than 16 ... the trigger will try again .. until a random number above 15 is generated.
  • #5 by LarpHager on 29 Aug 2014
  • sweet  8)

    Ty
    Larp
    • LarpHager
Pages:
Actions