Hi,
I am looking to build a rule in Guardian.
Something like for every 10,000 traded on a selection, i will place a lay bet of X. I think i have built that rule successfully. However i want the rule to be recurring in 10k increments, so buy the time 100k is traded for example, i have placed 10 lay bets. Looking to do this across any selection in market and mainly in ante post markets.
Thanks for any assistance.
Volume Traded Rule
- ShaunWhite
- Posts: 10576
- Joined: Sat Sep 03, 2016 3:42 am
I'm not really a Guardian user much but could you create a stored value that's vol/10,000 and condition your bets on #bets placed (ie #matched + #unmatched) < that stored value? I'm not sure how Guardian would handle the non integer result though. Might work.
You could set up a rule with 10 lines of code. Each line would have a £10 lay bet but would have a different volume condition to trigger. The first would have £10,000 volume traded, the second £20,000 etc etc. Hope this helps.Mobay7 wrote: ↑Thu Aug 26, 2021 2:23 amHi,
I am looking to build a rule in Guardian.
Something like for every 10,000 traded on a selection, i will place a lay bet of X. I think i have built that rule successfully. However i want the rule to be recurring in 10k increments, so buy the time 100k is traded for example, i have placed 10 lay bets. Looking to do this across any selection in market and mainly in ante post markets.
Thanks for any assistance.
- ShaunWhite
- Posts: 10576
- Joined: Sat Sep 03, 2016 3:42 am
10? He'll need 100 doing it that way if he wants to cover markets up to £1m. I think my solution was 1 or maybe 2 lines wasn't it, and works for any vol from 10k to infinity

All he has to do is IF #Bets < INT(Vol/10,000) then bet. With a suggestion to put INT(Vol/10,000) in a stored value to keep it simple.
All academic though, don't think he's read the reply to his question anyway.