Page 1 of 2

HUD filter for players in pot

PostPosted: Tue Dec 04, 2012 10:13 pm
by PlsFold
Hi PT4 guys!

As you unfortunately dont have a filter for players in pot at a given street I would like to ask if its possible to make custom HUD stats with a such filter build in?

For instance: Check raise flop when 2 players saw flop.

Thanks in advance.

Re: HUD filter for players in pot

PostPosted: Wed Dec 05, 2012 4:04 am
by WhiteRider
[Removed - I misread your question initially.]

Re: HUD filter for players in pot

PostPosted: Wed Dec 05, 2012 7:24 am
by WhiteRider
Apologies - I misread your question..

Yes, you can make custom stats based on the number of players seeing the flop.
Include "cash_hand_summary.cnt_players_f = x" in your expression, where x is the number of players who saw the flop.

Take a look at the Custom Stats Guide for an overview of working with custom stats.
The Tutorial: Custom Reports and Statistics was written for PT3 but the general principals apply and this goes into more detail about making a new version of an existing stat for example.

Re: HUD filter for players in pot

PostPosted: Wed Dec 05, 2012 7:28 am
by PlsFold
WhiteRider wrote:No, that isn't possible. PT4 doesn't know anything about the hand in progress - the information about the hand is read from the hand history file which is written after the hand completes.


I'll try it out thanks :P Any chance it could become a filter like has/has not position on(street) in a later version?

Re: HUD filter for players in pot

PostPosted: Wed Dec 05, 2012 10:16 am
by PlsFold
I saved the command in columns inserting 2 in the "X" and then pasting it in a random stat using 'AND'.

The command doesnt work. In reports, It displays player names twice and only does 0 or 1 values. :(

Ive been through tutorials and just about anything I could think of but you dont have a column stat that is
similar to #of players at street to help me out a little.

Re: HUD filter for players in pot

PostPosted: Wed Dec 05, 2012 4:12 pm
by kraada
In Check Raise Flop the columns used are cnt_f_check_raise and cnt_f_check_raise_opp (you can see these in the Value Expression on the Definition page for Check Raise Flop). These are the columns you want to duplicate and edit.

For example cnt_f_check_raise would become:

sum(if[cash_hand_player_statistics.flg_f_check_raise and cash_hand_summary.cnt_players_f = 2, 1, 0])

for heads up pots only. Do the same for the opportunity column, save them with new names and use the new columns in your new stat and it will do what you want.

I don't expect we'll add more properties like having position in the short term but it is possible we will do this eventually.

Re: HUD filter for players in pot

PostPosted: Wed Dec 05, 2012 4:40 pm
by PlsFold
I had a little truble creating the opportunity column. Could you please check if this looks right?

sum(if[cash_hand_player_statistics.flg_f_check AND
(cash_hand_player_statistics.cnt_f_raise > 0 OR
cash_hand_player_statistics.cnt_f_call > 0 OR
cash_hand_player_statistics.flg_f_fold) AND
cash_hand_summary.cnt_players_f = 2, 1, 0])

Thanks for your support & patience :club:

Re: HUD filter for players in pot

PostPosted: Wed Dec 05, 2012 5:30 pm
by kraada
That looks right, good job!

Re: HUD filter for players in pot

PostPosted: Fri Dec 07, 2012 2:19 am
by PlsFold
I am having trouble inserting the command in columns that filter for in/out of position making final values 3-5 times lower than it should.

Example for raise flop cbet in position:

sum(if[not(cash_hand_player_statistics.flg_f_check) AND cash_hand_player_statistics.enum_f_cbet_action='R') AND
(cash_hand_summary.cnt_players_f = 2, 1, 0])

sum(if[cash_hand_player_statistics.flg_f_cbet_def_opp) AND
(cash_hand_summary.cnt_players_f = 2, 1, 0])

What am I doing wrong?

Re: HUD filter for players in pot

PostPosted: Fri Dec 07, 2012 4:06 am
by WhiteRider
Your brackets don't match.
The basic structure is this:

sum( if [ expression, 1, 0 ] )

You have brackets in your "expression" which break it up incorrectly.

Try these:

sum(if[ (not cash_hand_player_statistics.flg_f_check) AND cash_hand_player_statistics.enum_f_cbet_action='R' AND
cash_hand_summary.cnt_players_f = 2, 1, 0])

sum(if[ (not cash_hand_player_statistics.flg_f_check) AND cash_hand_player_statistics.flg_f_cbet_def_opp AND
cash_hand_summary.cnt_players_f = 2, 1, 0])

NOTE: I have also copied the "not check" part into your opportunities expression - you need to be careful to count the same situation in both places.