holdem_hand_summary.amt_pot

Forum for users that want to write their own custom queries against the PT database either via the Structured Query Language (SQL) or using the PT3 custom stats/reports interface.

Moderator: Moderators

holdem_hand_summary.amt_pot

Postby marvin » Tue Sep 21, 2010 4:02 am

1) holdem_hand_summary.amt_pot is the value of pot on last street where the pot is played right?
it counts also bet "returned" to the bettor why not called? example after each raise and bet made preflop, the pot is 1$. the PFa Cbets 1$, every fold. so the pot is 1$ and the Cbet is returnet to PfA. but amt_pot is 1$ or 2$?
2) back to that action, let suppose 1 call, so the pot on flop is 3$., now the PFA bets again (Cbet turn) 3$. again the villain calls , pot turn is 9$, on river, villain bets (Donk bet river) 7$, PfA fold. pot is.... 9 or 9+7? (naturally it will 9 if on question 1 the pot was 1, and 16 if on question 1 the pot was 2, right?)
3) how is possible build a stat for amount pot pf, f, t and river?
marvin
 
Posts: 327
Joined: Tue Jul 08, 2008 10:17 am

Re: holdem_hand_summary.amt_pot

Postby kraada » Tue Sep 21, 2010 9:02 am

amt_pot is the amount of the pot at the end of the hand. Returned bets should not be counted as they were never actually part of the pot - that only happens when they're called. So in (2) amt_pot would be 9. It's only possible to build data on flop turn and river pot size if someone actually bet the hand (you can do it using val_x_bet_made_pct or val_x_bet_facing_pct), but it'd get very ugly for the flop - first you check to see if the flop was checked through (if not, calculate the value), then you see the turn was checked through (if not calculate the value on the turn, as it's the same value as the flop), then you see if the river was checked through . . . it's kinda nasty, which is why I've never gotten around to building it.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: holdem_hand_summary.amt_pot

Postby marvin » Wed Sep 22, 2010 5:12 am

i think that the fastest mode (also for solving preflop-pot) is of starting to the end (amount pot) an going back, with subtractions, using bet river (if we were on river) and numbers of players on river = pot turn
pot flop = pot turn - bet turn * players on river
pot preflop = pot flop-bet pflop * players on flop

but there are problems if A bet, C raise, D call, A fold. than we had to count bet of A... how do you think we can do?
another problem: also if i know the logical conditions, im not able to write it (in wich sections and how about syntax). can you help me about 1 situation and then i cna try the other...? TY.
marvin
 
Posts: 327
Joined: Tue Jul 08, 2008 10:17 am

Re: holdem_hand_summary.amt_pot

Postby kraada » Wed Sep 22, 2010 8:42 am

The method I have in mind gets you the pot at the beginning of the street as long as you faced a bet/raise or made a bet/raise.

The you-made-a-bet method:
holdem_hand_player_detail.amt_f_bet_made * holdem_hand_player_detail.val_f_bet_made_pct / 100

The you-faced-a-bet method:
(holdem_hand_player_detail.amt_f_bet_facing * holdem_hand_player_detail.val_f_bet_facing_pct / 100) - holdem_hand_player_detail.amt_f_bet_facing

The raise methods are pretty much identical, just substitute "raise" for "bet". And you can change _f_ to _t_ for turn and so on.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: holdem_hand_summary.amt_pot

Postby marvin » Wed Sep 22, 2010 3:28 pm

if i wish only knew for each street the % of pot that the bet faced or the bet executed is, how it is possible?
if i make a stat "%bet faced f"
with expression:
holdem_hand_player_detail.val_f_bet_facing_pct
it say error.
marvin
 
Posts: 327
Joined: Tue Jul 08, 2008 10:17 am

Re: holdem_hand_summary.amt_pot

Postby kraada » Wed Sep 22, 2010 4:32 pm

I'm sorry, I didn't understand what you said - could you try to rephrase that in another way?
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: holdem_hand_summary.amt_pot

Postby WhiteRider » Thu Sep 23, 2010 2:50 am

You can't use database fields directly in a stat - you need to put that expression in a column and then use the column value in a stat.

Tutorial: Custom Reports and Statistics
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: holdem_hand_summary.amt_pot

Postby marvin » Thu Sep 23, 2010 5:28 am

Well ty, it works, if i face a bet, it shows the % of the bet executed by the villain, and if i bet, it show the % of my bet.
but when i execute a XR (or i bet and the villain raise) how can i have the % of the raise?
i.e: on flop pot is 2$. i bet 1$ (%f bet executed = 50 - correct) now the pot is 3$. villain raises putting 3$ in the pot (i need 2$ for call on a pot of 6$) how can i see someting like 2/6?
i.e: on flop pot is 2$. villain bet 1$ (%f bet faced = 33 - correct) now the pot is 3$. i raise putting 3$ in the pot how can i see someting like 3/3?
marvin
 
Posts: 327
Joined: Tue Jul 08, 2008 10:17 am

Re: holdem_hand_summary.amt_pot

Postby kraada » Thu Sep 23, 2010 8:49 am

You can't see something like that in the HUD - what you describe is based on one hand. What you can have, if you would like, is the average amount of money a person bets or raises on a given street. Would that suffice for you?
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: holdem_hand_summary.amt_pot

Postby marvin » Thu Sep 23, 2010 6:09 pm

when i say %bet i mea %bet about pot, and it works on each hands. it gives the value of that hand, i have tested it and is fine, only that if i make a raise or i face a raise, it shows 0.
about old examples
example 1: on flop pot is 2$. i bet 1$ (%f bet executed = 50 - correct, why i bet 1$ on a pot o2$) now the pot is 3$. villain raises putting 3$ in the pot (i need 2$ for call on a pot of 6$) how can i see someting like 2/6 (the %bet faced shows 0, but i wish see 33). %bet faced is correct about bet, how i show in second example:
example2: on flop pot is 2$. villain bet 1$ (%f bet faced = 33 - correct, why i must pay 1 on a pot of 3$) now the pot is 3$. i raise putting 3$ in the pot how can i see someting like 3/3 (%f bet executed? it shows 0 why my move is a raise, not a bet, but i wish see 100, that means 100% of pot)
marvin
 
Posts: 327
Joined: Tue Jul 08, 2008 10:17 am

Next

Return to Custom Stats, Reports, and SQL [Read Only]

Who is online

Users browsing this forum: No registered users and 0 guests