Volume Traded Rule

Advanced automation available in Guardian - Chat with others and share files here.
Post Reply
Mobay7
Posts: 4
Joined: Mon Dec 21, 2020 11:45 am

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.
User avatar
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.
zippus
Posts: 181
Joined: Thu Jun 13, 2019 3:19 pm

Mobay7 wrote:
Thu Aug 26, 2021 2:23 am
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.
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.
User avatar
ShaunWhite
Posts: 10576
Joined: Sat Sep 03, 2016 3:42 am

zippus wrote:
Wed Sep 01, 2021 1:50 am
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.
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 :D

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.
zippus
Posts: 181
Joined: Thu Jun 13, 2019 3:19 pm

I'm sure there'll be other ways to do it.

I've suggested 10 lines of code because the original question wanted to go up in volume increments of 10,000 up to 100,000.
Mobay7
Posts: 4
Joined: Mon Dec 21, 2020 11:45 am

Thanks Shaun/Zippus,

Have definitely read the suggestions. I just need to upskill myself a little to work out how to implement Shaun's suggestion which obviously has the benefits of greater scale.

Many Thanks
Post Reply

Return to “Bet Angel - Automation”