Fill or Kill - Stop Loss

Advanced automation available in Guardian - Chat with others and share files here.
Post Reply
iDooze
Posts: 53
Joined: Wed Dec 07, 2016 1:27 pm

Hi Dallas & crew,

This is RE: Horse Racing.


Fill or Kill with Stop Loss:
Is there a way to setup a stop loss with "Green All Selections" with a fill or kill value in a bot?

ie. You place a lay bet on Horse 2 at 6.7. You want to green up (or red up in this instance) when profit is less that -$20. If your stop loss places a closing Green All Selections trade (so it fires a back bet into the market closing your position) it may go unmatched for a period of time. Is there a way to have a fill or kill value on this stop loss so it can fire multiple times killing each stop loss along the way? So what I essentially want is for it to trigger many times and have a short fill or kill so I can catch the falling market should the horse shorten further.

Stop on opening bet with Stop Loss: In addition to this with "Green All Selection" is there a way to take the best market price if it moves away from you (ie. Stop on opening bet for Green All Selections)? I currently have it set to best market price in the bot however if it has moved away from me - I essentially just want to take the new price on the market.

Disclosure: I'm using an in-play strategy. Yes, I know the majority on here steer away from in-play and especially in-play stop losses but I have found good success with this so far. I'm only laying / greening up for one horse per race.

Thanks guys and thanks to Dallas for all your help so far.
User avatar
Dallas
Posts: 23492
Joined: Sun Aug 09, 2015 10:57 pm

Fill or Kill with Stop Loss: Is there a way to setup a stop loss with "Green All Selections" with a fill or kill value in a bot?

Yes its possible to set a value to green up at while still using fill/kill with your opening bet, this can also be set to trigger several times and target either your total green or a selection individually. Some details in this thread
https://www.betangel.com/forum/viewtopi ... 43&t=11407

Or you could do using a delay which will prevent it being triggered through a sudden spike or short term move
https://www.betangel.com/forum/viewtopi ... 43&t=11954

With a stop loss once its placed thats it, it cant be re-triggered if unmatched.

Stop on opening bet with Stop Loss: In addition to this with "Green All Selection" is there a way to take the best market price if it moves away from you (ie. Stop on opening bet for Green All Selections)? I currently have it set to best market price in the bot however if it has moved away from me - I essentially just want to take the new price on the market.


The stop on opening bet can only be used with regular back/lay bets, when using "Green All Selection" the parameters tab is not in use
iDooze
Posts: 53
Joined: Wed Dec 07, 2016 1:27 pm

With a stop loss once its placed thats it, it cant be re-triggered if unmatched.

Thanks Dallas. I'm currently using a Green All Selections with Green Up Conditions at -20. Say if it fired a Green Up (or Red up for the Hedge) bet that wasn't matched on the market - if I wanted to retrigger the Green All Selections (after a certain number of seconds) and cancel the old Hedge up is this possible? I know that I can retrigger the Green All Selections how ever many times but, if I retrigger too soon - I may have two bets to Hedge up thus putting me into an even worser position. I'm curious to see if I can cancel a Green Up Hedge bet before firing a new Green Up into the market.

My main thought is if I have layed a horse and it shortens really fast - a Green All Selections Hedge (Red Up) bet may get missed. So I want to essentially cancel that bet and retrigger Green All Selections. Instead of getting -$21 loss I may end up with a -$30 loss. Is this possible?

Hope this makes sense?
User avatar
Dallas
Posts: 23492
Joined: Sun Aug 09, 2015 10:57 pm

iDooze wrote:With a stop loss once its placed thats it, it cant be re-triggered if unmatched.

Thanks Dallas. I'm currently using a Green All Selections with Green Up Conditions at -20. Say if it fired a Green Up (or Red up for the Hedge) bet that wasn't matched on the market - if I wanted to retrigger the Green All Selections (after a certain number of seconds) and cancel the old Hedge up is this possible? I know that I can retrigger the Green All Selections how ever many times but, if I retrigger too soon - I may have two bets to Hedge up thus putting me into an even worser position. I'm curious to see if I can cancel a Green Up Hedge bet before firing a new Green Up into the market.

My main thought is if I have layed a horse and it shortens really fast - a Green All Selections Hedge (Red Up) bet may get missed. So I want to essentially cancel that bet and retrigger Green All Selections. Instead of getting -$21 loss I may end up with a -$30 loss. Is this possible?

Hope this makes sense?
Each time your green all rule triggers it cancels any current unmatched bets in the market, all you need to be aware of when triggering green ups in-play is how long the in-play delay is and making sure your re-arm time is at least 1-2 seconds longer as bets that have not yet reached the market and are still in the delay cycle cant be cancelled.

With horse racing I usually set my green ups to trigger at least 3 times (once all evenly greened up it will stop even if there is still triggers remaining) with a minimum of 2 secs re-arm time (to allow for the 1 sec in-play bet delay).
iDooze
Posts: 53
Joined: Wed Dec 07, 2016 1:27 pm

With horse racing I usually set my green ups to trigger at least 3 times (once all evenly greened up it will stop even if there is still triggers remaining) with a minimum of 2 secs re-arm time (to allow for the 1 sec in-play bet delay).

Thanks Dallas. I've been testing stop losses and I found that my stop loss (Green / Red Up) has been doubling up. I have the Green All Selections to trigger 5 times with 3 seconds rearming. I've found on a few occasions that it triggers twice within a short period of time and doesn't cancel the first bet. Is this because of the rearm of 3 seconds? - I have changed this to 5 seconds but have experienced the same issue. Is this happening because the orders are being filled before the new Green Up bet comes on the market and thus I get both filled and the first bet doesn't get cancelled? Any suggestions how to fix this?

ie. This example happened before:
Place a lay bet at 7.6 for $8.33.

Green Up:

Place a back bet at 1.85 for $31.52
Place a back bet at 1.84 for $31.69

The first back bet (or Red Up) should have gotten me out of the market with a smaller loss rather than placing another bet and being matched.
User avatar
Dallas
Posts: 23492
Joined: Sun Aug 09, 2015 10:57 pm

The 3 secs your using should be more than enough time.
When a green up is triggered any unmatched bets should be cancelled at the moment it triggers, it will then take a full second for the newly triggered bet to arrive in the market so should be no chance of a double match.
There might be the very very rare time that as the 2nd triggers the first is matched at that milli second but you would be very unlucky to have that happen.

What refresh times are you using and is the market on the main trading screen or being managed by guardian?
iDooze
Posts: 53
Joined: Wed Dec 07, 2016 1:27 pm

My Settings - see attached. Please let me know if anything is wrong with this.

The market is being managed by guardian (I think) as I have the automation bot running all of this.
You do not have the required permissions to view the files attached to this post.
User avatar
Dallas
Posts: 23492
Joined: Sun Aug 09, 2015 10:57 pm

Its the refresh settings in guardian that would matter, with streaming enabled the refresh should be set to 20ms (click on the 'markets' tab at the top of your guardian window to check).

Also if you have your markets switching to and being displayed on your desktop (ladder or one-click screen) you should have your desktop rate set to 200ms or quicker
iDooze
Posts: 53
Joined: Wed Dec 07, 2016 1:27 pm

I have my Guardian currently to 20ms (see attached).

I do have the markets auto-switching 15 secs out from the off. I have the one-click screen up when it auto-switches. How do I go about changing the desktop rate to 200 ms or quicker? Is that the "Background market prices" under communications in settings?

Appreciate the help mate, you are a lifesaver.
You do not have the required permissions to view the files attached to this post.
User avatar
Dallas
Posts: 23492
Joined: Sun Aug 09, 2015 10:57 pm

The desktop refresh rate is near the left side of the main banner, while markets are running in guardian they are refreshed using the refrseh rate set on its main banner.
Once a market switches to your desktop that market is refreshed using your desktop rate.
Have a read of this thread as it explains how guardian refrsehes markets and the effects this has on automation
https://www.betangel.com/forum/viewtopi ... 37&t=11491

It was written prior to streaming being introduced when the fastest refresh rate was 200ms but the principal is still the same just with faster refreshing avaliable now
iDooze
Posts: 53
Joined: Wed Dec 07, 2016 1:27 pm

Dallas I think you were right. I had the desktop refresh rate to 500ms - would this have been affecting my bets / greening up efforts? I have now changed to 20ms and its seems to be going well.
Post Reply

Return to “Bet Angel - Automation”