att to steal

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

att to steal

Postby stanko123 » Wed Nov 04, 2009 10:42 pm

This statistic is for PFR from cutoff, button and SB.
How can I change to only BUTTON AND SB ONLY? thanks!
stanko123
 
Posts: 11
Joined: Tue Oct 20, 2009 11:17 am

Re: att to steal

Postby WhiteRider » Thu Nov 05, 2009 5:06 am

Steal positions are defined as cutoff, button and small blind during the import so you'll need to create a custom stat to do this.

You can base it on RFI (Raise First In) and check for positions 0 (button) or 9 (small blind).
e.g. duplicate and change the "cnt_p_raise_first_in" column to:
sum( if[holdem_hand_player_statistics.flg_p_first_raise AND holdem_hand_player_statistics.flg_p_open_opp AND (holdem_hand_player_statistics.position = 0 OR holdem_hand_player_statistics.position = 9), 1, 0])

Custom Statistics and Reports FAQ
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: att to steal

Postby stanko123 » Thu Nov 05, 2009 7:57 am

thanks for the reply, but I am still abit confused how to do this custom stat. I want to apply this to TOURNAMENTS ONLY.

I DUP and change to this:
sum( if[tourney_holdem_hand_player_statistics.flg_p_first_raise AND tourney_holdem_hand_player_statistics.flg_p_open_opp AND (tourney_holdem_hand_player_statistics.position = 0 OR holdem_hand_player_statistics.position = 9), 1, 0])

PT says "cash tables and tournament tables canot be used together."
stanko123
 
Posts: 11
Joined: Tue Oct 20, 2009 11:17 am

Re: att to steal

Postby WhiteRider » Thu Nov 05, 2009 9:28 am

In the tournament section you need to use the tournament database fields, so you need tourney_ on both position fields.
sum( if[tourney_holdem_hand_player_statistics.flg_p_first_raise AND tourney_holdem_hand_player_statistics.flg_p_open_opp AND (tourney_holdem_hand_player_statistics.position = 0 OR tourney_holdem_hand_player_statistics.position = 9), 1, 0])
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: att to steal

Postby stanko123 » Fri Nov 06, 2009 2:13 am

Now that I had created cnt_p_raise_first_in2, do i change RFI value expression as :
(cnt_p_raise_first_in2 / cnt_p_open_opp ) * 100 ?

So, the rest is just changing my att to steal stat to RFI stat in HUD?
And how do I update cache?
thanks for the replies, really appreciate.
stanko123
 
Posts: 11
Joined: Tue Oct 20, 2009 11:17 am

Re: att to steal

Postby WhiteRider » Fri Nov 06, 2009 4:43 am

That stat expression will give you the number of steals from button or SB divided by the total number of open opportunities from all positions - you need a new column for open opportunities from positions 0 and 9. Duplicate cnt_p_open_opp (I'd suggest calling it something like cnt_p_open_opp_buttonSB rather than just adding a 2, so that you will know what it means in a few months time..) and add the position checks that you added to the other column.
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