Author Topic: Variable Market Monitoring  (Read 3644 times)

Tags:
  • Nerd
  • Élite
  • Posts: 462
  • Gender: Male
  • I think I could be on to something here!
*
Variable Market Monitoring
« on: 28 Aug 2014, 15:15 »
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?

Fortune favors the brave!

  • Nerd
  • Élite
  • Posts: 462
  • Gender: Male
  • I think I could be on to something here!
*
Re: Variable Market Monitoring
« Reply #1 on: 28 Aug 2014, 15:29 »
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.
Fortune favors the brave!

  • Guest
Re: Variable Market Monitoring
« Reply #2 on: 28 Aug 2014, 15:50 »
Hi,

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

larp

  • Nerd
  • Élite
  • Posts: 462
  • Gender: Male
  • I think I could be on to something here!
*
Re: Variable Market Monitoring
« Reply #3 on: 29 Aug 2014, 08:56 »
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.
Fortune favors the brave!

  • Guest
Re: Variable Market Monitoring
« Reply #4 on: 29 Aug 2014, 19:32 »
sweet  8)

Ty
Larp

 

Please note, BetFair is seems to be currently OFFLINE