Bet turn / river when pf aggressor

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 turn / river when pf aggressor

Postby ShyPh » Tue Apr 19, 2011 12:42 pm

Hi,

I'd like to create a stat that tells me how often I've bet the turn / river when I was the preflop aggressor (and for another stat, non aggressor) and in position or out of position.

What I have now is (pf aggressor oop):
Code: Select all
sum( if[ NOT( holdem_hand_player_detail.flg_r_has_position ) AND
( holdem_hand_player_statistics.cnt_p_raise > 0 ) AND
( lookup_actions_r.action LIKE 'B%' ) AND
( holdem_hand_player_detail.val_p_raise_aggressor_pos = holdem_hand_player_statistics.position ),1,0 ] )

Devided by:
Code: Select all
sum( if[ NOT( holdem_hand_player_detail.flg_r_has_position ) AND
( holdem_hand_player_statistics.cnt_p_raise > 0 ) AND
( holdem_hand_player_detail.val_p_raise_aggressor_pos = holdem_hand_player_statistics.position ) AND
( ( lookup_actions_r.action LIKE 'B%' ) OR
( lookup_actions_r.action LIKE 'X%' )),1,0 ] )


(pf non aggressor oop):
Code: Select all
sum( if[ NOT( holdem_hand_player_detail.flg_r_has_position ) AND
( holdem_hand_player_statistics.cnt_p_raise > 0 ) AND
( lookup_actions_r.action SIMILAR TO '(B|XB%)' ) AND
( holdem_hand_player_detail.val_p_raise_aggressor_pos != holdem_hand_player_statistics.position ),1,0 ] )


Devided by:

Code: Select all
sum( if[ NOT( holdem_hand_player_detail.flg_r_has_position ) AND
( holdem_hand_player_statistics.cnt_p_raise > 0 ) AND
(( lookup_actions_r.action LIKE 'B%' ) OR
( lookup_actions_r.action LIKE 'X%' )) AND
( holdem_hand_player_detail.val_p_raise_aggressor_pos != holdem_hand_player_statistics.position ),1,0 ] )


Are these stats any good?

Thanks in advance.
ShyPh
 
Posts: 17
Joined: Wed Apr 09, 2008 1:06 pm

Re: Bet turn / river when pf aggressor

Postby WhiteRider » Tue Apr 19, 2011 3:20 pm

The raise aggressor position will never be the player's position, so this will never be true:

holdem_hand_player_detail.val_p_raise_aggressor_pos = holdem_hand_player_statistics.position

The raise aggressor position is the position of the last player other than the active player to have raised.
To check for being the PF aggressor you can check for:

lookup_actions_p.action LIKE '%R'

That also has the advantage of meaning that you don't need to check for "holdem_hand_player_statistics.cnt_p_raise > 0".

lookup_actions_r.action LIKE 'B%'
..is fine, although:
holdem_hand_player_statistics.flg_r_bet
..would also work.

For the betting opportunity you could also use:
holdem_hand_player_statistics.flg_r_check OR holdem_hand_player_statistics.flg_r_bet

NOT( holdem_hand_player_detail.flg_r_has_position )
..is fine.

--

So, for instance I'd make "pf aggressor oop":

sum( if[ NOT( holdem_hand_player_detail.flg_r_has_position ) AND
lookup_actions_p.action LIKE '%R' AND
holdem_hand_player_statistics.flg_r_bet,1,0 ] )
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