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