Author Topic: Limit number of open bets  (Read 980 times)

Tags:
  • All members
  • Posts: 207
Limit number of open bets
« on: 24 Feb 2016, 20:10 »
Hi
I have added the attached to a trigger that was running fine in order to control the number
of bets it can open at any one time.
However it appears to have stopped any triggers firing at all.
I have a condition in the second part stating the number of runs of the back trigger is greater than 0.
and on my back trigger the condition
selections trigger expression  bc-hist_count  is less than al_b
Can anybody see anything wrong?
Many thanks

  • Moderator
  • Posts: 3605
*
Re: Limit number of open bets
« Reply #1 on: 24 Feb 2016, 20:33 »
Hi
If you want to limit the number of open (you did not say matched or unmatched) bets in a market:
markets number of unmatched back bets is equal or less than 5
markets number of matched back bets is equal or less than 5
same for lay etc...

or all bets in the program, please read in the help file in the general variables section about allbets_
example: selections trigger expression allbets_num is equal or less than 5

or, as in your trigger, you can update a counter:
in the betting trigger add a second action:
set user variable, name bc, value bc+1

condition in the betting trigger:
and selections trigger expression bc is equal or less than 5
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.

 

Please note, BetFair is seems to be currently OFFLINE