RWPC from Blinds (not BB vs SB limp)

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

RWPC from Blinds (not BB vs SB limp)

Postby bloodndef » Fri Aug 20, 2010 9:52 pm

This is a toughie. I'd love a doublecheck. The stat is supposed to say the % a player make a first raise from either blind when there have been previous callers, except not the instance of the BB raising a SB limper.

RWPC BL OOP


Code: Select all
(cnt_p_BL_raise_previous_callers_oop_times / cnt_p_BL_raise_previous_callers_oop_opp) * 100



cnt_p_BL_raise_previous_callers_oop_times

Code: Select all
sum(if[((holdem_hand_player_statistics.position = 8 OR holdem_hand_player_statistics.position = 9) AND holdem_hand_player_statistics.flg_p_first_raise AND holdem_hand_player_statistics.flg_p_open = false AND NOT (holdem_hand_player_statistics.position = 8 and holdem_hand_player_statistics.flg_p_first_raise and round((holdem_hand_player_detail.amt_p_raise_made / (holdem_limit.amt_bb * holdem_limit.val_nlpl_mult)) * 100) = round(holdem_hand_player_detail.val_p_raise_made_pct))), 1, 0])




cnt_p_BL_raise_previous_callers_oop_opp

Code: Select all
sum(if[(holdem_hand_player_statistics.position = 8 OR holdem_hand_player_statistics.position = 9) AND (((NOT holdem_hand_player_statistics.flg_p_face_raise) OR holdem_hand_player_statistics.flg_p_limp OR holdem_hand_player_statistics.flg_p_first_raise) AND NOT holdem_hand_player_statistics.flg_p_open_opp AND lookup_actions_p.action <> '') AND NOT ((holdem_hand_player_statistics.position = 8 and holdem_hand_player_statistics.flg_p_first_raise and round((holdem_hand_player_detail.amt_p_raise_made / (holdem_limit.amt_bb * holdem_limit.val_nlpl_mult)) * 100) = round(holdem_hand_player_detail.val_p_raise_made_pct)) OR (holdem_hand_player_statistics.position = 8 AND lookup_actions_p.action = 'X' AND holdem_hand_player_detail.flg_f_has_position)), 1, 0])


Thanks for your help!
bloodndef
 
Posts: 99
Joined: Fri Feb 27, 2009 1:28 am

Re: RWPC from Blinds (not BB vs SB limp)

Postby WhiteRider » Sat Aug 21, 2010 5:56 am

That looks good.
When I build a new stat like this I like to test it in reports by building a matching HCH section stat to check individual cases - see this post. If you use the Positions tab, for instance, (maybe in conjunction with a filter) you can often narrow it down to a few cases to check.
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