CC Preflop OOP, X / Call C-bet, Turn Checked Thr, Lead River

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

CC Preflop OOP, X / Call C-bet, Turn Checked Thr, Lead River

Postby oracle3001 » Mon Jan 17, 2011 7:29 pm

I am trying to create the following stat,

Player cold calls out of position preflop, they then check calls a c-bet, the turn goes check check and then the player leads out on the river.

So my new columns are,

cnt_f_cbet_def_action_call_t_check_r_bet_out_of_position
----------------------------------------------------------
sum(if[holdem_hand_player_statistics.flg_p_ccall
AND substring(lookup_actions_f.action from 1 for 1)='X' AND holdem_hand_player_statistics.enum_f_cbet_action='C'
AND holdem_hand_player_statistics.flg_t_check
AND holdem_hand_player_statistics.flg_r_bet
,1 , 0])

cnt_f_cbet_def_action_call_t_check_r_bet_out_of_position_opp
----------------------------------------------------------
sum(if[holdem_hand_player_statistics.flg_p_ccall
AND substring(lookup_actions_f.action from 1 for 1)='X' AND holdem_hand_player_statistics.enum_f_cbet_action='C'
AND holdem_hand_player_statistics.flg_t_check
AND holdem_hand_player_statistics.flg_r_check
,1 , 0])

River Bet Special
---------------------
(cnt_f_cbet_def_action_call_t_check_r_bet_out_of_position / (cnt_f_cbet_def_action_call_t_check_r_bet_out_of_position + cnt_f_cbet_def_action_call_t_check_r_bet_out_of_position_opp)) * 100


The problem is it seems both new columns it also says there are zero instances for every player I have checked (which given a very large DB of hands I just don't believe...well I know these specific cases exist). Can anybody spot a silly mistake in my coding?
oracle3001
 
Posts: 851
Joined: Fri Jan 25, 2008 4:12 am

Re: CC Preflop OOP, X / Call C-bet, Turn Checked Thr, Lead R

Postby oracle3001 » Mon Jan 17, 2011 7:37 pm

Oh just to check, Cold Call includes being in the blinds doesn't it? I want the player to have preflop just flatted a raise out of position.
oracle3001
 
Posts: 851
Joined: Fri Jan 25, 2008 4:12 am

Re: CC Preflop OOP, X / Call C-bet, Turn Checked Thr, Lead R

Postby kraada » Mon Jan 17, 2011 7:52 pm

No it doesn't, a cold call is when a player calls without having any money in the pot previously. Therefore it is impossible to cold call from the blinds, and the cold calls will all be from a player in better relative position than the open raiser. You could have a spot where you cold call and get squeezed by a person behind you though, then call the 3-bet and things proceed as you have outlined, that just seems awfully rare given normal stack size considerations.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: CC Preflop OOP, X / Call C-bet, Turn Checked Thr, Lead R

Postby oracle3001 » Mon Jan 17, 2011 7:55 pm

So, do I would this work instead?

sum(if[holdem_hand_player_statistics.flg_p_face_raise and holdem_hand_player_statistics.cnt_p_raise = 0 and holdem_hand_player_statistics.cnt_p_call = 1
AND substring(lookup_actions_f.action from 1 for 1)='X' AND holdem_hand_player_statistics.enum_f_cbet_action='C'
AND holdem_hand_player_statistics.flg_t_check
AND holdem_hand_player_statistics.flg_r_bet
,1 , 0])
oracle3001
 
Posts: 851
Joined: Fri Jan 25, 2008 4:12 am

Re: CC Preflop OOP, X / Call C-bet, Turn Checked Thr, Lead R

Postby oracle3001 » Mon Jan 17, 2011 9:07 pm

Also just noticed there is a stat called River Probe bet...How is that different to what I am trying to achieve?
oracle3001
 
Posts: 851
Joined: Fri Jan 25, 2008 4:12 am

Re: CC Preflop OOP, X / Call C-bet, Turn Checked Thr, Lead R

Postby WhiteRider » Tue Jan 18, 2011 4:30 am

"Probe River" doesn't specify the cold call but is for the situation that you specify other than that.
For reference in your expressions "holdem_hand_player_statistics.flg_t_check" doesn't specify that you ONLY checked the turn - you need to use:
lookup_actions_t.action = 'X'
..as the built-in version does. This means that your only action was to check.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: CC Preflop OOP, X / Call C-bet, Turn Checked Thr, Lead R

Postby oracle3001 » Tue Jan 18, 2011 7:12 am

Just to clarify, I don't want just preflop cold call, I want preflop action to be that the player just called a PFR i.e no 3/4/5 betting. Under what circumstances could you get a the series of actions if they didn't that still fitted the probe bet criteria? Player 3-bet, got 4-bet and they called is one...other than that?

Also, just the clarify the "lookup_actions" flag, am I right in thinking you can specify for instance like 'XC' or whatever? And therefore I should be using that because I can pin point just a check, rather than a check raise?
oracle3001
 
Posts: 851
Joined: Fri Jan 25, 2008 4:12 am

Re: CC Preflop OOP, X / Call C-bet, Turn Checked Thr, Lead R

Postby kraada » Tue Jan 18, 2011 10:03 am

What you have now specifies exactly one call preflop and no raises, that could be facing a 3-bet and calling cold or facing a 4-bet and calling cold, but other than that, it's going to be a call of a single raise (and it'll be a call of a single raise much, much more often).

The action string contains all of the actual actions a player made on a street. You can specify more portions of the string or the entire string if you want.

If you do lookup_actions_f.action = 'XC' then the player must have exactly check/called the flop. If you do it as lookup_actions_f.actions LIKE 'X%' the player must have checked the flop but then anything can happen (and this is equivalent to flg_f_check, so if you want something like this, using the flags is going to be preferable). If you want a turn check with definitely no other action the easiest is to do lookup_actions_t.action = 'X' - this specifies that the turn action was exactly check with nothing else.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: CC Preflop OOP, X / Call C-bet, Turn Checked Thr, Lead R

Postby oracle3001 » Tue Jan 18, 2011 10:26 am

Thanks for the info, most helpful.
oracle3001
 
Posts: 851
Joined: Fri Jan 25, 2008 4:12 am


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

Who is online

Users browsing this forum: No registered users and 0 guests