Repeated Green-Ups

Advanced automation available in Guardian - Chat with others and share files here.
jaipal2004
Posts: 46
Joined: Sat Aug 05, 2017 11:33 am

Dallas wrote:
Thu Sep 21, 2017 2:21 pm
Your clearing ALL signals at post time (but also not noting it to the log so it looks like all signals are still set)
Right .... I am confused. When should I do it?

In my head, I am clearing the signals and then setting them - how else would it be done?

And....is that the reason my rule wasn't kicking in ? If so, why?

Sorry for the barrage of questions!!

thanks
User avatar
Dallas
Posts: 23496
Joined: Sun Aug 09, 2015 10:57 pm

Your automation file is setting them then clearing 1sec later before any other rules kick in,

Im not sure why you would be clearing them to begin with, but yes that's why your rule has not been kicking in as you have a condition looking for a signal that you have already cleared minutes earlier, so it no longer exists.

There is also other errors further along for example
Your Gup >=6 <=16 rule is set to trigger if 'greened' is less than 1 (ie, the Gup master has not triggered)

but as soon as this rule starts to trigger its then setting a signal named 'Greened2' with a value of 1

Then your following rule 'Gup >=6 <=16 stop' which is meant to trigger if the last rule was not matched can not because its looking for 'Greened2' to have a value less than 1

So basically your back up rule cant trigger because the rule its meant to cover is setting a signal that prevents it

I would suggest starting from scratch and doing it one part at a time testing as you go, otherwise you could be picking all those rules apart for ages
jaipal2004
Posts: 46
Joined: Sat Aug 05, 2017 11:33 am

Hi Dallas

Thanks for that great reply.

I confused myself on the signal setting and clearing timings so good spot there!!

I'm not fully certain on the other issue....

I have a green up master which triggers and then prevents any future rules from running. That is fine.

Then for each distance range, I have a condition that checks if the master greened signal (Greened) is run (1) or not. If it's not (ie. Greened=0) then this rule will trigger for any profit. Once it does, it'll then set Greened1 (or Greened2/3/4) to 1.

My stop rules should evaluate the Greened1/2/3/4 values and if they are =0 they run.

Each distance range has Greened1, Greened2, Greened3 or Greened4 setting in them.

At least that's how it is inmy head.

Do you still believe that's not how it's implemented?

Thanks for everything!!
User avatar
Dallas
Posts: 23496
Joined: Sun Aug 09, 2015 10:57 pm

jaipal2004 wrote:
Thu Sep 21, 2017 3:19 pm

My stop rules should evaluate the Greened1/2/3/4 values and if they are =0 they run.
Thats one of the problems i've found, if the previous rule has triggered (because you were in profit) but has not been matched this one cant then trigger because a signal has stopped it, rather than use signals you would be better off using something like an amount matched condition to determine if this 'stop' part should trigger
jaipal2004
Posts: 46
Joined: Sat Aug 05, 2017 11:33 am

Dallas wrote:
Thu Sep 21, 2017 3:44 pm
jaipal2004 wrote:
Thu Sep 21, 2017 3:19 pm

My stop rules should evaluate the Greened1/2/3/4 values and if they are =0 they run.
Thats one of the problems i've found, if the previous rule has triggered (because you were in profit) but has not been matched this one cant then trigger because a signal has stopped it, rather than use signals you would be better off using something like an amount matched condition to determine if this 'stop' part should trigger
I've removed the signal conditions aside from for the profit rules and added an 'unmatched bets > 0' on all the stops as a condition - I presume that would resolve this?

Couldn't see how I would make the matched bets amount condition work?

thanks!
User avatar
Dallas
Posts: 23496
Joined: Sun Aug 09, 2015 10:57 pm

Will only allow your stop rule to trigger if £0 back bets have been matched (ie, your offset or green up has not yet been matched)
Capture.JPG
You do not have the required permissions to view the files attached to this post.
jaipal2004
Posts: 46
Joined: Sat Aug 05, 2017 11:33 am

Things are driving me round the bend!!

Here's the screenshot for a race (the profit rules set a signal and check if the master greenup has run but the stop rules now work on the above suggestion of matched bet amounts condition.

Now I'm not getting either working:
21-1.png
21-2.png

21/09/2017 16:39:54: [G_Auto] : £ 2.00 Lay bet placed on Fengate at 5.1. Fully matched at 5.1. Ref: 103218082345 ( Offsetting by 30 ticks with greening. )
21/09/2017 16:39:54: [G_Auto] : £ 0.97 Back bet placed on Fengate at 10.5. Entirely unmatched when it initially reached the market. Ref: 103218082884
21/09/2017 16:39:58: [G_Auto] : Automation Signal for market: Greened = 0
21/09/2017 16:39:58: [G_Auto] : Automation Signal for market: Greened1 = 0
21/09/2017 16:39:58: [G_Auto] : Automation Signal for market: Greened2 = 0
21/09/2017 16:39:58: [G_Auto] : Automation Signal for market: Greened3 = 0
21/09/2017 16:39:58: [G_Auto] : Automation Signal for market: Greened4 = 0
21/09/2017 16:39:58: [G_Auto] : Automation Signal for market: Greened5 = 0
21/09/2017 16:42:28: Guardian has detected that the market is suspended
21/09/2017 16:42:29: Guardian has detected that the market is in-play
21/09/2017 16:42:29: Guardian has detected that the market is now unsuspended
21/09/2017 16:42:49: [G_Auto] : Automation Signal for market: Greened5 = 1
21/09/2017 16:42:52: [G_Auto] : Automation Signal for market: Greened5 = 1
21/09/2017 16:42:55: [G_Auto] : Automation Signal for market: Greened5 = 1
21/09/2017 16:42:58: [G_Auto] : Automation Signal for market: Greened5 = 1
21/09/2017 16:43:01: [G_Auto] : Automation Signal for market: Greened5 = 1
21/09/2017 16:43:04: [G_Auto] : Automation Signal for market: Greened5 = 1
21/09/2017 16:43:07: [G_Auto] : Automation Signal for market: Greened5 = 1
21/09/2017 16:43:10: [G_Auto] : Automation Signal for market: Greened5 = 1
21/09/2017 16:45:02: Guardian has detected that the market is suspended


Why has it not attempted to green when it could've on the profit rule and then on the secondary one - after all, they've both fired

Sorry Dallas - I am sure you must be getting annoyed with me by now!
You do not have the required permissions to view the files attached to this post.
jaipal2004
Posts: 46
Joined: Sat Aug 05, 2017 11:33 am

Also noticing that the 'unmatched bets' tab doesn't show the back bet that's been placed (neither has it moved to matched) whilst market is still in play. If the rules are triggering - where is the evidence tha tthe bet has been sent to Betfair?!

I'm sure they should be here until cancelled and the log doesn't say anything to this regard

Bot attached here also again (updated one)
You do not have the required permissions to view the files attached to this post.
jaipal2004
Posts: 46
Joined: Sat Aug 05, 2017 11:33 am

Changed the rule type from 'close trade on selection with greening' to 'green all selections' not sure if that will help beause I have a 'green all' profit condition - could that cause issues?

Now suddenly seems to have sprung into life with backbets showing in the log - would like to know if that's coincidence or if there's something wrong with my bot? (attached above before this change)

thanks
User avatar
Dallas
Posts: 23496
Joined: Sun Aug 09, 2015 10:57 pm

It wouldn't make any difference so is likely just coincidence, even if you have greened up but the conditions of another green up rule are met it will still trigger and even set signals - it just wont place any bets.
jaipal2004
Posts: 46
Joined: Sat Aug 05, 2017 11:33 am

Thanks Dallas - I think I'm nearly there.

The log still looks like a lot is going on :

21/09/2017 20:14:54: [G_Auto] : £ 2.00 Lay bet placed on Chetan at 4.7. Fully matched at 4.7. Ref: 103241669339 ( Offsetting by 30 ticks with greening. )
21/09/2017 20:14:54: [G_Auto] : £ 1.00 Back bet placed on Chetan at 9.4. Entirely unmatched when it initially reached the market. Ref: 103241670564
21/09/2017 20:14:56: [G_Auto] : Modify bet persistence 103241670564 from 'Cancel' to 'Keep'

21/09/2017 20:14:58: [G_Auto] : Automation Signal for market: Greened = 0
21/09/2017 20:14:58: [G_Auto] : Automation Signal for market: Greened1 = 0
21/09/2017 20:14:58: [G_Auto] : Automation Signal for market: Greened2 = 0
21/09/2017 20:14:58: [G_Auto] : Automation Signal for market: Greened3 = 0
21/09/2017 20:14:58: [G_Auto] : Automation Signal for market: Greened4 = 0
21/09/2017 20:14:58: [G_Auto] : Automation Signal for market: Greened5 = 0
21/09/2017 20:18:01: Guardian has detected that the market is suspended
21/09/2017 20:18:01: Guardian has detected that the market is in-play
21/09/2017 20:18:01: Guardian has detected that the market is now unsuspended
21/09/2017 20:18:21: [G_Auto] : Automation Signal for market: Greened2 = 1
21/09/2017 20:18:21: [G_Auto] : Cancelling bets 103241670564
21/09/2017 20:18:24: [G_Auto] : Automation Signal for market: Greened2 = 1
21/09/2017 20:18:24: [G_Auto] : Greened up Chetan by Backing 1.88 at 5
21/09/2017 20:18:26: [G_Auto] : Greened up Chetan by Backing 1.84 at 5.1
21/09/2017 20:18:27: [G_Auto] : Automation Signal for market: Greened2 = 1
21/09/2017 20:18:27: [G_Auto] : Cancelling bets 103242074180
21/09/2017 20:18:30: [G_Auto] : Automation Signal for market: Greened2 = 1
21/09/2017 20:18:33: [G_Auto] : Automation Signal for market: Greened2 = 1
21/09/2017 20:18:36: [G_Auto] : Automation Signal for market: Greened2 = 1
21/09/2017 20:18:39: [G_Auto] : Automation Signal for market: Greened2 = 1
21/09/2017 20:18:42: [G_Auto] : Automation Signal for market: Greened2 = 1
21/09/2017 20:18:45: [G_Auto] : Automation Signal for market: Greened2 = 1
21/09/2017 20:18:48: [G_Auto] : Automation Signal for market: Greened2 = 1
21/09/2017 20:19:41: Guardian has detected that the market is suspended


And another market:

21/09/2017 20:27:46: Guardian has detected that the market is suspended
21/09/2017 20:27:47: Guardian has detected that the market is now unsuspended
21/09/2017 20:44:54: [G_Auto] : £ 2.00 Lay bet placed on Arcadian Sea at 3.7. Fully matched at 3.7. Ref: 103244511470 ( Offsetting by 30 ticks with greening. )
21/09/2017 20:44:54: [G_Auto] : £ 1.09 Back bet placed on Arcadian Sea at 6.8. Entirely unmatched when it initially reached the market. Ref: 103244512334
21/09/2017 20:44:56: [G_Auto] : Modify bet persistence 103244512334 from 'Cancel' to 'Keep'

21/09/2017 20:44:58: [G_Auto] : Automation Signal for market: Greened = 0
21/09/2017 20:44:58: [G_Auto] : Automation Signal for market: Greened1 = 0
21/09/2017 20:44:58: [G_Auto] : Automation Signal for market: Greened2 = 0
21/09/2017 20:44:58: [G_Auto] : Automation Signal for market: Greened3 = 0
21/09/2017 20:44:58: [G_Auto] : Automation Signal for market: Greened4 = 0
21/09/2017 20:44:58: [G_Auto] : Automation Signal for market: Greened5 = 0
21/09/2017 20:48:07: Guardian has detected that the market is suspended
21/09/2017 20:48:08: Guardian has detected that the market is in-play
21/09/2017 20:48:08: Guardian has detected that the market is now unsuspended
21/09/2017 20:48:38: [G_Auto] : Automation Signal for market: Greened5 = 1
21/09/2017 20:48:38: [G_Auto] : Cancelling bets 103244512334
21/09/2017 20:48:40: [G_Auto] : Greened up Arcadian Sea by Backing 1.61 at 4.6
21/09/2017 20:48:41: [G_Auto] : Automation Signal for market: Greened5 = 1
21/09/2017 20:48:41: [G_Auto] : Cancelling bets 103244758032
21/09/2017 20:48:43: [G_Auto] : Greened up Arcadian Sea by Backing 1.68 at 4.4
21/09/2017 20:48:44: [G_Auto] : Automation Signal for market: Greened5 = 1
21/09/2017 20:48:44: [G_Auto] : Cancelling bets 103244761129
21/09/2017 20:48:46: [G_Auto] : Greened up Arcadian Sea by Backing 1.92 at 3.85
21/09/2017 20:48:47: [G_Auto] : Automation Signal for market: Greened5 = 1
21/09/2017 20:48:50: [G_Auto] : Automation Signal for market: Greened5 = 1
21/09/2017 20:48:53: [G_Auto] : Automation Signal for market: Greened5 = 1
21/09/2017 20:48:56: [G_Auto] : Automation Signal for market: Greened5 = 1
21/09/2017 20:48:59: [G_Auto] : Automation Signal for market: Greened5 = 1
21/09/2017 20:49:02: [G_Auto] : Automation Signal for market: Greened5 = 1
21/09/2017 20:50:16: Guardian has detected that the market is suspended

I assume the multiple greening bets that are firing are because the last attempts haven't matched?

Just wondering the merits of having greening rules that trigger up to 10 times with a 3 second re-arm - is there any point??

Thanks for all your help - it's been a struggle to get to where I am but have learn a load thanks to your advice.

Look forward to getting these last few questions answered :)

ta
Post Reply

Return to “Bet Angel - Automation”