fold to float bet stats with a twist

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

fold to float bet stats with a twist

Postby xnnhep » Fri Mar 04, 2011 2:04 am

i'm trying to create fold to float bet stats which isolate single-raised and 3bet pots.

the default columns for the "fold to flop float bet" stat seem isolate single-raised pots:
cnt_f_float_def_opp =
sum(if[ not(holdem_hand_player_statistics.flg_p_face_raise) and lookup_actions_p.action LIKE '%R' and holdem_hand_player_detail.flg_f_open_opp and holdem_hand_player_statistics.flg_f_check and holdem_hand_player_detail.amt_f_bet_facing > 0, 1, 0])

so to create my "fold to flop float bet in 3bet pot" stat, i adjusted the above to:
cnt_f_float_def_opp_3bp =
sum(if[(holdem_hand_player_statistics.flg_p_face_raise) and holdem_hand_player_statistics.flg_p_3bet and not(holdem_hand_player_statistics.flg_p_4bet) and lookup_actions_p.action LIKE '%R' and holdem_hand_player_detail.flg_f_open_opp and holdem_hand_player_statistics.flg_f_check and holdem_hand_player_detail.amt_f_bet_facing > 0, 1, 0])

this seems to work, but my problem is constructing a similar stat for turns/rivers in 3bet pots, because the default columns for "fold to turn float bet" seem to be simplified somehow so as to only catch the single raised pot opportunities -- e.g. cnt_t_float_def_opp = sum(if[holdem_hand_player_statistics.flg_t_float_def_opp, 1, 0]) -- so PT3 defines turn floats as existing as only in single-raised pots?

so the following is what i pieced together -- will this accomplish what i'm trying to do? is there an easier way?

cnt_t_float_def_opp_3bp =
sum(if[(holdem_hand_player_statistics.flg_p_face_raise)
and holdem_hand_player_statistics.flg_p_3bet
and not (holdem_hand_player_statistics.flg_p_4bet)
and holdem_hand_player_statistics.flg_f_cbet
and not (holdem_hand_player_detail.flg_f_has_position)
and holdem_hand_player_statistics.enum_f_cbet_action='C'
and holdem_hand_player_detail.flg_t_open_opp
and holdem_hand_player_statistics.flg_t_check
and holdem_hand_player_detail.amt_t_bet_facing > 0, 1, 0])
xnnhep
 
Posts: 15
Joined: Wed Feb 23, 2011 2:27 am

Re: fold to float bet stats with a twist

Postby WhiteRider » Fri Mar 04, 2011 4:48 am

The database field "holdem_hand_player_statistics.flg_t_float_def_opp" doesn't restrict the pre-flop action, so you should only need to add the check for making a 3-bet and not a 4-bet.
holdem_hand_player_statistics.flg_p_3bet and (NOT holdem_hand_player_statistics.flg_p_4bet)

(FWIW, you don't need "holdem_hand_player_statistics.flg_p_face_raise" because making a 3-bet implies that.)
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