Question with val_r_bet_facing_p, what is hero stack is less

Discuss how to create custom stats, reports and HUD profiles and share your creations.

Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators

Question with val_r_bet_facing_p, what is hero stack is less

Postby hayapaz » Tue Jul 13, 2021 6:52 am

Hi, i´m trying to make the next custom stats depending on the size of the bet that HERO faces on the River:

- Fold vs River Bet small (33% of the Pot or less)
- Fold vs River Bet Half (40-60% of the Pot)
- Fold Vs River Bet Big (66-80% of the Pot)
- Fold Vs River Bet Pot (90-110% of the Pot)
- Fold Vs River Bet OverBet (110% of the Pot)

Let´s choose the first case per example (Fold Vs River Bet small), i guess the stat code would be like this:
Code: Select all
sum(if[cash_hand_player_statistics.val_r_bet_facing_pct =< 25, 1, 0])


25% or less would be the pot odds for HERO when facing a Bet of 33% of the Pot or smaller.

Till here is clear but i have one doubt.

What if HERO faces a (let´s say) POT bet on the River but his stack is smaller than that, I understand the stat would count this as true when in reality it isn´t, how to solve this?

Thanks!
hayapaz
 
Posts: 53
Joined: Thu Jun 25, 2015 2:11 pm

Re: Question with val_r_bet_facing_p, what is hero stack is

Postby Flag_Hippo » Tue Jul 13, 2021 12:39 pm

hayapaz wrote:What if HERO faces a (let´s say) POT bet on the River but his stack is smaller than that, I understand the stat would count this as true when in reality it isn´t, how to solve this?

That isn't correct. If the bet is larger than Heros stack than their remaining stack is used for the calculation of val_r_bet_facing_pct and not the absolute size of the bet.
Flag_Hippo
Moderator
 
Posts: 14441
Joined: Tue Jan 31, 2012 7:50 am

Re: Question with val_r_bet_facing_p, what is hero stack is

Postby hayapaz » Wed Jul 14, 2021 6:28 am

Than ks!!"!
hayapaz
 
Posts: 53
Joined: Thu Jun 25, 2015 2:11 pm

Re: Question with val_r_bet_facing_p, what is hero stack is

Postby hayapaz » Wed Jul 14, 2021 2:43 pm

Flag_Hippo wrote:
hayapaz wrote:What if HERO faces a (let´s say) POT bet on the River but his stack is smaller than that, I understand the stat would count this as true when in reality it isn´t, how to solve this?

That isn't correct. If the bet is larger than Heros stack than their remaining stack is used for the calculation of val_r_bet_facing_pct and not the absolute size of the bet.

Hi!

I think my stat is not working.

Let´s say i want to know when HERO is folding versus >110% Bet on the River, i wrote the stat like this:
Code: Select all
sum(if[tourney_hand_player_statistics.val_r_bet_facing_pct > 52.3

, 1, 0])


But it´s not working, maybe PT4 doesn´t interpret the decimals?

Thanks!
hayapaz
 
Posts: 53
Joined: Thu Jun 25, 2015 2:11 pm

Re: Question with val_r_bet_facing_p, what is hero stack is

Postby Flag_Hippo » Thu Jul 15, 2021 6:02 am

hayapaz wrote:I think my stat is not working.

How exactly is it not working for you?
hayapaz wrote:tourney_hand_player_statistics.val_r_bet_facing_pct > 52.3

(110 / (110 + 100)) = 52.4
Flag_Hippo
Moderator
 
Posts: 14441
Joined: Tue Jan 31, 2012 7:50 am

Re: Question with val_r_bet_facing_p, what is hero stack is

Postby hayapaz » Wed Jul 21, 2021 5:32 am

Flag_Hippo wrote:
hayapaz wrote:I think my stat is not working.

How exactly is it not working for you?
hayapaz wrote:tourney_hand_player_statistics.val_r_bet_facing_pct > 52.3

(110 / (110 + 100)) = 52.4


Hi!
Well it´s not a big difference between 52.3 and 52.4 right?

Anyway it´s not working :/, when hero faces a River OverBet and folds the stat isn´t counting it:

Stat Fold Vs R OverBet:
Code: Select all
(fp_cnt_r_fold_vs_bet_overbet / fp_cnt_r_face_bet_overbet) * 100


fp_cnt_r_fold_vs_bet_overbet:
Code: Select all
sum(if[tourney_hand_player_statistics.val_r_bet_facing_pct > 52.3
AND lookup_actions_r.action SIMILAR TO '(F|XF)%'

, 1, 0])


fp_cnt_r_face_bet_overbet:
Code: Select all
sum(if[tourney_hand_player_statistics.val_r_bet_facing_pct > 52.3

, 1, 0])


The funny thing is when hero faces overbet and folds the stat "Fold Vs R Half" is counting it :/ instead:
Code: Select all
(fp_cnt_r_fold_vs_bet_half / fp_cnt_r_face_bet_half) * 100


fp_cnt_r_fold_vs_bet_half:
Code: Select all
sum(if[tourney_hand_player_statistics.val_r_bet_facing_pct BETWEEN 28.6 AND 37.5
AND lookup_actions_r.action SIMILAR TO '(F|XF)%'

, 1, 0])


fp_cnt_r_face_bet_half:
Code: Select all
sum(if[tourney_hand_player_statistics.val_r_bet_facing_pct BETWEEN 28.6 AND 37.5

, 1, 0])


I´m confused :/

Thanks!
hayapaz
 
Posts: 53
Joined: Thu Jun 25, 2015 2:11 pm

Re: Question with val_r_bet_facing_p, what is hero stack is

Postby Flag_Hippo » Wed Jul 21, 2021 12:04 pm

Have you rebuilt your custom cache (Database -> Database Management -> Rebuild Cache -> Custom Cache Rebuild)? If you have then please attach an example hand that isn't working for you.
Flag_Hippo
Moderator
 
Posts: 14441
Joined: Tue Jan 31, 2012 7:50 am

Re: Question with val_r_bet_facing_p, what is hero stack is

Postby hayapaz » Wed Jul 21, 2021 1:24 pm

Flag_Hippo wrote:Have you rebuilt your custom cache (Database -> Database Management -> Rebuild Cache -> Custom Cache Rebuild)? If you have then please attach an example hand that isn't working for you.

I´ll do it and if i still have problems i´ll tell you, ty!
hayapaz
 
Posts: 53
Joined: Thu Jun 25, 2015 2:11 pm


Return to Custom Stats, Reports and HUD Profiles

Who is online

Users browsing this forum: No registered users and 24 guests

cron
highfalutin