% Win when 3bet pre flop

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

% Win when 3bet pre flop

Postby raph156 » Wed Feb 24, 2010 3:12 pm

Hello,

Expression column : sum( if[ ( holdem_hand_player_statistics.flg_p_3bet, 1, 0) AND (holdem_hand_player_statistics.flg_won_hand), 1, 0])
sum( if[ ( holdem_hand_player_statistics.flg_p_3bet > 0 AND (holdem_hand_player_statistics.flg_won_hand), 1, 0])
didnt work.

I would like thise : % Win when 3bet total
Expression column : sum( if[ ( holdem_hand_player_statistics.flg_p_3bet > 0 OR holdem_hand_player_statistics.flg_f_3bet > 0 OR holdem_hand_player_statistics.flg_t_3bet > 0 OR holdem_hand_player_statistics.flg_r_3bet > 0 AND (holdem_hand_player_statistics.flg_won_hand), 1, 0])

And thise: % win when 3bet call total
Expression column : sum( if[ ( holdem_hand_player_statistics.enum_p_3bet_action='C' > 0 OR holdem_hand_player_statistics.enum_f_3bet_action='C' > 0 OR holdem_hand_player_statistics.enum_t_3bet_action='C' > 0 OR holdem_hand_player_statistics.enum_r_3bet_action='C' > 0 AND (holdem_hand_player_statistics.flg_won_hand), 1, 0])

And finaly: % win when 3bet all action total
Expression column : sum( if[ ( holdem_hand_player_statistics.flg_p_3bet > 0 OR holdem_hand_player_statistics.flg_f_3bet > 0 OR holdem_hand_player_statistics.flg_t_3bet > 0 OR holdem_hand_player_statistics.flg_r_3bet > 0 OR holdem_hand_player_statistics.enum_p_3bet_action='C' > 0 OR
holdem_hand_player_statistics.enum_f_3bet_action='C' > 0 OR holdem_hand_player_statistics.enum_t_3bet_action='C' > 0 OR holdem_hand_player_statistics.enum_r_3bet_action='C' > 0 OR holdem_hand_player_statistics.enum_p_3bet_action='R' > 0 OR holdem_hand_player_statistics.enum_f_3bet_action='R' > 0 OR holdem_hand_player_statistics.enum_t_3bet_action='R' > 0 OR holdem_hand_player_statistics.enum_r_3bet_action='R' > 0 AND (holdem_hand_player_statistics.flg_won_hand), 1, 0])

Nothing works.
Thanks in advance for your help.
raph156
 
Posts: 159
Joined: Tue Feb 09, 2010 3:22 pm

Re: % Win when 3bet pre flop

Postby kraada » Wed Feb 24, 2010 3:42 pm

Flags (things that begin flg_) are boolean expressions - they have a truth value, either true or false. You don't want to test if they're greater than zero or not, just test if they're true. The ", 1, 0" part is for the if[] statement.

Please take a look at the Tutorial: Using Custom Statistics and Reports - it explains the structure of custom statistics in great detail and it should help you quite a bit.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: % Win when 3bet pre flop

Postby raph156 » Thu Feb 25, 2010 7:01 am

Hello,

% Win when 3bet pre flop : work
% Win when 3bet : didnt work

Column Expression: sum( if[ ( holdem_hand_player_statistics.flg_p_3bet) OR ( holdem_hand_player_statistics.flg_f_3bet) OR ( holdem_hand_player_statistics.flg_t_3bet) OR holdem_hand_player_statistics.flg_r_3bet) AND (holdem_hand_player_statistics.flg_won_hand), 1, 0])
Didnt work
Column Expression: sum( if[ (( holdem_hand_player_statistics.flg_p_3bet) AND (holdem_hand_player_statistics.flg_won_hand), 1, 0) + (( holdem_hand_player_statistics.flg_f_3bet) AND (holdem_hand_player_statistics.flg_won_hand), 1, 0) + (( holdem_hand_player_statistics.flg_t_3bet) AND (holdem_hand_player_statistics.flg_won_hand), 1, 0) + ((holdem_hand_player_statistics.flg_r_3bet) AND (holdem_hand_player_statistics.flg_won_hand), 1, 0)
Didnt work
sum( if[ ( holdem_hand_player_statistics.flg_p_3bet AND (holdem_hand_player_statistics.flg_won_hand), 1, 0] + if[ ( holdem_hand_player_statistics.flg_f_3bet AND (holdem_hand_player_statistics.flg_won_hand), 1, 0] + if[ ( holdem_hand_player_statistics.flg_t_3bet AND (holdem_hand_player_statistics.flg_won_hand), 1, 0] + if[ ( holdem_hand_player_statistics.flg_r_3bet AND (holdem_hand_player_statistics.flg_won_hand), 1, 0])
Didnt work

Stats Expression:(cnt_win_when_p_3bet / cnt_p_3bet) * 100
(cnt_p_3bet_won / cnt_p_3bet) * 100
Didnt work

Thanks in advance for your help.
raph156
 
Posts: 159
Joined: Tue Feb 09, 2010 3:22 pm

Re: % Win when 3bet pre flop

Postby kraada » Thu Feb 25, 2010 10:09 am

Please reread this portion of the Tutorial: Using Custom Statistics and Reports. Your columns are significantly malformed.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: % Win when 3bet pre flop

Postby raph156 » Thu Feb 25, 2010 10:39 am

hello,

sum( if[ ( holdem_hand_player_statistics.flg_p_3bet AND (holdem_hand_player_statistics.flg_won_hand), 1, 0] + if[ ( holdem_hand_player_statistics.flg_f_3bet AND (holdem_hand_player_statistics.flg_won_hand), 1, 0] + if[ ( holdem_hand_player_statistics.flg_t_3bet AND (holdem_hand_player_statistics.flg_won_hand), 1, 0] + if[ ( holdem_hand_player_statistics.flg_r_3bet AND (holdem_hand_player_statistics.flg_won_hand), 1, 0])
Didnt work

Just one error : ( holdem_hand_player_statistics.flg_p_3bet) AND
right?
raph156
 
Posts: 159
Joined: Tue Feb 09, 2010 3:22 pm

Re: % Win when 3bet pre flop

Postby kraada » Thu Feb 25, 2010 10:59 am

sum( if[ holdem_hand_player_statistics.flg_p_3bet AND holdem_hand_player_statistics.flg_won_hand, 1, 0])

Will return the amount of times you 3bet preflop and won the hand.

You want to create a statistic that puts that column over the number of times you 3bet preflop total, and multiply by 100. You don't care about flop turn or river 3bets if you want to see the percentage that you win after 3betting preflop.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: % Win when 3bet pre flop

Postby raph156 » Thu Feb 25, 2010 11:07 am

Hello,

I wanted thise column too: win when 3 bet preflop, flop, turn and river. Its ok i created thise one.

% Win when 10bet pre flop unpossible?
sum( if[ ( holdem_hand_player_statistics.flg_p_10bet) AND (holdem_hand_player_statistics.flg_won_hand), 1, 0]
Is there an alternativ?

Thanks in advnace for your help.
raph156
 
Posts: 159
Joined: Tue Feb 09, 2010 3:22 pm

Re: % Win when 3bet pre flop

Postby kraada » Thu Feb 25, 2010 11:46 am

There is no 10bet; any bet above a 4bet is a 4bet.

Please take a look at the database schema, it will tell you what flags are actually available and what each one of them means.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY


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

Who is online

Users browsing this forum: No registered users and 0 guests