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.
Storing price of my last bet
- jamesedwards
- Posts: 3944
- Joined: Wed Nov 21, 2018 6:16 pm
Try this.
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.
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.
- jamesedwards
- Posts: 3944
- Joined: Wed Nov 21, 2018 6:16 pm
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.
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.
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.
You do not have the required permissions to view the files attached to this post.