Page 1 of 1

All in by M in HUD

PostPosted: Sat Nov 10, 2012 1:47 pm
by socorrista5
Hello,
I want to use a stat in the HUD and it is not displayed in the available stats for the HUD Profile configuration, so I can not include it in the HUD.


In the Tourneys I have the following stats configured:


Columns:

Downloaded from PT4 website:
val_m = if[ tourney_hand_player_statistics.amt_before / (tourney_blinds.amt_bb + tourney_blinds.amt_sb + (tourney_hand_player_statistics.amt_ante * tourney_hand_summary.cnt_players)) < 1, 1, if[ tourney_hand_player_statistics.amt_before / (tourney_blinds.amt_bb + tourney_blinds.amt_sb + (tourney_hand_player_statistics.amt_ante * tourney_hand_summary.cnt_players)) < 5, 2, if[ tourney_hand_player_statistics.amt_before / (tourney_blinds.amt_bb + tourney_blinds.amt_sb + (tourney_hand_player_statistics.amt_ante * tourney_hand_summary.cnt_players)) < 10, 3, if[ tourney_hand_player_statistics.amt_before / (tourney_blinds.amt_bb + tourney_blinds.amt_sb + (tourney_hand_player_statistics.amt_ante * tourney_hand_summary.cnt_players)) < 20, 4, 5]]]]

made by me:
cnt_p_allin_m1 = sum( if[val_m='1' AND (tourney_hand_player_statistics.enum_allin='P' OR ((tourney_hand_player_statistics.enum_face_allin='P' OR tourney_hand_player_statistics.enum_face_allin='p') AND tourney_hand_player_statistics.enum_face_allin_action<>'N' AND tourney_hand_player_statistics.enum_face_allin_action<>'F')), 1, 0] )

cnt_hands_m1 = sum(if[(val_m='1' AND tourney_hand_player_statistics.id_hand > 0), 1, 0])


In Stats:

Allin_Preflop_M1 = (cnt_p_allin_m1 / cnt_hands_m1) * 100

But this stat "Allin_Preflop_M1" is not available to be used as an stat in the HUD Profile for tournaments, any idea of why?

Thanks

Re: All in by M in HUD

PostPosted: Sat Nov 10, 2012 3:33 pm
by kraada
You can't use columns like that as variables - it won't work properly.

You'd need to paste in your M code in to every column you want to check (e.g. tourney_hand_player_statistics.amt_before / (tourney_blinds.amt_bb + tourney_blinds.amt_sb + (tourney_hand_player_statistics.amt_ante * tourney_hand_summary.cnt_players)) = 1) - since you've already done the work you have though this should just be a matter of copying and pasting to fix things up.

Re: All in by M in HUD

PostPosted: Sat Nov 10, 2012 5:12 pm
by socorrista5
Now it worked perfectly.

Thanks!