Vitality Blast 2019

T20, IPL, Test matches or the Ashes, discuss it here.
Post Reply
User avatar
megarain
Posts: 2049
Joined: Thu May 16, 2013 1:26 pm
Contact:

Happy to have a go at writing a baf file but not to sure what you mean by slices... Are you looking to set the opening lay at a game specific price or is fixed at 1.65? And is it a named selection of just the fav at that point?

What I think you are asking for is:

1. at 12 mins in
2. look to lay at 1.65 (if price higher - place bet, if price already lower - ?)
3. if lay bet is taken, set an offset at 25 ticks
3.1 if offset is taken go to 4
3.2 if offset not taken? (close trade for an x% loss?)
4. Place a back bet for profit made at current market price & place an offset at 25 ticks
4.1 if offset is taken repeat 3 for x number of times?
4.2 if offset not taken? (close trade for an x% loss?)
Top

Thx v much.

Its my idea to develop different price entries for different teams. It maybe, Notts at home, normally have an SP of 1.80. Laying 1.65 in the first 100 mins, and reversing the trade, tends to show a profit.

Somerset might have an SP of 1.90. Laying at 1.8 and reversing the trade (15 tick profit), might tend to show a profit.

The excel macro has been designed to split the in-play game time into slices. A T20 is normally 70 mins a side batting, 10-15 min interval and 70 mins of the side chasing the target.

To avoid errors from games being turned in-play wrongly, or mass volatility in last 10 mins of the game, I want to target the rest.

So, if the game time is 150 mins, lets start at 12 min in, up until 100 mins.

For the life of me, I cant understand how to write an automation script that lays at a fixed price and just sits in the system. Offsetting IMHO is
v badly worded. If u try and place a bet and its NOT MATCHED, then it reverses an initial trade that wasn't made. Maybe its me, but that seems v
counter productive.

e.g.


17/07/2019 12:13:26: [G_Auto] : £ 2.27 Lay bet placed on 1. Bushmans Pride at 3.2. Entirely unmatched when it initially reached the market. Ref: 10000 ( Offsetting by 5 ticks with greening. )
17/07/2019 12:13:26: [G_Auto] : £ 0.95 Lay bet placed on 1. Bushmans Pride at 3.1. Entirely unmatched when it initially reached the market. Ref: 10002 ( Offsetting by 5 ticks. )
17/07/2019 12:13:26: [G_Auto] : £ 2.11 Back bet placed on 1. Bushmans Pride at 3.45. Fully matched at 8. Ref: 10003
17/07/2019 12:13:26: [G_Auto] : £ 0.95 Back bet placed on 1. Bushmans Pride at 3.35. Fully matched at 8. Ref: 10005
17/07/2019 12:14:28: Guardian has detected that the market is suspended

Anyway, to clarify.

its game specific .. my macros will have said .. lay Notts at 1.65 etc, if SP was above 1.65.

So, just lay Notts.

If the price 12 mins in, is already below 1.65, then lay at that price. Say its 1.53 .. try to record we have laid 1.53, and reverse the trade
at 1.78 (1.53+25 ticks). If this isnt possible, then use 1.65 + 25 ticks.

If a reverse trade has been made, look again for lays at 1.65, for up to 3 complete independent loops.

If a loop is not ended, do nothing, but leave the reverse trade unmatched bet on the system. Its possible it might be matched in the last
portion of the game.

Hope thats clearer. Once we have a basic script, I will add in other criteria to avoid monumental stuff-ups.

Thx
sionascaig
Posts: 1072
Joined: Fri Nov 20, 2015 9:38 am

Can't test this on cricket atm so put another one together for horses. You can run this on horses (in test mode) to check behaviour and see if its close to what you are looking for..

So two baf files attached:

- Horse Lay Megarain
- Cricket Lay Megarain

Horse Lay Megarain:

- will fix order before the off
- place a lay bet on fav at 92% of SP (30 secs into race) and store SP, 92% of SP and Back Price when bet enters market (you can check this in the log)
- if back price < 92% of SP, it will take that price instead
- once bet is matched, it will place an offset back bet with greening 25 ticks away
- once back bet is matched, it will attempt to place another lay bet at 92% of SP etc
- it will place a maximum of 3 lay bets and should only place a new lay bet once back bet is matched

There are a few safety's included.... time since last suspension etc...

Strangely enough its has made a nice profit over the few races I've run it against...

Cricket Lay Megarain:

- largely the same but with timings along the lines you mentioned
- and an additional safety to check that market is properly formed when lay bet goes in

As mentioned haven't been able to run this so no idea if it all hangs together yet...
You do not have the required permissions to view the files attached to this post.
ThePieThrower
Posts: 69
Joined: Mon Jul 15, 2019 3:49 pm

Not sure if helpful again but just going through more T20 data and its interesting to see each team's choice when winning the Toss. Below shows their decision when winning the Toss at home.

TsHm.png
You do not have the required permissions to view the files attached to this post.
User avatar
megarain
Posts: 2049
Joined: Thu May 16, 2013 1:26 pm
Contact:

As there is no Sp for cricket, i have ammended the baf to take Sp as last traded price 5 secs before start time.

I also ammended the delay before a bet can be placed in-play.

Testing on some USA racing, it seems v promising.

I will run (in practice mode), on the Notts game tomorrow.

It seems to work .. v closely to what I envisage etc, so its a great start.

Thx
ckt lay mega based on SP before play v2.baf
mega ckt testing evang log in play.jpg
mega ckt testing pl.jpg
You do not have the required permissions to view the files attached to this post.
Last edited by megarain on Thu Jul 18, 2019 12:17 am, edited 2 times in total.
User avatar
megarain
Posts: 2049
Joined: Thu May 16, 2013 1:26 pm
Contact:

mega ckt testing matched bets.jpg
mega ckt testing evang log pre inplay.jpg
You do not have the required permissions to view the files attached to this post.
sionascaig
Posts: 1072
Joined: Fri Nov 20, 2015 9:38 am

megarain wrote:
Thu Jul 18, 2019 12:07 am
As there is no Sp for cricket, i have ammended the baf to take Sp as last traded price 5 secs before start time.

I also ammended the delay before a bet can be placed in-play.

ckt lay mega based on SP before play v2.baf
Good thinking batman (no pun intended)...

Had a quick look at your file and it only triggers a lay bet in the 1st 2 mins of the match - may want to extend this if you want to see multiple lay bets as per original idea?

I'll run the original (with %BSP as starting point using LTP approach) with same delay before a bet is placed and we can compare the results - will run on all cricket matches today...
User avatar
megarain
Posts: 2049
Joined: Thu May 16, 2013 1:26 pm
Contact:

Thx for checking etc.

I only had 15 mins to look last night etc, and today is also
horrendous.

Will try amend somewhere.
sionascaig
Posts: 1072
Joined: Fri Nov 20, 2015 9:38 am

Got caught out on the 1st match (ladies). Two lay bets placed instead of one as didn't take account on in play delay.

Amended lay bet to wait 30 secs before rearming...

18/07/2019 10:59:35: [G_Auto] : Store Value for Australia Women: FavSP = 1.93
18/07/2019 10:59:35: [G_Auto] : Store Value for Australia Women: FavSPAdj = 1.93 * 92% = 1.77
18/07/2019 11:00:04: Guardian has detected that the market is in-play
18/07/2019 11:00:04: Guardian has detected that the market is suspended
18/07/2019 11:00:05: Guardian has detected that the market is now unsuspended
18/07/2019 11:01:52: [G_Auto] : Store Value for Australia Women: LayEntry = 1.9
18/07/2019 11:01:57: [G_Auto] : £ 10.00 Lay bet placed on Australia Women at 1.77. Entirely unmatched when it initially reached the market. Ref: 10000 ( Fill or kill bet with 3600 seconds delay. Offsetting by 25 ticks with greening. )
18/07/2019 11:02:00: [G_Auto] : Modify bet persistence 10000 from 'Cancel' to 'Keep'
User avatar
megarain
Posts: 2049
Joined: Thu May 16, 2013 1:26 pm
Contact:

Thx.

Have made similar changes. Will post logs / P/L tonite.
ckt lay mega based on Sp before play v 3.baf
You do not have the required permissions to view the files attached to this post.
User avatar
megarain
Posts: 2049
Joined: Thu May 16, 2013 1:26 pm
Contact:

It appears no Indian TV sports channel has picked up the blast.

Expect liquidity per game, will be 2m-10m for Tv games, sub 1m for non-TV.
ThePieThrower
Posts: 69
Joined: Mon Jul 15, 2019 3:49 pm

Cheers for the heads up Megarain
sionascaig
Posts: 1072
Joined: Fri Nov 20, 2015 9:38 am

megarain wrote:
Thu Jul 18, 2019 12:27 pm
Thx.

Have made similar changes. Will post logs / P/L tonite.

ckt lay mega based on Sp before play v 3.baf
You will need to take out the condition "Back price = Lay Price - 1 tick" on the Lay Bet rule to get it to fire... I didn't realise the market can be so gapy...
ThePieThrower
Posts: 69
Joined: Mon Jul 15, 2019 3:49 pm

Good effort to get to 161, early wicket would really shake things up
User avatar
Archangel
Posts: 1987
Joined: Thu Jun 27, 2013 3:03 pm
Location: Polo Lounge, Beverly Hills Hotel

Christ these T20 markets can turn on a dime !
Emmson
Posts: 3376
Joined: Mon Feb 29, 2016 6:47 pm

Archangel wrote:
Thu Jul 18, 2019 8:52 pm
Christ these T20 markets can turn on a dime !
Yep this Notts Worcs ,market has been volatile.
You do not have the required permissions to view the files attached to this post.
Post Reply

Return to “Betfair Cricket trading”