bet in position

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

bet in position

Postby RBlagojevich » Thu Mar 17, 2011 6:51 pm

some buddies of mine who have HEM are using a handy stat called "bet in position." It tells how often someone bets when checked to. I can't find this stat in PT3. Does it have another name? Or has anybody created this custom stat?
RBlagojevich
 
Posts: 13
Joined: Mon Mar 08, 2010 4:05 am

Re: bet in position

Postby kraada » Thu Mar 17, 2011 6:56 pm

It doesn't exist but it's not hard to build as a custom stat.

You'd need two columns, assuming we're doing this for the flop:

cnt_f_bet_in_position: sum(if[holdem_hand_player_statistics.flg_f_bet and holdem_hand_player_detail.flg_f_has_position, 1, 0])

and

cnt_f_open_opp_in_position: sum(if[holdem_hand_player_detail.flg_f_open_opp and holdem_hand_player_detail.flg_f_has_position, 1, 0])

Put the former over the latter and multiply by 100 to get your stat. For more on creating custom statistics, please see the Tutorial: Using Custom Statistics and Reports.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: bet in position

Postby RBlagojevich » Thu Mar 17, 2011 9:01 pm

what if I don't want it to be confined to the flop?

I want a stat that shows how often villain bets when checked to on any street.
RBlagojevich
 
Posts: 13
Joined: Mon Mar 08, 2010 4:05 am

Re: bet in position

Postby WhiteRider » Fri Mar 18, 2011 5:22 am

In that case you will need to combine the checks for any street using OR, like this:

cnt_bet_in_position:
sum(if[(holdem_hand_player_statistics.flg_f_bet and holdem_hand_player_detail.flg_f_has_position) OR (holdem_hand_player_statistics.flg_t_bet and holdem_hand_player_detail.flg_t_has_position) OR (holdem_hand_player_statistics.flg_r_bet and holdem_hand_player_detail.flg_r_has_position), 1, 0])

That would count the number of hands where the player decked in position on any street.
If you want to count of the number of times that the player bet in position (i.e. if they bet both flop and turning in position in one hand and you want that to count twice) then the easiest way is to make a copy of Kraada's columns for each street: e.g.

cnt_t_bet_in_position:
sum(if[holdem_hand_player_statistics.flg_t_bet and holdem_hand_player_detail.flg_t_has_position, 1, 0])

Add another similar column for the river ("_r_"), and the equivalent denominator columns, and then you can build a stat like:

(cnt_f_bet_in_position + cnt_t_bet_in_position + cnt_r_bet_in_position) / (cnt_f_open_opp_in_position + cnt_t_open_opp_in_position + cnt_r_open_opp_in_position) * 100
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