% of hands won per amount of first-in raise (in bb)

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

% of hands won per amount of first-in raise (in bb)

Postby 2005TS » Mon Nov 15, 2010 8:31 am

Hello, I'm trying to develop a pop-up group in HUD where I can see how each player is performing according to the amount they chose to raise first-in (in terms of bb).
So, Let's say that you sit on a NL with blinds $0.25-$0.5. So the bb=$0.5.

I have created the following column, where I need to find all hands where the player raised first-in and the amount was 2 times the big blind.
Code: Select all
cnt_rfi_2bb_all:
sum(if[holdem_hand_player_statistics.flg_p_first_raise AND holdem_hand_player_detail.amt_p_raise_made = 2 * holdem_limit.amt_bb,1,0])


Then I have created the following column, where I need to find all hands where the player raised first-in, won the hand and the amount was 2 times the big blind.

Code: Select all
cnt_rfi_2bb_won:
sum(if[holdem_hand_player_statistics.flg_p_first_raise AND holdem_hand_player_statistics.flg_won_hand AND holdem_hand_player_detail.amt_p_raise_made = 2 * holdem_limit.amt_bb,1,0])


then the statistic:
Code: Select all
(cnt_rfi_2bb_won / cnt_rfi_2bb_all) * 100


should show me the percentage I want. But something is wrong, because when someone makes this minraise the statistic remains as NA in the HUD.
Can you please provide some advise on what is wrong in these definitions?

Thanks
2005TS
 
Posts: 4
Joined: Sat Sep 06, 2008 9:46 am

Re: % of hands won per amount of first-in raise (in bb)

Postby kraada » Mon Nov 15, 2010 10:39 am

Those look like they should work just fine - did you update the cache after creating the new custom columns?
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: % of hands won per amount of first-in raise (in bb)

Postby 2005TS » Wed Nov 17, 2010 5:51 pm

Yes, it's fine now. Thanks

Can you please tell me if this stat is just for the current session? I don't think I can see a player's history on raising patterns (all hands played - even from previous sessions).
If yes, how i can transform this to include all previous hands?
2005TS
 
Posts: 4
Joined: Sat Sep 06, 2008 9:46 am

Re: % of hands won per amount of first-in raise (in bb)

Postby kraada » Wed Nov 17, 2010 6:24 pm

For your opponents it should display lifetime data. Your stats on the table will always be session only so that you can see how others at the table think of your current play.
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