Hey crew relatively new here but really appreciate the time you put in here and special thanks to Dallas (I've learnt heaps from his posts).
I'm trying to automate this example and would love any help with this (horse racing - in-play):
ie. Initial bet on a horse at 2.0 (favourite) on the proviso another horse is sitting at odds 4.0 or above.
If any horse (mainly the second fave) in the race goes below say 3.0 (so starting to threaten my favourite horse for front position) I want to setup a stop loss / greening option to sell out of my initial bet(s) on the 2.0 favorite at the market price (doesn't matter if its a loss or profit).
And once the second horse has breached 3.0 and I've sold out of the first horse - basically closing off trading for that race afterwards.
My biggest thing I want to discover is how to set up a stop loss on the basis of the second fave horse odds shortening and triggering that stop loss to sell out your initial bet on the original front runner.
Hope that makes sense - thanks for any help in advance.
Dooze
Horse automation / stop loss if 2nd horse is catching up
Once you have your back bet rule made for the fav (unless backing the fav manually)
The only thing you need to add to achive what you want is a 'Green All' selections rule type using the following condition
Fixed odds condition
Last traded Price
Applied to Selection 'Betfair order of Favourtism 2'
Is 'Less'
Than 3.0
Basically that will green up no matter what once the 2nd best priced runner trades below 2.0
A few more example rules you might find useful which do similar things and might give you some further idea's are these
viewtopic.php?f=52&t=12026
viewtopic.php?f=52&t=11715
The only thing you need to add to achive what you want is a 'Green All' selections rule type using the following condition
Fixed odds condition
Last traded Price
Applied to Selection 'Betfair order of Favourtism 2'
Is 'Less'
Than 3.0
Basically that will green up no matter what once the 2nd best priced runner trades below 2.0
A few more example rules you might find useful which do similar things and might give you some further idea's are these
viewtopic.php?f=52&t=12026
viewtopic.php?f=52&t=11715
Awesome Dallas thanks mate.
So under the "General" parameters for "Selection (conditions only)" would that be under "ANY selection" or "in position 1 (sorted in order of favouritism)" - thinking position 1 as that was the original horse you bet on?
Under condition I did fixed odds and what you recommended below but wasn't sure under the "General" tab what to use.
And once this has triggered (ie. I've greened up) is there a way to make sure my initial back bets don't start re-betting again (ie. close off the race so no more bets can be placed anymore on that particular race)?
So under the "General" parameters for "Selection (conditions only)" would that be under "ANY selection" or "in position 1 (sorted in order of favouritism)" - thinking position 1 as that was the original horse you bet on?
Under condition I did fixed odds and what you recommended below but wasn't sure under the "General" tab what to use.
And once this has triggered (ie. I've greened up) is there a way to make sure my initial back bets don't start re-betting again (ie. close off the race so no more bets can be placed anymore on that particular race)?
When using the 'green all' rule type the 'applies to' on the general tab can be ignored or just set to ANY as long as you have it set to 2nd fav in conditions thats all you need.
If your only triggering the one back bet on the fav you wont need to stop it once its greened up but there is a number of ways of stopping it if your triggering multiple bets on the fav once greened.
The easiest would be on your back bets rule add the condtion
'Matched bets amount condtion'
the selections 'Total amount of lay bets'
is 'equal to'
the following fixed amount £0
which simpley means once you have greened up (lay bets will of been placed therefore no longer equalling £0 so no further backs will be placed).
If your only triggering the one back bet on the fav you wont need to stop it once its greened up but there is a number of ways of stopping it if your triggering multiple bets on the fav once greened.
The easiest would be on your back bets rule add the condtion
'Matched bets amount condtion'
the selections 'Total amount of lay bets'
is 'equal to'
the following fixed amount £0
which simpley means once you have greened up (lay bets will of been placed therefore no longer equalling £0 so no further backs will be placed).
Thanks Dallas.
If I also wanted to put a condition of betting on a horse only if the other horse was a certain number of odds away is that possible?
ie. if I wanted a condition to bet on a fave horse at 2.0 odds only if the 2nd fave horse was sitting on 4.0 odds or higher (ie. 2 full odds above the fave) how would I go about doing this?
I would mix that with the original rule that if the 2nd fave horse dropped below 3.0 odds stop loss for the fave horses bets I placed.
I was also thinking as I am using multiple bets if I should use a condition to use the stop loss only if the matched bets condition was higher than 1 (ie. only turn the stop loss on if bets matched is higher than 1) - is this a good way to go?
Thanks for all your knowledge and help I find it super valuable
If I also wanted to put a condition of betting on a horse only if the other horse was a certain number of odds away is that possible?
ie. if I wanted a condition to bet on a fave horse at 2.0 odds only if the 2nd fave horse was sitting on 4.0 odds or higher (ie. 2 full odds above the fave) how would I go about doing this?
I would mix that with the original rule that if the 2nd fave horse dropped below 3.0 odds stop loss for the fave horses bets I placed.
I was also thinking as I am using multiple bets if I should use a condition to use the stop loss only if the matched bets condition was higher than 1 (ie. only turn the stop loss on if bets matched is higher than 1) - is this a good way to go?
Thanks for all your knowledge and help I find it super valuable
The 2nd link i put in the ealier post shows how to set up a rule which requires there to be a number of odd difference between two runners so this will show whats needed to set it up.
For the number of matched bets it would depend on how many bets you wanted matching before a green up could trigger, if its any time after just one then there is no need to use it as while there nothing to green up then it wont trigger anyway, but if you wanted it to say be active after 5 bets and if the 2nd fav falls below 3.0 then you could use it with the value that the number of matched bets is greater than 4.
For the number of matched bets it would depend on how many bets you wanted matching before a green up could trigger, if its any time after just one then there is no need to use it as while there nothing to green up then it wont trigger anyway, but if you wanted it to say be active after 5 bets and if the 2nd fav falls below 3.0 then you could use it with the value that the number of matched bets is greater than 4.
If I wanted to green up for a profit over 200+ or take a loss for -200+ on a horse race how would I go about doing that? Basically just want to lock in a 200+ profit and or cap a loss of -$200 on the same race.
Would I do the following rules (separate rules)?
Rule 1:
Green All Selections
Green all profit condition
Greater than $200
Rule 2:
Green All Selections
Green all profit condition
Less than -$200
*** I'm not sure if in Rule 2 I should do less than, equal to or greater than for the negative value?
Am I somewhat in the right direction?
Would I do the following rules (separate rules)?
Rule 1:
Green All Selections
Green all profit condition
Greater than $200
Rule 2:
Green All Selections
Green all profit condition
Less than -$200
*** I'm not sure if in Rule 2 I should do less than, equal to or greater than for the negative value?
Am I somewhat in the right direction?