Fold to Raise % When Donked on 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

Fold to Raise % When Donked on Flop.

Postby Halv » Wed Feb 24, 2010 2:28 am

I'm trying to create a Custom Stat for a friend.

He often faces people donkbetting the flop, and likes to raise them, but would like to know their fold% in this situation.

I concluded that I would have to create a new column, and that it would be a cross between:
1) cnt_f_cbet_fold_to_raise and 2) cnt_f_donk

The first is:

sum(if[holdem_hand_player_statistics.flg_f_cbet and lookup_actions_f.action LIKE 'BF', 1, 0])

and the second is:

sum(if[holdem_hand_player_statistics.flg_p_face_raise AND NOT(holdem_hand_player_statistics.flg_p_3bet OR holdem_hand_player_statistics.flg_p_4bet) AND holdem_hand_player_statistics.flg_f_bet AND NOT(holdem_hand_player_statistics.flg_f_cbet_opp) AND
((holdem_hand_summary.cnt_players > 2 and holdem_hand_player_detail.val_p_raise_aggressor_pos < holdem_hand_player_statistics.position) or (holdem_hand_summary.cnt_players = 2 and holdem_hand_player_statistics.flg_blind_b)),1,0])

I tried to combine the two, but was unable to make an SQL valid expression combining these two.

Help?
Halv
 
Posts: 4
Joined: Mon Sep 21, 2009 3:29 pm

Re: Fold to Raise % When Donked on Flop.

Postby kraada » Wed Feb 24, 2010 10:13 am

You want:

cnt_f_donk_face_raise:

sum(if[holdem_hand_player_statistics.flg_p_face_raise AND NOT(holdem_hand_player_statistics.flg_p_3bet OR holdem_hand_player_statistics.flg_p_4bet) AND holdem_hand_player_statistics.flg_f_bet AND holdem_hand_player_statistics.flg_f_face_raise AND NOT(holdem_hand_player_statistics.flg_f_cbet_opp) AND
((holdem_hand_summary.cnt_players > 2 and holdem_hand_player_detail.val_p_raise_aggressor_pos < holdem_hand_player_statistics.position) or (holdem_hand_summary.cnt_players = 2 and holdem_hand_player_statistics.flg_blind_b)),1,0])

and

cnt_f_donk_fold:

sum(if[holdem_hand_player_statistics.flg_p_face_raise AND NOT(holdem_hand_player_statistics.flg_p_3bet OR holdem_hand_player_statistics.flg_p_4bet) AND holdem_hand_player_statistics.flg_f_bet AND holdem_hand_player_statistics.enum_folded = 'F' AND NOT(holdem_hand_player_statistics.flg_f_cbet_opp) AND
((holdem_hand_summary.cnt_players > 2 and holdem_hand_player_detail.val_p_raise_aggressor_pos < holdem_hand_player_statistics.position) or (holdem_hand_summary.cnt_players = 2 and holdem_hand_player_statistics.flg_blind_b)),1,0])


The changes are bolded. The first column is for how often a person donks and faces a raise, the second is for how often they donk and then fold to a raise. Put the latter over the former, multiply by 100 and you'll be all set. (Don't forget to fill in the format tab, and then update the cache.)
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