Repeated Green-Ups

Advanced automation available in Guardian - Chat with others and share files here.
User avatar
Dallas
Posts: 22722
Joined: Sun Aug 09, 2015 10:57 pm
Location: Working From Home

Which rule is setting the signal 'Greened2'?
and when?
jaipal2004
Posts: 46
Joined: Sat Aug 05, 2017 11:33 am

Thanks for the response Dallas.

I have a 'master' green up rule (labelled 'Greened up (Master') that simply greens up if profit is >£2. This then sets a signal called 'Greened' with 1. All other subsequent greening rules that are not labelled 'stop' only run if:

Greened < 1

Each rule (based on race length) then has a >£0 profit condition shown here:
rule1-1.png
rule1-2.png
And a 'stop version' of the same which doesn't have the >£0 profit condition - set to kick in 3 seconds after the previous one based on your previous responses:
rule2-1.png
The order is therefore:

1.Master greenup rule (if >£2) which sets 'Greened=1'
2.Race length greening (if >£0) which sets Greened1 / Greened2 / Greened3 = 1) as long as above is not set
3.Race length greening (without profit condition) which runs if Greened1 / Greened2 / Greened3 <0 to green out for any losses

Hope this makes sense - I've tried to be as logical as possible given my engineering backgroun! :)

Look forward to hearing back!

thanks
You do not have the required permissions to view the files attached to this post.
User avatar
Dallas
Posts: 22722
Joined: Sun Aug 09, 2015 10:57 pm
Location: Working From Home

The rule in your last image will only trigger if a signal named 'Greened2' is <1

There has to of been a signal named 'Greened2' set somewhere for the above to be able to trigger (if there has been no signal named 'Greened2' set by anything then it cant fire)

ie; the automation wont know its <1 if there is no signal set in the first place
jaipal2004
Posts: 46
Joined: Sat Aug 05, 2017 11:33 am

Dallas wrote:
Tue Sep 19, 2017 10:29 pm
The rule in your last image will only trigger if a signal named 'Greened2' is <1

There has to of been a signal named 'Greened2' set somewhere for the above to be able to trigger (if there has been no signal named 'Greened2' set by anything then it cant fire)

ie; the automation wont know its <1 if there is no signal set in the first place
Ok - think I got you but if you can please confirm .....

So ideally I should have a rule that sets the values of Greened / Greened1/ Greened2 and Greened3 to 0 prior to race start?

That would then mean that if the first rule (>£0) is met it then gets set to '1', thereby no need to kick off stop rule else stop rule will run as the signal (or variable) has been set with a value

Is that right?

thanks
User avatar
Dallas
Posts: 22722
Joined: Sun Aug 09, 2015 10:57 pm
Location: Working From Home

jaipal2004 wrote:
Tue Sep 19, 2017 10:39 pm
Dallas wrote:
Tue Sep 19, 2017 10:29 pm
The rule in your last image will only trigger if a signal named 'Greened2' is <1

There has to of been a signal named 'Greened2' set somewhere for the above to be able to trigger (if there has been no signal named 'Greened2' set by anything then it cant fire)

ie; the automation wont know its <1 if there is no signal set in the first place
Ok - think I got you but if you can please confirm .....

So ideally I should have a rule that sets the values of Greened / Greened1/ Greened2 and Greened3 to 0 prior to race start?

That would then mean that if the first rule (>£0) is met it then gets set to '1', thereby no need to kick off stop rule else stop rule will run as the signal (or variable) has been set with a value

Is that right?

thanks
Yes basically a signal name must exist somewhere for a condition to test its value

I understand what your wanting to do ie, setting signals in a daisy chain to create a path, if it was me I would maybe look at trying to use the 'increment signal value' instead, that way a rule can pick up were a previous rule has left off
So start with your master signal and increment signal value on the market, then have your next rule/s look for that value and do whatever including incrementing it again for the next rule to look for
(without knowing your full set up though i cant say for sure if that would be easier so maybe copy your whole automation first and try this on the 2nd)
jaipal2004
Posts: 46
Joined: Sat Aug 05, 2017 11:33 am

Dallas wrote:
Tue Sep 19, 2017 10:57 pm
jaipal2004 wrote:
Tue Sep 19, 2017 10:39 pm
Dallas wrote:
Tue Sep 19, 2017 10:29 pm
The rule in your last image will only trigger if a signal named 'Greened2' is <1

There has to of been a signal named 'Greened2' set somewhere for the above to be able to trigger (if there has been no signal named 'Greened2' set by anything then it cant fire)

ie; the automation wont know its <1 if there is no signal set in the first place
Ok - think I got you but if you can please confirm .....

So ideally I should have a rule that sets the values of Greened / Greened1/ Greened2 and Greened3 to 0 prior to race start?

That would then mean that if the first rule (>£0) is met it then gets set to '1', thereby no need to kick off stop rule else stop rule will run as the signal (or variable) has been set with a value

Is that right?

thanks
Yes basically a signal name must exist somewhere for a condition to test its value

I understand what your wanting to do ie, setting signals in a daisy chain to create a path, if it was me I would maybe look at trying to use the 'increment signal value' instead, that way a rule can pick up were a previous rule has left off
So start with your master signal and increment signal value on the market, then have your next rule/s look for that value and do whatever including incrementing it again for the next rule to look for
(without knowing your full set up though i cant say for sure if that would be easier so maybe copy your whole automation first and try this on the 2nd)
thanks so much for that..... you're an absolute legend :)

Take on board your hint above .... you're right, I do want to create a path that's easy to follow but I could use the incrementing function and therefore creating a cleaner ruleset. I'll try and see how I fare.

The bot itself is simple - lay a runner with offset, trying to green up for £2+ asap else taking whatever I can (£0+) before then greening losses. The race length governs when the >£0 and <£0 rules kick in.

They do say the simple strategies are the best :)
jaipal2004
Posts: 46
Joined: Sat Aug 05, 2017 11:33 am

Arrgghh... I've screwed up something I think then....

I did the following new rules to set the signals to 0 but even then, the green up rule didn't fire (<£0):

20/09/2017 14:09:58: [G_Auto] : Automation Signal for market: Greened = 0
20/09/2017 14:09:58: [G_Auto] : Automation Signal for market: Greened1 = 0
20/09/2017 14:09:58: [G_Auto] : Automation Signal for market: Greened2 = 0
20/09/2017 14:09:58: [G_Auto] : Automation Signal for market: Greened3 = 0
20/09/2017 14:09:58: [G_Auto] : Automation Signal for market: Greened4 = 0
20/09/2017 14:13:12: Guardian has detected that the market is suspended
20/09/2017 14:13:12: Guardian has detected that the market is in-play
20/09/2017 14:13:12: Guardian has detected that the market is now unsuspended
20/09/2017 14:13:13: [G_Auto] : £ 2.00 Lay bet placed on Imperial Past at 3.95. Entirely unmatched when it initially reached the market. Ref: 103107943727 ( Offsetting by 30 ticks with greening. )
20/09/2017 14:13:16: [G_Auto] : £ 1.01 Back bet placed on Imperial Past at 7.8. Entirely unmatched when it initially reached the market. Ref: 103107949512
20/09/2017 14:14:44: Guardian has detected that the market is suspended

20-1.png
Based on my conditions - the 'GUp - >=6 <=16 Stop' rule should've kicked in at 01:06 because Green2 < 1 as per:
20-2.png
So what is my error?

thanks
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

Another market with same result:

Yarm 15:50 (1m2f)

20/09/2017 15:49:58: [G_Auto] : Automation Signal for market: Greened = 0
20/09/2017 15:49:58: [G_Auto] : Automation Signal for market: Greened1 = 0
20/09/2017 15:49:58: [G_Auto] : Automation Signal for market: Greened2 = 0
20/09/2017 15:49:58: [G_Auto] : Automation Signal for market: Greened3 = 0
20/09/2017 15:49:58: [G_Auto] : Automation Signal for market: Greened4 = 0
20/09/2017 15:51:18: Guardian has detected that the market is suspended
20/09/2017 15:51:19: Guardian has detected that the market is in-play
20/09/2017 15:51:19: Guardian has detected that the market is now unsuspended
20/09/2017 15:51:20: [G_Auto] : £ 2.00 Lay bet placed on Beautiful Morning at 3.6. Fully matched at 3.5. Ref: 103121020418 ( Offsetting by 30 ticks with greening. )
20/09/2017 15:51:23: [G_Auto] : £ 1.17 Back bet placed on Beautiful Morning at 6. Entirely unmatched when it initially reached the market. Ref: 103121025251
20/09/2017 15:53:29: Guardian has detected that the market is suspended
User avatar
Dallas
Posts: 22722
Joined: Sun Aug 09, 2015 10:57 pm
Location: Working From Home

If its just one of them thats not working then that must mean there is a typo somewhere within it
jaipal2004
Posts: 46
Joined: Sat Aug 05, 2017 11:33 am

Hi Dallas,

any chance I can attach it to a PM over to you? I've looked and there's definitely nothing obvious.

I did amend the rule and somehow caused lay bets to be placed twice over but have since removed the other betting rules so there's only one now. My last race (18:30) failed to green up accoding to the logs with no mention but seems to have anyway ?! Confusing to say the least

Cheers
User avatar
Dallas
Posts: 22722
Joined: Sun Aug 09, 2015 10:57 pm
Location: Working From Home

Its not possible to send attachments via PM it would have to be attached to a post here
jaipal2004
Posts: 46
Joined: Sat Aug 05, 2017 11:33 am

It's happened again and it always seems to be in races affected by the >=6f to <=16f ..... is this some kind of anomaly with race length / range I've used?
jaipal2004
Posts: 46
Joined: Sat Aug 05, 2017 11:33 am

Here you go @Dallas ... thanks

Slightly amended but still exhibiting same issues

Bot removed from post

thanks
Last edited by jaipal2004 on Thu Sep 21, 2017 2:30 pm, edited 1 time in total.
jaipal2004
Posts: 46
Joined: Sat Aug 05, 2017 11:33 am

Hi Dallas,

did you spot any errors in the rules? Keep going over what else it could be and nothing sticks out.

Could be one of those times in education where you start copying bits of text to a fresh word document and start again !! Hopefully it won't come to that once you've ran your expert eye over it.

Fingers crossed :)
User avatar
Dallas
Posts: 22722
Joined: Sun Aug 09, 2015 10:57 pm
Location: Working From Home

Your clearing ALL signals at post time (but also not noting it to the log so it looks like all signals are still set)
Post Reply

Return to “Bet Angel - Automation”