Cancel bets

Advanced automation available in Guardian - Chat with others and share files here.
Post Reply
niceday
Posts: 26
Joined: Sat Feb 04, 2017 6:34 pm

Hi

I hope someone can help I have an automation rule which places two bets with offset at 10 ticks above and below the current market price and if one price is taken I want the other cancelled which is fine I have an unmatched bets rulr set to 1 and it cancels the trade but then the offset goes in and the trade gets cancelled as there is one unmatched bet in the market is there a way round this.
User avatar
Dallas
Posts: 22713
Joined: Sun Aug 09, 2015 10:57 pm
Location: Working From Home

Try this servant, I think the principal of what it does is what your after
viewtopic.php?f=58&t=15344
niceday
Posts: 26
Joined: Sat Feb 04, 2017 6:34 pm

Can this only be used as a servant as I have tried to add to my auto rule and then add to a market and get the warning box saying its a servant I have changed the servant context selections to any selection and added the rules reset cancel and signals to my rule
User avatar
Dallas
Posts: 22713
Joined: Sun Aug 09, 2015 10:57 pm
Location: Working From Home

niceday wrote:
Fri Mar 16, 2018 11:07 am
Can this only be used as a servant as I have tried to add to my auto rule and then add to a market and get the warning box saying its a servant I have changed the servant context selections to any selection and added the rules reset cancel and signals to my rule
It should be possible to use as full automation, from memory it's just the selection and staking that uses servant context
(the signal and cancel rules will also use the selection servant context)

But changing all these to something like 'Applied to' Betfair row 1 with to a fixed stake and it should work
User avatar
Dallas
Posts: 22713
Joined: Sun Aug 09, 2015 10:57 pm
Location: Working From Home

If not post back and ill re-import the file this evening and have a better look
niceday
Posts: 26
Joined: Sat Feb 04, 2017 6:34 pm

I have changed to any selection and tried cancel all unmatched on selection still not working if i make it a fixed price would I have to make a rule for each of my back and lay rules for certain prices as I have about 100 rules in there
User avatar
Dallas
Posts: 22713
Joined: Sun Aug 09, 2015 10:57 pm
Location: Working From Home

You should only need the signal and cancel rules towards the bottom of the automation file (depending on your current rule set up you may need a set of these for each selection or you may need to play around with the signals so that one set can monitor multiple selections)
niceday
Posts: 26
Joined: Sat Feb 04, 2017 6:34 pm

tried just the signal and cancel rules with reset tried changing to any selection one selection can't get anything to work if i just put one rule in I still get cant use as its a servant (Confused)
niceday
Posts: 26
Joined: Sat Feb 04, 2017 6:34 pm

Can you tell me whats in the file thats stopping me using it as automation as I have changed everything that said servant to any selection in the rules

Cancel Backs
Signal Backs
Signal Lays
Cancel Lays

Reset Matched Bets Amount

I have moved the rules to my automation rule changed the reset matched time to 10mins - 1 second before off I have left the times for signals and back/Lay the same as I presume they trigger when the Reset Matched Bets Amount is triggered which triggers every 5 seconds
User avatar
Dallas
Posts: 22713
Joined: Sun Aug 09, 2015 10:57 pm
Location: Working From Home

niceday wrote:
Fri Mar 16, 2018 8:24 pm
Can you tell me whats in the file thats stopping me using it as automation as I have changed everything that said servant to any selection in the rules

Cancel Backs
Signal Backs
Signal Lays
Cancel Lays

Reset Matched Bets Amount

I have moved the rules to my automation rule changed the reset matched time to 10mins - 1 second before off I have left the times for signals and back/Lay the same as I presume they trigger when the Reset Matched Bets Amount is triggered which triggers every 5 seconds
I've just checked the file and it is only those rule types you have listed above that you need and the only parts of those rules that use 'context' is the applied to area.

It would be worth coping the way each is set up but by creating them manually from scratch - its possible that even though your editing the selection correctly for use in guardian the rule is not letting go of the old 'context' selection your trying to edit
niceday
Posts: 26
Joined: Sat Feb 04, 2017 6:34 pm

I reworte the rules don't get servant error box now i have changed to any selection still can't get it to work my bets are placed fine but no cancelling of the opposite side which means no more bets get fired until fill or kill kicks in 180 seconds to cancel the bet any ideas as you can see from the log no bets are cancelled

17-03-2018 13:51:10: [G_Auto] : Matched bets checkpoint created at:
Copain De Classe : 0 back bets, 0 lay bets, £0.00 back stake, £0.00 lay stake.
Kayf Blanco : 0 back bets, 0 lay bets, £0.00 back stake, £0.00 lay stake.
Vocaliser : 0 back bets, 0 lay bets, £0.00 back stake, £0.00 lay stake.
Deauville Dancer : 0 back bets, 0 lay bets, £0.00 back stake, £0.00 lay stake.
Free Stone Hill : 0 back bets, 0 lay bets, £0.00 back stake, £0.00 lay stake.

17-03-2018 13:55:20: [G_Auto] : £ 5.00 Back bet placed on Copain De Classe at 2.3. Entirely unmatched when it initially reached the market. Ref: 119483642184 ( Fill or kill bet with 180 seconds delay. Offsetting by 1 ticks. Stop at 10 ticks. Place stop at 8 ticks )
17-03-2018 13:55:20: [G_Auto] : £ 5.00 Lay bet placed on Copain De Classe at 2.1. Entirely unmatched when it initially reached the market. Ref: 119483642134 ( Fill or kill bet with 180 seconds delay. Offsetting by 1 ticks. Stop at 10 ticks. Place stop at 8 ticks )
17-03-2018 13:56:03: [AS 224] : Automation Servant ( Green or Red 5 Seconds ) Started as Safety Servant.
17-03-2018 13:56:05: [G_Auto] : £ 5 of unmatched bet (Ref:119483642134) was filled before remainder was killed.
17-03-2018 13:56:05: [G_Auto] : £ 5.00 Back bet placed on Copain De Classe at 2.12. Entirely unmatched when it initially reached the market. Ref: 119483770969
17-03-2018 13:57:36: [G_Auto] : £ 5.00 Lay bet placed on Kayf Blanco at 3.5. Entirely unmatched when it initially reached the market. Ref: 119484024250 ( Fill or kill bet with 180 seconds delay. Offsetting by 1 ticks. Stop at 10 ticks. Place stop at 8 ticks )
17-03-2018 13:57:36: [G_Auto] : £ 5.00 Back bet placed on Kayf Blanco at 4. Entirely unmatched when it initially reached the market. Ref: 119484024253 ( Fill or kill bet with 180 seconds delay. Offsetting by 1 ticks. Stop at 10 ticks. Place stop at 8 ticks )
17-03-2018 13:58:21: [G_Auto] : £ 5 unmatched bet (Ref:119483642184) was killed.
17-03-2018 13:58:23: [G_Auto] : £ 5.00 Back bet placed on Copain De Classe at 2.2. Entirely unmatched when it initially reached the market. Ref: 119484166232 ( Fill or kill bet with 180 seconds delay. Offsetting by 1 ticks. Stop at 10 ticks. Place stop at 8 ticks )
17-03-2018 13:58:23: [G_Auto] : £ 5.00 Lay bet placed on Copain De Classe at 2. Entirely unmatched when it initially reached the market. Ref: 119484166231 ( Fill or kill bet with 180 seconds delay. Offsetting by 1 ticks. Stop at 10 ticks. Place stop at 8 ticks )
User avatar
Dabbla
Posts: 665
Joined: Wed Apr 15, 2009 1:50 pm

I have found some cancel rules need to be set individually e.g. bf 1, bf 2, bf 3, or fav 1 fav2 etc.
I think it’s when you using price dependant with any selection, but I cant remember what the exact set up is . If this is the case with your set up. Try to trigger your rule on the fav or the selection bf has at the top of the market and see if the cancel works. If it does you will have to do them individually.

I think it’s how certain rules are set up, ba just keeps re checking the first selection.

It’s never felt right to me, so may have been doing some wrong but that’s how I got round the problem.
niceday
Posts: 26
Joined: Sat Feb 04, 2017 6:34 pm

Just changed everything to bf1 and no difference places bets ok takes bet offsets alright opposite side not cancelled would i have to set the signals for each individual price as I have the bet rules set to say price goes to 6 a back bet gets placed at 6.4 offset 1 tick and a lay bet gets placed say 5.7 offset 1 tick if the price goes to 5.7 and gets matched an offset at 5.8 goes in if that gets matched I want the 6.4 cancelled so if the drops to 5.5 another two bets go in at say 5 with offset and 6 with offset and the process starts all over again.
niceday
Posts: 26
Joined: Sat Feb 04, 2017 6:34 pm

Thank you all for your help still couldn't get it to work
Post Reply

Return to “Bet Angel - Automation”