Firing rule two after rule one (If stop loss has occurred)

Advanced automation available in Guardian - Chat with others and share files here.
Post Reply
deansaccount
Posts: 120
Joined: Mon May 30, 2016 5:19 pm

Hi guys,

Lets say for example my first rule fires when a horse trades under 2.0 with a stop loss of 30 ticks. How can I make sure my second rule only fires if the back and lay were both successful for the first rule? i.e I backed a horse, the price started drifting and the stop loss was applied, I now want the second rule to fire

Many Thanks.
User avatar
Dallas
Posts: 23492
Joined: Sun Aug 09, 2015 10:57 pm

You would look for some characteristics left from the first rule and add them to the 2nd rule as condtions.
So in this case the best way would be adding;
'Number of Matched Bets Condtion' is equal to 2
deansaccount
Posts: 120
Joined: Mon May 30, 2016 5:19 pm

Yup great idea. I have the global rule 'offset bet with greening and stop' but oddly the back bet (around 1.5) did not get taken but the lay at 1.01 did, so I made a loss even though the rule worked correctly? This has happened twice in a row?
User avatar
Dallas
Posts: 23492
Joined: Sun Aug 09, 2015 10:57 pm

If you tick the 'Fill or kill' box within the global rule this will stop the offset triggering until after the first part is matched.
deansaccount
Posts: 120
Joined: Mon May 30, 2016 5:19 pm

Do I need to add a delay time if selecting fill or kill?

I guess I cant use the green up option, as the race will basically be over. So should I just use 'Offset bet and stop'?

Thanks for the help so far.
User avatar
Dallas
Posts: 23492
Joined: Sun Aug 09, 2015 10:57 pm

It depends exactly what your wanting to do, if your just submitting the one bet but only want the offset placed when the first part is matched enter a larger number of seconds ie 600 so it stays in the market till end of the race.

If your using 'Global Settings' you could use offset with greening rather than just offsetting and using a seperate rule to green up.

Then with the fill and kill ticked only once your back bet is matched the offset with greening will be placed
deansaccount
Posts: 120
Joined: Mon May 30, 2016 5:19 pm

Ok, so what i am now trying to achieve is the following....

The first time a horse trades under 1.6 do nothing except set a flag.

The second time a horse trades under 1.6 then back it for 2 pounds with a stop loss of around 40 ticks. If the stop loss is fired then fire a third rule (i.e there are 2 matched bets in the market) for 4 pounds (taking in to account the loss from the horse above).

Does that seem possible? I 'think' i'm nearly there. My current problem is.... with the first time a horse goes under 1.6 I don't know how to then track that it's gone back past 2.0 to set the flag? I don't want to back or lay it first time.?
User avatar
Dallas
Posts: 23492
Joined: Sun Aug 09, 2015 10:57 pm

Yes it completly possible, i ammended the back the emerging challenger bot from the library so it should now do what you want, try in practice mode until your sure its set up as you require.

ANy problems let me know and ill tell you what to change
deansaccount
Posts: 120
Joined: Mon May 30, 2016 5:19 pm

Seems great Dallas. I will test it out and get back to you.

Many Thanks.
deansaccount
Posts: 120
Joined: Mon May 30, 2016 5:19 pm

Dallas do you have any idea why in this example the trigger only fired once and we made a loss?....

7/5/2016 19:55:12: Market changed to Uttox 5th Jul - 19:50 2m7f Hcap Hrd
7/5/2016 19:55:23: [G_Auto] : Automation Signal for market: armed = 66
7/5/2016 19:55:23: [G_Auto] : Automation Signal for Magic Money: ignore = 99
7/5/2016 19:55:46: [G_Auto] : £ 2.00 Back bet placed on Ereyna at 1.52. Fully matched at 1.53. Ref: 10199 ( Fill or kill bet with 60 seconds delay. Offsetting by 70 ticks with greening. Stop at 40 ticks. Place stop at 50 ticks. )
7/5/2016 19:55:47: [G_Auto] : £ 3.03 Lay bet placed on Ereyna at 1.01. Entirely unmatched when it initially reached the market. Ref: 10200
7/5/2016 19:55:52: Stop triggered. Modify bet 10200 from 3.03 @ 1.01 to 3.03 @ 2.06 New Ref: 10201
7/5/2016 19:56:05: Market has been suspended
User avatar
Dallas
Posts: 23492
Joined: Sun Aug 09, 2015 10:57 pm

After Ereyna was backed it has drifted out to 2.06 and triggered the stop but then must of gone back on to win if a 2nd runner was not backed
deansaccount
Posts: 120
Joined: Mon May 30, 2016 5:19 pm

That would make perfect sense then. Is there any way to account for this in the automation?
User avatar
Dallas
Posts: 23492
Joined: Sun Aug 09, 2015 10:57 pm

You would need to increase the number of stop loss ticks used or remove it altogether, generally its not advised to use them in-running as they can often be triggered prematurely just has its done this time happened.

It now becomes a case of trial and error to find what works best long term ;)
deansaccount
Posts: 120
Joined: Mon May 30, 2016 5:19 pm

I shall give it some trial and error and see what happens. Could be worth letting the trigger fire on the first horse below 1.6 too :D
deansaccount
Posts: 120
Joined: Mon May 30, 2016 5:19 pm

Hi Dallas,

I have modified the file slightly, any idea why the 3rd back bet (6 pound) does not fire? There have been 2 races where it should have but has not. Also does that 'green all' look correct? Just testing a few alterations out :D
You do not have the required permissions to view the files attached to this post.
Post Reply

Return to “Bet Angel - Automation”