Open limp

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

Open limp

Postby tty1 » Tue Dec 01, 2009 7:51 pm

Hey,

Looking at the DB documentation for "holdem_hand_player_statistics.flg_p_open"...

If the player opened the pot pre-flop, then this is set true, otherwise it is set false.


Would I be right in assuming that when no players have entered a pot, other than the blinds, that if the player calls or raises that this will be set to true, and false otherwise? I.e. calling counts too, not just raising.

Similarly for hhps.flg_p_open_opp, if the player had the opportunity to be the first to put money in the pot, not from a blind position, that this is true and false in all other cases?

Cheers
tty1
 
Posts: 6
Joined: Sun Nov 22, 2009 7:18 pm

Re: Open limp

Postby WhiteRider » Wed Dec 02, 2009 5:39 am

Yes, you're correct. Opening the pot is being the first to voluntarily put money in.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: Open limp

Postby tty1 » Wed Dec 02, 2009 6:14 pm

WhiteRider wrote:Yes, you're correct. Opening the pot is being the first to voluntarily put money in.


So taking that further, is there a way to calculate "flg_p_limp_opp"? I.e. if the player had the option of limping-in without necessarily opening the pot.

Also, how do the call/raise counters in holdem_hand_player_statistics work? Specifically I wanted to know whether the call counts include bets required to match a bet when raising? For instance: pre-flop: UTG raises, 2nd position raises, Hero raises, everybody folds. Then the record in HHPS will look like the following, or not?

....
cnt_p_call = 3
cnt_p_raise = 1
...

If not, would it then be possible to calculate re-raise defence opportunity? I.e. when the player's own raise gets re-raised.

Cheers.
tty1
 
Posts: 6
Joined: Sun Nov 22, 2009 7:18 pm

Re: Open limp

Postby kraada » Wed Dec 02, 2009 6:55 pm

Add cnt_p_open_opp and cnt_p_limp_after_limpers_opp in order to get total limp opportunities. (As you can only limp if you either are the first to limp, or if others have limped in front of you.)

For your questions about the counters, normally you have to say from whose perspective you are interested. Though in the example you gave, nobody called, and everybody who raised raised exactly once.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Open limp

Postby tty1 » Wed Dec 02, 2009 7:38 pm

kraada wrote:Add cnt_p_open_opp and cnt_p_limp_after_limpers_opp in order to get total limp opportunities. (As you can only limp if you either are the first to limp, or if others have limped in front of you.)


I don't seem to have cnt_p_limp_after_limpers_opp in the database or Poker Tracker. Am I missing something obvious?

For your questions about the counters, normally you have to say from whose perspective you are interested. Though in the example you gave, nobody called, and everybody who raised raised exactly once.


That's what I wanted to know, thanks a lot. I'll post the SQL for re-raise defence opportunity when it's ready.
tty1
 
Posts: 6
Joined: Sun Nov 22, 2009 7:18 pm

Re: Open limp

Postby tty1 » Wed Dec 02, 2009 8:12 pm

tty1 wrote:I'll post the SQL for re-raise defence opportunity when it's ready.


Code: Select all
--re-raise defence opportunity.
(sum(    (case when((stats.flg_f_first_raise AND stats.flg_f_face_raise)
                              OR (stats.cnt_f_raise > 0 AND NOT stats.flg_f_first_raise AND (stats.flg_f_3bet_def_opp OR stats.flg_f_4bet_def_opp))) then 1 else 0 end) +
                        (case when((stats.flg_t_first_raise AND stats.flg_t_face_raise)
                              OR (stats.cnt_t_raise > 0 AND NOT stats.flg_t_first_raise AND (stats.flg_t_3bet_def_opp OR stats.flg_t_4bet_def_opp))) then 1 else 0 end) +
                        (case when((stats.flg_r_first_raise AND stats.flg_r_face_raise)
                              OR (stats.cnt_r_raise > 0 AND NOT stats.flg_r_first_raise AND (stats.flg_r_3bet_def_opp OR stats.flg_r_4bet_def_opp))) then 1 else 0 end))) as "cnt_rr_def_opp"


This will only work for limit hold'em though.
tty1
 
Posts: 6
Joined: Sun Nov 22, 2009 7:18 pm

Re: Open limp

Postby WhiteRider » Thu Dec 03, 2009 5:08 am

tty1 wrote:I don't seem to have cnt_p_limp_after_limpers_opp in the database or Poker Tracker. Am I missing something obvious?

cnt_p_facing_limpers is the built-in column.

However, I have a column for limp opportunities.

cnt_p_limp_opp =
sum( if[ (NOT(holdem_hand_player_statistics.flg_p_face_raise) OR (holdem_hand_player_statistics.flg_p_limp) OR (holdem_hand_player_statistics.flg_p_first_raise)) AND NOT(holdem_hand_player_statistics.flg_blind_b), 1 , 0 ] )
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 2 guests