Place back bet on higher odds than last traded lay price

Advanced automation available in Guardian - Chat with others and share files here.
Post Reply
croat
Posts: 23
Joined: Mon Oct 17, 2022 1:28 am

Hi,
Can you please help me with this issue, i'm stuck :( cannot figure it out myself, not sure am i on right track, as i'm newbie here on betangel software.
The part of file which cannot figure out is to place back bet (Rule Type: Close Trade On Selection With Greening)
Rule name in file which i believe not working is: '2.Close trade and green'
What I want to achieve with this automation file is to continuously place lay bet and after that place back bet (which need to be of course in any way higher than previously lay placed bet).
Thanks for help in advance!
You do not have the required permissions to view the files attached to this post.
User avatar
Dallas
Posts: 23597
Joined: Sun Aug 09, 2015 10:57 pm

You seem to have a lot of duplicate conditions on your rules, for example
the place others lay bet rule has 2 X Fixed odds condition to test the fav's lay price is less than 1.99

And i'm not really sure what it is over all the rules are meant to be doing but to answer your last line you could do that with just a

'Place Lay bet' rule and on the Parameters tab use
Offset bet with greening (enter the number of ticks you want
Fill/Kill (set the number of secs to what you want)

Conditions
Unmatched Bets Condition on selection is equal to 0
Fill/Kill Bet Time Condition is greater than 1 second

and that will place a lay bet, put a back bet with greening once matched then once the back bet is matched start again with another lay bet

You can add whatever other condition you want but thats the core of what you need
croat
Posts: 23
Joined: Mon Oct 17, 2022 1:28 am

Hi Dallas, thanks for help! Still learning and investigating everything so have there few double rules added as not sure which one correct..

What I want to achieve is exactly this:
- place first lay bet with let's say 20 euros fixed stake with odds less than 1,99
- place back bet - after first lay bet is matched - with greening and Cash Out 5 euros
- place lay bet with liability 5 euros (here cannot go in loss anymore) and after lay bet is matched Back as greening with 7 euros
- then repeating place lay bet liability with 7 euros and when matched back as greening with 9 euros.
- place lay bet 9 euros and after matched Back with 11 euros greening
- and repeating as bets going matched on..

Could you guide me in right direction to achieve this?

Would like to use it mainly in tennis matches.

I tryed with your suggestion with Offset bet with greening, it is similar, but not sure how to achieve to change greening amount as how with time back and lay bets getting matched generates profit on specific market with this...
User avatar
Dallas
Posts: 23597
Joined: Sun Aug 09, 2015 10:57 pm

croat wrote:
Mon Oct 31, 2022 4:36 pm
Hi Dallas, thanks for help! Still learning and investigating everything so have there few double rules added as not sure which one correct..

What I want to achieve is exactly this:
- place first lay bet with let's say 20 euros fixed stake with odds less than 1,99
- place back bet - after first lay bet is matched - with greening and Cash Out 5 euros
- place lay bet with liability 5 euros (here cannot go in loss anymore) and after lay bet is matched Back as greening with 7 euros
- then repeating place lay bet liability with 7 euros and when matched back as greening with 9 euros.
- place lay bet 9 euros and after matched Back with 11 euros greening
- and repeating as bets going matched on..

Could you guide me in right direction to achieve this?

Would like to use it mainly in tennis matches.

I tryed with your suggestion with Offset bet with greening, it is similar, but not sure how to achieve to change greening amount as how with time back and lay bets getting matched generates profit on specific market with this...
Now you've clarified what it is you are doing my suggestion of using offsetting wont work

What you've asked for is possible and fairly straight forward to set up but I'd need to think through the logic of the best way of doing it which I can then type up the instructions for and won't have time to do that till tomorrow (unless anyone else replies before)
croat
Posts: 23
Joined: Mon Oct 17, 2022 1:28 am

Thanks again for yout effort, appreciate it, tomorrow will be fine!
Today my trial subscription will expire so will take annual subscription, really like this software, just need to learn more how to use it with time...
User avatar
Dallas
Posts: 23597
Joined: Sun Aug 09, 2015 10:57 pm

croat wrote:
Mon Oct 31, 2022 6:26 pm
Thanks again for yout effort, appreciate it, tomorrow will be fine!
Today my trial subscription will expire so will take annual subscription, really like this software, just need to learn more how to use it with time...
Give this a try in practice mode, I've just put it together now so not had time to test it but it should do what you have asked for

I've set the arm time to always armed so you need to change that accordingly otherwise the first lay will be placed as soon as the fav goes below 1.99 and show then do the steps as you've set out

Any problems let me know or if there is something in it you don't understand why its there once you've started testing it
You do not have the required permissions to view the files attached to this post.
croat
Posts: 23
Joined: Mon Oct 17, 2022 1:28 am

Ok. Not working for now. Problems:
- won't place Further Bets at all. No matter what happened (tryed to change Allow Rule To Trigger by activating Unlimited Triggers instead 10 times but didnt help)
- after First Bet is placed sometimes those green up conditions are overlapping, example odds moving quick higher so green i is at once 9 euros, then it will trigger all green up conditions at once and got strange results - probably because Further Bets wont trigger..

I've added one more green up condition for easier testing, so sending file modified with this in attach.
You do not have the required permissions to view the files attached to this post.
croat
Posts: 23
Joined: Mon Oct 17, 2022 1:28 am

Screenshot (4).png
Screenshot (5).png
Screenshot (6).png
You do not have the required permissions to view the files attached to this post.
User avatar
Dallas
Posts: 23597
Joined: Sun Aug 09, 2015 10:57 pm

Now racing has started i'll run a few tests and repost another shortly
The greening rule all have conditions to create a range for only one to trigger in at a time, if it it jumps one (although now thinking about it that could then trigger later if the price moves against you after a further bet so will need to add some signals so an earlier on can't trigger after a later one has)
User avatar
Dallas
Posts: 23597
Joined: Sun Aug 09, 2015 10:57 pm

Try this one, as soon as I applied it to the first race I saw the error and from that could see a few more so corrected those and I've just ran it on a 2nd and 3rd race and it worked fine but obviously it hasn't had chance to go through every scenario that may unfold so keep testing in practice mode for a while and let me know if you see any further problems
You do not have the required permissions to view the files attached to this post.
croat
Posts: 23
Joined: Mon Oct 17, 2022 1:28 am

I tryed on tennis matches and received terrible results. Not even sure what it's doing and how to address problem, just continuously placing bets without sense, on each market differently :)
Can you try it on some tennis match?

Here is log of one of matches tested:

1.11.2022. 15:57:55: Guardian has detected that the market is in-play
1.11.2022. 15:57:55: Guardian has detected that the market is suspended
1.11.2022. 15:57:58: Guardian has detected that the market is now unsuspended
1.11.2022. 15:58:13: [G_Auto 1] : € 100.00 Lay bet placed on O Dodin at 1.2. Fully matched at 1.2. Ref: 10010 ( Fill or kill bet with 99999 seconds delay. )
1.11.2022. 16:00:56: [G_Auto 1] : Placed closure bet with greening on O Dodin by Backing 94.49 at 1.27
1.11.2022. 16:00:59: [G_Auto 1] : Placed closure bet with greening on O Dodin by Backing 94.49 at 1.27
1.11.2022. 16:01:08: [G_Auto 1] : € 18.37 Lay bet placed on O Dodin at 1.3. Fully matched at 1.3. Ref: 10019 ( Fill or kill bet with 99999 seconds delay. )
1.11.2022. 16:01:14: [G_Auto 1] : € 18.37 Lay bet placed on O Dodin at 1.3. Fully matched at 1.3. Ref: 10020 ( Fill or kill bet with 99999 seconds delay. )
1.11.2022. 16:01:20: [G_Auto 1] : € 18.37 Lay bet placed on O Dodin at 1.3. Fully matched at 1.3. Ref: 10022 ( Fill or kill bet with 99999 seconds delay. )
1.11.2022. 16:01:25: [G_Auto 1] : € 18.37 Lay bet placed on O Dodin at 1.3. Fully matched at 1.3. Ref: 10024 ( Fill or kill bet with 99999 seconds delay. )
1.11.2022. 16:01:31: [G_Auto 1] : € 18.37 Lay bet placed on O Dodin at 1.3. Fully matched at 1.3. Ref: 10025 ( Fill or kill bet with 99999 seconds delay. )
1.11.2022. 16:01:37: [G_Auto 1] : € 18.37 Lay bet placed on O Dodin at 1.3. Fully matched at 1.3. Ref: 10026 ( Fill or kill bet with 99999 seconds delay. )
1.11.2022. 16:01:43: [G_Auto 1] : € 18.37 Lay bet placed on O Dodin at 1.3. Fully matched at 1.3. Ref: 10029 ( Fill or kill bet with 99999 seconds delay. )
1.11.2022. 16:01:49: [G_Auto 1] : € 18.37 Lay bet placed on O Dodin at 1.3. Fully matched at 1.3. Ref: 10030 ( Fill or kill bet with 99999 seconds delay. )
1.11.2022. 16:01:54: [G_Auto 1] : € 18.37 Lay bet placed on O Dodin at 1.3. Fully matched at 1.3. Ref: 10031 ( Fill or kill bet with 99999 seconds delay. )
1.11.2022. 16:02:00: [G_Auto 1] : € 18.37 Lay bet placed on O Dodin at 1.3. Fully matched at 1.3. Ref: 10032 ( Fill or kill bet with 99999 seconds delay. )
1.11.2022. 16:02:06: [G_Auto 1] : € 18.37 Lay bet placed on O Dodin at 1.3. Fully matched at 1.3. Ref: 10033 ( Fill or kill bet with 99999 seconds delay. )
1.11.2022. 16:02:12: [G_Auto 1] : € 18.37 Lay bet placed on O Dodin at 1.3. Fully matched at 1.3. Ref: 10034 ( Fill or kill bet with 99999 seconds delay. )
1.11.2022. 16:02:18: [G_Auto 1] : € 18.37 Lay bet placed on O Dodin at 1.3. Entirely unmatched when it initially reached the market. Ref: 10036 ( Fill or kill bet with 99999 seconds delay. )
1.11.2022. 16:02:24: [G_Auto 1] : € 18,37 of unmatched bet (Ref:10036) was filled before remainder was killed.
1.11.2022. 16:02:32: [G_Auto 1] : € 18.37 Lay bet placed on O Dodin at 1.3. Fully matched at 1.3. Ref: 10040 ( Fill or kill bet with 99999 seconds delay. )
1.11.2022. 16:02:38: [G_Auto 1] : € 16.70 Lay bet placed on O Dodin at 1.33. Fully matched at 1.33. Ref: 10042 ( Fill or kill bet with 99999 seconds delay. )
1.11.2022. 16:02:44: [G_Auto 1] : € 19.00 Lay bet placed on O Dodin at 1.29. Fully matched at 1.29. Ref: 10043 ( Fill or kill bet with 99999 seconds delay. )
1.11.2022. 16:02:50: [G_Auto 1] : € 16.70 Lay bet placed on O Dodin at 1.33. Fully matched at 1.33. Ref: 10044 ( Fill or kill bet with 99999 seconds delay. )
1.11.2022. 16:02:56: [G_Auto 1] : € 16.70 Lay bet placed on O Dodin at 1.33. Fully matched at 1.33. Ref: 10046 ( Fill or kill bet with 99999 seconds delay. )
1.11.2022. 16:03:01: [G_Auto 1] : € 9.34 Lay bet placed on O Dodin at 1.59. Fully matched at 1.24. Ref: 10048 ( Fill or kill bet with 99999 seconds delay. )
1.11.2022. 16:03:07: [G_Auto 1] : € 22.96 Lay bet placed on O Dodin at 1.24. Fully matched at 1.24. Ref: 10049 ( Fill or kill bet with 99999 seconds delay. )
1.11.2022. 16:03:13: [G_Auto 1] : € 20.41 Lay bet placed on O Dodin at 1.27. Fully matched at 1.27. Ref: 10051 ( Fill or kill bet with 99999 seconds delay. )
1.11.2022. 16:03:19: [G_Auto 1] : € 20.41 Lay bet placed on O Dodin at 1.27. Entirely unmatched when it initially reached the market. Ref: 10053 ( Fill or kill bet with 99999 seconds delay. )
1.11.2022. 16:03:28: [G_Auto 1] : € 20,41 of unmatched bet (Ref:10053) was filled before remainder was killed.
1.11.2022. 16:03:36: [G_Auto 1] : € 30.61 Lay bet placed on O Dodin at 1.18. Fully matched at 1.18. Ref: 10054 ( Fill or kill bet with 99999 seconds delay. )
1.11.2022. 16:03:42: [G_Auto 1] : € 30.61 Lay bet placed on O Dodin at 1.18. Fully matched at 1.18. Ref: 10056 ( Fill or kill bet with 99999 seconds delay. )
1.11.2022. 16:03:48: [G_Auto 1] : € 30.61 Lay bet placed on O Dodin at 1.18. Fully matched at 1.18. Ref: 10058 ( Fill or kill bet with 99999 seconds delay. )
1.11.2022. 16:03:54: [G_Auto 1] : € 26.24 Lay bet placed on O Dodin at 1.21. Fully matched at 1.21. Ref: 10059 ( Fill or kill bet with 99999 seconds delay. )
1.11.2022. 16:03:59: [G_Auto 1] : € 26.24 Lay bet placed on O Dodin at 1.21. Entirely unmatched when it initially reached the market. Ref: 10060 ( Fill or kill bet with 99999 seconds delay. )
1.11.2022. 16:04:26: [G_Auto 1] : € 26,24 of unmatched bet (Ref:10060) was filled before remainder was killed.
1.11.2022. 16:04:34: [G_Auto 1] : € 34.44 Lay bet placed on O Dodin at 1.16. Fully matched at 1.16. Ref: 10061 ( Fill or kill bet with 99999 seconds delay. )
1.11.2022. 16:04:40: [G_Auto 1] : € 27.55 Lay bet placed on O Dodin at 1.2. Fully matched at 1.2. Ref: 10062 ( Fill or kill bet with 99999 seconds delay. )
1.11.2022. 16:04:46: [G_Auto 1] : € 27.55 Lay bet placed on O Dodin at 1.2. Fully matched at 1.2. Ref: 10065 ( Fill or kill bet with 99999 seconds delay. )
1.11.2022. 16:04:52: [G_Auto 1] : € 27.55 Lay bet placed on O Dodin at 1.2. Fully matched at 1.2. Ref: 10066 ( Fill or kill bet with 99999 seconds delay. )
1.11.2022. 16:04:57: [G_Auto 1] : € 27.55 Lay bet placed on O Dodin at 1.2. Fully matched at 1.2. Ref: 10067 ( Fill or kill bet with 99999 seconds delay. )
1.11.2022. 16:05:03: [G_Auto 1] : € 27.55 Lay bet placed on O Dodin at 1.2. Entirely unmatched when it initially reached the market. Ref: 10068 ( Fill or kill bet with 99999 seconds delay. )
1.11.2022. 16:05:10: [G_Auto 1] : € 27,55 of unmatched bet (Ref:10068) was filled before remainder was killed.
1.11.2022. 16:05:21: [G_Auto 1] : € 45.92 Lay bet placed on O Dodin at 1.12. Fully matched at 1.12. Ref: 10069 ( Fill or kill bet with 99999 seconds delay. )
1.11.2022. 16:05:27: [G_Auto 1] : € 45.92 Lay bet placed on O Dodin at 1.12. Fully matched at 1.12. Ref: 10070 ( Fill or kill bet with 99999 seconds delay. )
1.11.2022. 16:05:34: [G_Auto 1] : € 45.92 Lay bet placed on O Dodin at 1.12. Fully matched at 1.12. Ref: 10071 ( Fill or kill bet with 99999 seconds delay. )
1.11.2022. 16:05:40: [G_Auto 1] : € 45.92 Lay bet placed on O Dodin at 1.12. Fully matched at 1.12. Ref: 10072 ( Fill or kill bet with 99999 seconds delay. )
1.11.2022. 16:05:46: [G_Auto 1] : € 45.92 Lay bet placed on O Dodin at 1.12. Fully matched at 1.12. Ref: 10073 ( Fill or kill bet with 99999 seconds delay. )
1.11.2022. 16:05:52: [G_Auto 1] : € 45.92 Lay bet placed on O Dodin at 1.12. Fully matched at 1.12. Ref: 10074 ( Fill or kill bet with 99999 seconds delay. )
1.11.2022. 16:05:59: [G_Auto 1] : € 45.92 Lay bet placed on O Dodin at 1.12. Entirely unmatched when it initially reached the market. Ref: 10076 ( Fill or kill bet with 99999 seconds delay. )
1.11.2022. 16:07:15: [G_Auto 1] : € 45,92 of unmatched bet (Ref:10076) was filled before remainder was killed.
1.11.2022. 16:07:23: [G_Auto 1] : € 36.73 Lay bet placed on O Dodin at 1.15. Fully matched at 1.14. Ref: 10083 ( Fill or kill bet with 99999 seconds delay. )
1.11.2022. 16:07:29: [G_Auto 1] : € 13.78 Lay bet placed on O Dodin at 1.4. Fully matched at 1.4. Ref: 10084 ( Fill or kill bet with 99999 seconds delay. )
1.11.2022. 16:07:35: [G_Auto 1] : € 55.10 Lay bet placed on O Dodin at 1.1. Fully matched at 1.1. Ref: 10085 ( Fill or kill bet with 99999 seconds delay. )
1.11.2022. 16:07:41: [G_Auto 1] : € 55.10 Lay bet placed on O Dodin at 1.1. Fully matched at 1.1. Ref: 10086 ( Fill or kill bet with 99999 seconds delay. )
1.11.2022. 16:07:47: [G_Auto 1] : € 45.92 Lay bet placed on O Dodin at 1.12. Fully matched at 1.12. Ref: 10087 ( Fill or kill bet with 99999 seconds delay. )
1.11.2022. 16:07:54: [G_Auto 1] : € 45.92 Lay bet placed on O Dodin at 1.12. Fully matched at 1.12. Ref: 10088 ( Fill or kill bet with 99999 seconds delay. )
1.11.2022. 16:08:00: [G_Auto 1] : € 45.92 Lay bet placed on O Dodin at 1.12. Fully matched at 1.12. Ref: 10089 ( Fill or kill bet with 99999 seconds delay. )
1.11.2022. 16:08:06: [G_Auto 1] : € 45.92 Lay bet placed on O Dodin at 1.12. Fully matched at 1.12. Ref: 10090 ( Fill or kill bet with 99999 seconds delay. )
1.11.2022. 16:08:12: [G_Auto 1] : € 45.92 Lay bet placed on O Dodin at 1.12. Fully matched at 1.12. Ref: 10091 ( Fill or kill bet with 99999 seconds delay. )
1.11.2022. 16:08:19: [G_Auto 1] : € 45.92 Lay bet placed on O Dodin at 1.12. Fully matched at 1.12. Ref: 10092 ( Fill or kill bet with 99999 seconds delay. )
1.11.2022. 16:08:25: [G_Auto 1] : € 45.92 Lay bet placed on O Dodin at 1.12. Fully matched at 1.12. Ref: 10093 ( Fill or kill bet with 99999 seconds delay. )
1.11.2022. 16:08:31: [G_Auto 1] : € 36.73 Lay bet placed on O Dodin at 1.15. Fully matched at 1.14. Ref: 10094 ( Fill or kill bet with 99999 seconds delay. )
1.11.2022. 16:08:37: [G_Auto 1] : € 39.36 Lay bet placed on O Dodin at 1.14. Fully matched at 1.14. Ref: 10095 ( Fill or kill bet with 99999 seconds delay. )
1.11.2022. 16:08:43: [G_Auto 1] : € 42.38 Lay bet placed on O Dodin at 1.13. Entirely unmatched when it initially reached the market. Ref: 10096 ( Fill or kill bet with 99999 seconds delay. )
1.11.2022. 16:09:28: [G_Auto 1] : € 42,38 of unmatched bet (Ref:10096) was filled before remainder was killed.
1.11.2022. 16:09:36: [G_Auto 1] : € 36.73 Lay bet placed on O Dodin at 1.15. Fully matched at 1.15. Ref: 10098 ( Fill or kill bet with 99999 seconds delay. )
1.11.2022. 16:09:42: [G_Auto 1] : € 36.73 Lay bet placed on O Dodin at 1.15. Entirely unmatched when it initially reached the market. Ref: 10100 ( Fill or kill bet with 99999 seconds delay. )
1.11.2022. 16:09:47: [G_Auto 1] : € 36,73 of unmatched bet (Ref:10100) was filled before remainder was killed.
1.11.2022. 16:09:55: [G_Auto 1] : € 55.10 Lay bet placed on O Dodin at 1.1. Fully matched at 1.1. Ref: 10101 ( Fill or kill bet with 99999 seconds delay. )
1.11.2022. 16:10:01: [G_Auto 1] : € 55.10 Lay bet placed on O Dodin at 1.1. Fully matched at 1.1. Ref: 10102 ( Fill or kill bet with 99999 seconds delay. )
1.11.2022. 16:10:07: [G_Auto 1] : € 55.10 Lay bet placed on O Dodin at 1.1. Fully matched at 1.1. Ref: 10103 ( Fill or kill bet with 99999 seconds delay. )
User avatar
Dallas
Posts: 23597
Joined: Sun Aug 09, 2015 10:57 pm

I just applied the same file I uploaded to the Djokovic match and it working fine so far
Capture.JPG


Have you changed anything from the file I posted?

If not depending on the in-play match you are using it on you might need to increase the rearm time of the 'Further bets' rule and also its fill/kill time condition so that you can retrieve the updated bet status from Betfair after the Bet delay has passed - so setting it to something like like 10secs re-arm and 8 secs for the fill/kill condition should cover you for most markets including football
You do not have the required permissions to view the files attached to this post.
croat
Posts: 23
Joined: Mon Oct 17, 2022 1:28 am

No. Didnt changed anything.
What I do is use Market Selection/Filter/Ex:Tennis InPlay Match Odds.
From there I just select all InPlay Matches and run your .baf file on all matches.

Maybe problem too many markets at once? Now have them 17 running.
User avatar
Dallas
Posts: 23597
Joined: Sun Aug 09, 2015 10:57 pm

croat wrote:
Tue Nov 01, 2022 4:22 pm
No. Didnt changed anything.
What I do is use Market Selection/Filter/Ex:Tennis InPlay Match Odds.
From there I just select all InPlay Matches and run your .baf file on all matches.

Maybe problem too many markets at once? Now have them 17 running.
Thats fine the number of markets won't make any difference (as long as you have the refresh rate in Guardian set high enough ie, 20ms is what I'd suggest then you could add several dozen)

But i did see the same issue on the Djokovic match so increased the times I said in my previous message to account for the in-play delay and just waiting to see if it works on this next match
User avatar
Dallas
Posts: 23597
Joined: Sun Aug 09, 2015 10:57 pm

That seems to of sorted it
Capture.JPG
You do not have the required permissions to view the files attached to this post.
Post Reply

Return to “Bet Angel - Automation”