Custom stats with CBets

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

Custom stats with CBets

Postby rebornok » Thu Jan 08, 2009 7:20 am

Because of some problems with parcing cbets maybe it's better to use another column?
cnt_f_cbet_2 = sum(if[(substring(lookup_actions_f.action from 1 for 1) = 'B') AND (holdem_hand_player_detail.val_p_raise_aggressor_pos = holdem_hand_player_statistics.position)])
Is it correct and made it sense?
rebornok
 
Posts: 36
Joined: Sun Sep 14, 2008 6:30 pm

Re: Custom stats with CBets

Postby rebornok » Thu Jan 08, 2009 7:36 am

Sorry, forgot "1,0"
sum(if[(substring(lookup_actions_f.action from 1 for 1) = 'B') AND (holdem_hand_player_detail.val_p_raise_aggressor_pos = holdem_hand_player_statistics.position),1,0])
rebornok
 
Posts: 36
Joined: Sun Sep 14, 2008 6:30 pm

Re: Custom stats with CBets

Postby kraada » Thu Jan 08, 2009 11:16 am

There's a flg_f_cbet in the holdem_hand_player_statistics table that is true when a player cbets. I'm not aware of any problems with that flag; have you found times when you think it should be a cbet but isn't (or vice versa)?
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Custom stats with CBets

Postby WhiteRider » Thu Jan 08, 2009 5:15 pm

You should also be aware that currently holdem_hand_player_detail.val_p_raise_aggressor_pos is -1 if the player was the preflop aggressor.
I have suggested to the development team that it should be the player's real position, but there may be something I haven't considered which makes -1 a better idea.
Also, holdem_hand_player_detail.val_p_raise_aggressor_pos currently doesn't store the blind positions correctly - I expect this to be fixed in the next release because I know that the development team have been working on this issue.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: Custom stats with CBets

Postby rebornok » Fri Jan 09, 2009 8:55 am

Thank you!
To WhiteRider: I'll correct the expression with positions.
To Kraada: I mean this threads: viewtopic.php?f=15&t=14306&p=66761&hilit=flg_f_cbet#p66761 and viewtopic.php?f=16&t=11948&p=55777#p55777.
So, cnt_t_cbet_opp, cnt_r_cbet_opp and - cnt_cbet_def_action_fold/call/raise - are they ok now?
rebornok
 
Posts: 36
Joined: Sun Sep 14, 2008 6:30 pm

Re: Custom stats with CBets

Postby kraada » Fri Jan 09, 2009 11:00 am

I'm not sure if that bug has been fixed, but I'll check.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Custom stats with CBets

Postby WhiteRider » Fri Jan 09, 2009 3:37 pm

kraada wrote:I'm not sure if that bug has been fixed, but I'll check.

Kraada is away for the weekend now, but I've checked and the hand history you posted here works correctly in Beta 23.
Fold to cbet and call cbet are both 0/1 and raise c-bet is 1/1, for opp3.
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