CBet Flop in position and oop Stat

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

CBet Flop in position and oop Stat

Postby js2002 » Sat Sep 05, 2009 5:39 pm

Does this work correctly what I want?!

CBet Flop IP
(cnt_f_cbet_IP / cnt_f_cbet_opp_IP) * 100
sum(if[holdem_hand_player_statistics.flg_f_cbet AND holdem_hand_player_detail.flg_f_has_position, 1, 0])
______________________
sum(if[holdem_hand_player_statistics.flg_f_cbet_opp AND holdem_hand_player_detail.flg_f_has_position, 1, 0])
________________________________________________________________________________

CBet Flop OOP
(cnt_f_cbet_OOP / cnt_f_cbet_opp_OOP) * 100
sum(if[holdem_hand_player_statistics.flg_f_cbet AND NOT(holdem_hand_player_detail.flg_f_has_position), 1, 0])
______________________
sum(if[holdem_hand_player_statistics.flg_f_cbet_opp AND NOT(holdem_hand_player_detail.flg_f_has_position), 1, 0])


I just want the HM "made a Cbet in posi and oop stat".
holdem_hand_player_detail.flg_f_has_position has nothing to do with "last to act", right?! I just read sth about that and hope it works just like I guess. Please explain what I get with my 2 new stats.
js2002
 
Posts: 1502
Joined: Fri Feb 15, 2008 5:44 am
Location: Germany

Re: CBet Flop in position and oop Stat

Postby WhiteRider » Sun Sep 06, 2009 4:33 am

holdem_hand_player_detail.flg_f_has_position determines whether the player has absolute position on the flop - i.e. is last to act on the flop, so your stats will work but the out of position one would count times when the preflop aggressor is second to act of three players, for example.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: CBet Flop in position and oop Stat

Postby js2002 » Sun Sep 06, 2009 5:01 am

WhiteRider wrote:holdem_hand_player_detail.flg_f_has_position determines whether the player has absolute position on the flop - i.e. is last to act on the flop, so your stats will work but the out of position one would count times when the preflop aggressor is second to act of three players, for example.


"flg_f_has_position boolean If this player is in position on the flop, this is true, otherwise, this is false. In position is the
person closest to the button still in the hand."

CO = PFA
BU
BB

Flop
BB checks, CO (PFA) cbets..., BU wayne
CBet IP example with 2nd to act

You say (implicitly) that this situation does NOT count a "Flop Cbet IP", because CO is not in abolsute position (position on all villians) and not last to act.
The handbook quote above says "person closest to button" else false.
This counts zero, I hope and thats what I want! (Please tell me if Im wrong.)

____________________

Now I try to construct a Flop CBet oop example that counts +1 but shouldn´t.

BU
SB
BB = PFA

Flop
SB checks, BB Cbets oop, BU wayne, SB wayne

You say:
"the out of position one would count times when the preflop aggressor is second to act of three players"
Now I see why NOT(has_posi) will be true.
Well this is a "Flop CBet absolutely oop". Where is the problem with my stat? I dont get it.
Can you construct a sample hand like me that show me the "bug" or "not wished results" ?
js2002
 
Posts: 1502
Joined: Fri Feb 15, 2008 5:44 am
Location: Germany

Re: CBet Flop in position and oop Stat

Postby WhiteRider » Sun Sep 06, 2009 5:27 am

In your first example:
CO = PFA
BU
BB
..the CO is not in position (flg_f_has_position is false). The button always has position on the flop (if they saw it) regardless of who the PFA was.

Your second example:
BU
SB
BB = PFA
..is exactly the same. The BB is the second to act of 3 player so is not "in position".

Both of these count as out of position from the PFA's point of view.
If this is what you expect/want, then your stats are correct.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: CBet Flop in position and oop Stat

Postby js2002 » Sun Sep 06, 2009 5:33 am

Yes. I want absolute stat for IP and relative for OOP.

Hand in example one is false for "CBet IP" and true for "CBet OOP". Correct huh?

Hand in example two is false for "CBet IP" and true for "CBet OOP".

(just 4 interest: is there a way to check if the pfa is relative IP? (so that hand 1 would be true für "CBet IP"))
js2002
 
Posts: 1502
Joined: Fri Feb 15, 2008 5:44 am
Location: Germany

Re: CBet Flop in position and oop Stat

Postby kraada » Sun Sep 06, 2009 9:08 am

You can check position relative to the last aggressor preflop but you need to do it differently.

If you are in position relative to the last preflop aggressor who wasn't you, this is true: (holdem_hand_player_statistics.position < holdem_hand_player_detail.val_p_raise_aggressor_pos)

If you are out of position relative to the last preflop aggressor who wasn't you, then this is true: (holdem_hand_player_statistics.position > holdem_hand_player_detail.val_p_raise_aggressor_pos)
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: CBet Flop in position and oop Stat

Postby js2002 » Sun Sep 06, 2009 9:16 am

I look at the PFA and not at other players who play vs the PFA.
so aggressor position will always be -1 I guess.
js2002
 
Posts: 1502
Joined: Fri Feb 15, 2008 5:44 am
Location: Germany

Re: CBet Flop in position and oop Stat

Postby kraada » Sun Sep 06, 2009 9:34 am

val_p_raise_aggressor_pos is only -1 in one case: you were the only player to raise preflop. If there were other raisers, then val_p_raise_aggressor_pos won't be -1, it will be the value of the position of the last person who wasn't you that raised. If you want to make sure you were (or weren't) the last one to raise you can check to see if this is true: lookup_actions_p.action LIKE '%R'

If that's true your last action was raise.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: CBet Flop in position and oop Stat

Postby WhiteRider » Sun Sep 06, 2009 9:51 am

In both of your examples the PFA is the middle player of 3, this means that he is in position against one player and out of position against the other, so the "has position" flag is false because he doesn't have position against all opponents.
I don't think there is a way of determining that there is another player before him unless that player bets.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK


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

Who is online

Users browsing this forum: No registered users and 0 guests