Storing price of my last bet

We were all new to Bet Angel once. Ask any question you like here and fellow forum members promise not to laugh. Betfair trading made simple.
Post Reply
Wanzap1
Posts: 7
Joined: Mon Oct 21, 2024 6:06 pm

Hi gang

New to betangel, having browsed the forum and watched the tutorials I'm struggling:

I wish to place a bet on horse racing pre play, then store the value of the price I got on my bet for use later.

I thought I had it working but it's only seems to work sporadically - and often stores a value of "zero".

Any help welcomed, thank you.
User avatar
jamesedwards
Posts: 3944
Joined: Wed Nov 21, 2018 6:16 pm

Try this.
Capture50.JPG
If it doesnt always work you could try putting the SV on the next line.

If that doesnt work due to bet delay then you could build a rule that saves the price only when number of matched bets increments. Or you could save the relevant best back/lay price available at the time the bet is struck.
You do not have the required permissions to view the files attached to this post.
Wanzap1
Posts: 7
Joined: Mon Oct 21, 2024 6:06 pm

Hi, thanks for your reply.

Unfortunately, that's the process I've been using, and it seems to store 0, or a different price to that what my bet was matched at!
Last edited by Wanzap1 on Tue Oct 22, 2024 2:22 pm, edited 1 time in total.
User avatar
jamesedwards
Posts: 3944
Joined: Wed Nov 21, 2018 6:16 pm

Wanzap1 wrote:
Tue Oct 22, 2024 1:46 pm
Hi,thanks for your reply.

Unfortunately, that the process Ive been using, and it seems to store 0, or a lsr a different price that what my bet was matched at!
If it doesnt always work you could try putting the SV on the next line.

If that doesnt work due to bet delay then you could build a rule that saves the price only when number of matched bets increments. Or you could save the relevant best back/lay price available at the time the bet is struck.
User avatar
Dabbla
Posts: 824
Joined: Wed Apr 15, 2009 1:50 pm

When you’re creating the rule, what (Applies to selection) are you using?
It should really be set to (Every).
Wanzap1
Posts: 7
Joined: Mon Oct 21, 2024 6:06 pm

Hi Dabbla,

I apply it to a nominated row, I am trying to save my backed bet odds for horse one to saved value "horse 01" and horse two to "horse 02" up to, say, 5 saved values for each race. If that makes sense.
User avatar
Dabbla
Posts: 824
Joined: Wed Apr 15, 2009 1:50 pm

This is the file I use, have a look, it should do what you want.
22/10/2024 17:11:20: [G_Auto 5] : Store Text Value (Shared) for market: SELC_NAME = Aston Villa
22/10/2024 17:11:20: [G_Auto 5] : Store Text Value (Shared) for Aston Villa: LAST BET ALERT = BACK [Tag = 1 ]
22/10/2024 17:11:20: [G_Auto 5] : Store Value (Shared) for Aston Villa: LAB = 2
22/10/2024 17:11:20: [G_Auto 5] : Store Value (Shared) for Aston Villa: LPB = 1.66
22/10/2024 17:11:36: Placed closure bet on Aston Villa by Laying 3.98 at 1.67
22/10/2024 17:11:36: [G_Auto 5] : Store Text Value (Shared) for market: SELC_NAME = Aston Villa
22/10/2024 17:11:36: [G_Auto 5] : Store Text Value (Shared) for Aston Villa: LAST BET ALERT = LAY [Tag = 2 ]
22/10/2024 17:11:36: [G_Auto 5] : Store Value (Shared) for Aston Villa: LAL = 3.98
22/10/2024 17:11:36: [G_Auto 5] : Store Value (Shared) for Aston Villa: LPL = 1.67

It will store the last bet match for any selection

The SVs are
Sv = SELC_NAME (is the selections name)
Sv = LAST BET ALERT (was it a back or lay)
Sv = LAB / LAL (Last amount matched Back or lay)
Sv = LPB / LPL (Last price matched Back or lay)

I have slightly change this file from my original, so it might need a bit of testing but looks ok.
Last Bet Matched.baf
You do not have the required permissions to view the files attached to this post.
Wanzap1
Posts: 7
Joined: Mon Oct 21, 2024 6:06 pm

Thanks so much I'll give that a whirl :-)
Post Reply

Return to “Bet Angel for newbies / Getting started”